# ChangeLog for media-sound/aacgain
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/aacgain/ChangeLog,v 1.9 2009/10/09 21:21:46 sbriesen Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/aacgain/ChangeLog,v 1.10 2011/10/23 17:05:17 sbriesen Exp $
+
+*aacgain-1.9 (23 Oct 2011)
+
+ 23 Oct 2011; Stefan Briesenick <sbriesen@gentoo.org> +aacgain-1.9.ebuild:
+ version bump, solving bug #383151.
09 Oct 2009; Stefan Briesenick <sbriesen@gentoo.org> +aacgain-1.8.ebuild,
+files/aacgain-1.8+glibc-2.10.patch, +metadata.xml:
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA256
+Hash: SHA1
AUX aacgain-1.8+glibc-2.10.patch 463 RMD160 d2b268f714c70ced7881591df78ecee413178d17 SHA1 af9fc26f8781cf977cf673e715607c9561353432 SHA256 3751fec46c0593e4cf7541996c7ef1ee536c67364b43299f0c99a88c3d90d93f
DIST aacgain-1.8.tar.bz2 1188680 RMD160 8f97121f3797cde45f71839dbe14251b74365ccd SHA1 331039c4231e4d85ae878795ce3095dd96dcbfdb SHA256 2bb8e27aa8f8434a4861fdbc70adb9cb4b47e1dfe472910d62d6042cb80a2ee1
+DIST aacgain-1.9.tar.xz 52824 RMD160 d69b6fc8536853248c9f14781c1310a646a05f16 SHA1 405b8abd0c87f265cc2aeaa8ab8b0968c808b6b0 SHA256 42c97a956b69828e312345c09ee477ce411a40d25bdbb67b184c61afd3be3c91
+DIST faad2-2.7.tar.gz 1137407 RMD160 3f0ca461e2953014d5b17edccb3337767d478b8d SHA1 80eaaa5cc576c35dd28863767b795c50cbcc0511 SHA256 ee26ed1e177c0cd8fa8458a481b14a0b24ca0b51468c8b4c8b676fd3ceccd330
+DIST mp3gain-1_5_2-src.zip 129435 RMD160 60fcff364ab3a71a40f9ff89001afe02e2bdb5de SHA1 b4593dc0873728b8b6745c8dec0560f338368aab SHA256 dbadc7a41a8a3b87d3a21a1989701cfe72d2090c3ead02b0b396a19a8acf6fca
+DIST mp4v2-1.9.1.tar.bz2 432943 RMD160 66aed17925589b49ec3b1241bfcb45a8e3181c08 SHA1 c62d00e99b65efce16accd83c501fb8a57206aa8 SHA256 5c381caeab2326fc48cfda0fe202bdb8ba0ae624d9c97ad7680a2b07e2c2e3b4
EBUILD aacgain-1.8.ebuild 1122 RMD160 5d33a95a94c8c39e3e2f6ff6987211f26aae630b SHA1 b53fae3cbb88324bef1bb8e89a11925e689e426e SHA256 3f4fae28ac527ed61aeea654259cecb5b1553ab07a90fd4d9920e94e9b96c16b
-MISC ChangeLog 1318 RMD160 d4dc6853c1036bd6e473baf434db05b6db95f01f SHA1 660899252db418db3441b0c722513a687fafecb0 SHA256 20d7e1dd08482e926db6c3adcaeac248e3a991c26e7598701bc6244be35e1f6e
+EBUILD aacgain-1.9.ebuild 2068 RMD160 d3385a49332094f0f782bb2a0749299f287f8fe3 SHA1 cce56a6579cdebf53553e6d913f9f13413e14f5c SHA256 5a6817f0c560fb19df41de698cbbf174e350e7884a648b73d067a0271fc1da14
+MISC ChangeLog 1461 RMD160 446cdfbd09b40eba84ecef387d8cb5e47db0b5fb SHA1 5e6d90139e78b3e97b13ec53086d9ca4a05d2141 SHA256 7932ee60ed72f25fd3ecb828b6f14f36f9bc2c78b493547fa76277615a1638d1
MISC metadata.xml 874 RMD160 ab3e01a6e19d8b0861d3f186e9f945d8f54a770b SHA1 d34fdef2cf3eccef323efc3559cdc97e7cac744e SHA256 af5336450aec8b34a9277c5d49f2c2e810bc69635dfecedd691dcb3b640427d1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
-iJwEAQEIAAYFAk59o9QACgkQfXuS5UK5QB2oXAQAldnVz0t8EQIXIcpksxH2FbMh
-3BR2l6jQb5QphmHwdmu8B5OBnSUXr3bf33OYcPAQF9EqT+n06LP4QThFwpEk0TKg
-JtzLcPYDiSCjkvG0nDUNlbj8d0r6xTACTva7DYquFOtUiO28dmEpNKp4XG1WellH
-fY5nr123gyCboL/Q88c=
-=7YWj
+iJwEAQECAAYFAk6kSVsACgkQIaLonLtsQseroQP+P48GPlgmaxHvSnpUvhIGE2zf
+yUjiu82UZBpBRCGuMG6h/Ej7WKWFcsfSZDatc9Y4DZb8VDKhSEgTgnLCdm+gkbl1
+bgVKexPJOem34MXHG4QWXyoibjvTZgqbj2XiNRJlo71+2A1wfQ1owke53/wISMfu
+9wJ2hsxh++RsWjfdHaM=
+=WulP
-----END PGP SIGNATURE-----
--- /dev/null
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/aacgain/aacgain-1.9.ebuild,v 1.1 2011/10/23 17:05:17 sbriesen Exp $
+
+EAPI=4
+
+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://altosdesign.com/aacgain/"
+SRC_URI="http://sbriesen.de/gentoo/distfiles/${P}.tar.xz
+ http://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
+}
+
+src_prepare() {
+ sed -i -e 's:iquote :I:' faad2/libfaad/Makefile.am
+ sed -i -e 's:../\(mp4v2/\):\1:g' ${PN}/mp4v2.patch
+ sed -i -e 's:\(libmp4v2\|libfaad/libfaad\)\.la:README:g' \
+ -e 's:^\(autoreconf\|pushd\|popd\):# \1:g' aacgain/linux/prepare.sh
+
+ epatch ${PN}/mp4v2.patch
+
+ 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
+}