diff options
author | Austin English <wizardedit@gentoo.org> | 2016-07-07 18:32:10 -0500 |
---|---|---|
committer | Austin English <wizardedit@gentoo.org> | 2016-07-07 18:38:11 -0500 |
commit | f5d19b809d42965422d20db3f6a4fe250252b4c2 (patch) | |
tree | 58a75d17b74fb43fa99e531477706e9d53c27168 /media-sound/aacgain | |
parent | net-misc/connman-gtk: bump to EAPI 6, add maintainer-needed (diff) | |
download | gentoo-f5d19b809d42965422d20db3f6a4fe250252b4c2.tar.gz gentoo-f5d19b809d42965422d20db3f6a4fe250252b4c2.tar.bz2 gentoo-f5d19b809d42965422d20db3f6a4fe250252b4c2.zip |
media-sound/aacgain: bump to EAPI 6, add maintainer-needed
Package-Manager: portage-2.2.28
Diffstat (limited to 'media-sound/aacgain')
-rw-r--r-- | media-sound/aacgain/aacgain-1.9-r1.ebuild | 105 | ||||
-rw-r--r-- | media-sound/aacgain/metadata.xml | 1 |
2 files changed, 106 insertions, 0 deletions
diff --git a/media-sound/aacgain/aacgain-1.9-r1.ebuild b/media-sound/aacgain/aacgain-1.9-r1.ebuild new file mode 100644 index 000000000000..475cc2c39d07 --- /dev/null +++ b/media-sound/aacgain/aacgain-1.9-r1.ebuild @@ -0,0 +1,105 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit eutils autotools + +FAAD2_PV="2.7" +MP4V2_PV="1.9.1" +MP3GAIN_PV="1.5.2" + +DESCRIPTION="AACGain normalizes the volume of digital music files using the Replay Gain algorithm" +HOMEPAGE="http://aacgain.altosdesign.com/" +SRC_URI="http://sbriesen.de/gentoo/distfiles/${P}.tar.xz + https://mp4v2.googlecode.com/files/mp4v2-${MP4V2_PV}.tar.bz2 + mirror://sourceforge/mp3gain/mp3gain-${MP3GAIN_PV//./_}-src.zip + mirror://sourceforge/faac/faad2-${FAAD2_PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="" +DEPEND="" + +DOCS="${PN}/README" + +src_unpack() { + mkdir -p "${S}" + for X in ${A}; do + case "${X}" in + mp3gain*) + mkdir -p "${S}/${X%%-*}" + cd "${S}/${X%%-*}" + unpack "${X}" + ;; + *) + cd "${S}" + unpack "${X}" + [ -d "${X%%-*}" ] || mv -f "${X%%-*}"-* "${X%%-*}" + ;; + esac + done +} + +PATCHES=( + "${FILESDIR}"/${PN}/mp4v2.patch + "${FILESDIR}"/${P}-patch-dotdot.patch +) + +src_prepare() { + default + + sed -i -e 's:iquote :I:' faad2/libfaad/Makefile.am || die + sed -i -e 's:../\(mp4v2/\):\1:g' ${PN}/mp4v2.patch || die + sed -i -e 's:\(libmp4v2\|libfaad/libfaad\)\.la:README:g' \ + -e 's:^\(autoreconf\|pushd\|popd\):# \1:g' aacgain/linux/prepare.sh || die + + cd "${S}/${PN}/linux" + sh prepare.sh || die "prepare failed!" + + cd "${S}" + eautoreconf + + cd "${S}/faad2" + eautoreconf + + cd "${S}/mp4v2" + elibtoolize +} + +src_configure() { + local myconf="--disable-dependency-tracking" + local myconf2="${myconf} --disable-shared --enable-static" + + cd "${S}/faad2" + econf ${myconf2} --without-xmms --without-mpeg4ip + + cd "${S}/mp4v2" + econf ${myconf2} --disable-gch + + cd "${S}" + econf ${myconf} +} + +src_compile() { + cd "${S}/faad2/libfaad" + emake + + cd "${S}/mp4v2" + emake + + cd "${S}" + emake +} + +pkg_postinst() { + ewarn + ewarn "BACK UP YOUR MUSIC FILES BEFORE USING AACGAIN!" + ewarn "THIS IS EXPERIMENTAL SOFTWARE. THERE HAVE BEEN" + ewarn "BUGS IN PAST RELEASES THAT CORRUPTED MUSIC FILES." + ewarn +} diff --git a/media-sound/aacgain/metadata.xml b/media-sound/aacgain/metadata.xml index 59032d534103..d724065eb22a 100644 --- a/media-sound/aacgain/metadata.xml +++ b/media-sound/aacgain/metadata.xml @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> + <!-- maintainer-needed --> <longdescription lang="en">AACGain is a modification to Glen Sawyer's excellent mp3gain program. It supports AAC (mp4/m4a/QuickTime) audio files in addtion to mp3 files. If you are not familiar with mp3gain, stop reading this, and go to |