# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 inherit eutils fcaps [ "$ARCH" == "amd64" ] && MY_ARCH=amd64 || MY_ARCH=i386 MY_REV=5186 MY_PN="DVD Audio Extractor" DESCRIPTION="Commercial software used to rip audio tracks from Blu-ray, DVD-Audio, and DVD-Video discs" HOMEPAGE="http://www.dvdae.com/" SRC_URI="http://www.dvdae.com/dvdae/dvdae_${PV}_${MY_ARCH}.deb" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 ~x86 -*" IUSE=" gtk" RESTRICT="strip" RDEPEND=" dev-libs/expat dev-libs/libgcrypt dev-libs/libgpg-error media-libs/flac media-libs/libogg media-libs/libvorbis media-sound/lame sys-apps/attr sys-libs/libcap sys-libs/zlib gtk? ( app-arch/bzip2 dev-libs/atk dev-libs/libffi media-libs/alsa-lib media-libs/fontconfig media-libs/freetype media-libs/harfbuzz x11-libs/cairo x11-libs/gdk-pixbuf x11-libs/gtk+ x11-libs/libICE x11-libs/libSM x11-libs/libX11 x11-libs/libXau x11-libs/libXcomposite x11-libs/libXcursor x11-libs/libXdamage x11-libs/libXdmcp x11-libs/libXext x11-libs/libXfixes x11-libs/libXi x11-libs/libXinerama x11-libs/libXrandr x11-libs/libXrender x11-libs/libxcb x11-libs/pango x11-libs/pixman virtual/opengl )" DEPEND="" S=${WORKDIR} src_unpack() { unpack "${A}" tar xf data.tar.gz } src_prepare() { # Fix QA issue sed -e 's/^\(Categories=.*\)$/\1;/' \ -i usr/share/applications/dvdae.desktop } src_install() { dobin usr/bin/dvdae if use gtk; then dobin usr/bin/dvdae-gui insinto /usr/share/applications doins usr/share/applications/dvdae.desktop insinto /usr/share/dvdae doins usr/share/dvdae/* fi } pkg_postinst() { if use filecaps; then fcaps cap_dac_override,cap_sys_rawio=ep "${EROOT}"/usr/bin/dvdae use gtk && fcaps cap_dac_override,cap_sys_rawio=ep "${EROOT}"/usr/bin/dvdae-gui else ewarn "You installed ${MY_PN} without the caps flag. You will have to" ewarn "run ${MY_PN} as root, or you may reinstall with USE=caps to" ewarn "allow running it as a standard user.\n" fi ewarn "When ripping discs to WAV or other transcoded formats, ${MY_PN}" ewarn "forcibly enables dynamic range compression, which introduces audio" ewarn "artifacts. For best quality, it is recommended that you perform a direct" ewarn "stream demux and manually transcode the resulting AC3/MLP/etc. afterward.\n" ewarn "Please note: In order to rip uncompressed audio (LPCM) from DVD-Audio discs," ewarn "you must first mount the disc. Otherwise, only the compressed (AC3/DTS)" ewarn "DVD-Video audio will be extracted." }