summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-sound/aacgain
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'media-sound/aacgain')
-rw-r--r--media-sound/aacgain/Manifest4
-rw-r--r--media-sound/aacgain/aacgain-1.9.ebuild101
-rw-r--r--media-sound/aacgain/files/aacgain-1.8+glibc-2.10.patch19
-rw-r--r--media-sound/aacgain/files/aacgain-1.9-patch-dotdot.patch16
-rw-r--r--media-sound/aacgain/metadata.xml20
5 files changed, 160 insertions, 0 deletions
diff --git a/media-sound/aacgain/Manifest b/media-sound/aacgain/Manifest
new file mode 100644
index 000000000000..e390188acba4
--- /dev/null
+++ b/media-sound/aacgain/Manifest
@@ -0,0 +1,4 @@
+DIST aacgain-1.9.tar.xz 52824 SHA256 42c97a956b69828e312345c09ee477ce411a40d25bdbb67b184c61afd3be3c91 SHA512 937c1c66feb13dfa869b8868415168c06b20e552577328957230a09b11f5e44ac53643da8e6fe91e476b54fe24c265a589c4a25dbde400f2fd43eebc5916f523 WHIRLPOOL bb006c6476d9f0c73b4e545684d99c8b4f32d9c05125cd48a109d88e59f788055a455a1baa6956ef0dead314dcbbed27e78cecf3526c86d371ddfac5fe91d966
+DIST faad2-2.7.tar.gz 1137407 SHA256 ee26ed1e177c0cd8fa8458a481b14a0b24ca0b51468c8b4c8b676fd3ceccd330 SHA512 8135370497dfcfee09094a03a4a9545ebc58b9e532b89c5d6e5037042549e12ddb75f8903aa05866afac9fa28df96320f1ed2eebffc0660578e54392a51c1161 WHIRLPOOL 6e30d466e47de0e06751718005573a632c5aa0cd209445c56c25d859f917265452676ce897ac5ad1cd308d411911aaf232bfc50904469f9434b2cc95b6ae928f
+DIST mp3gain-1_5_2-src.zip 129435 SHA256 dbadc7a41a8a3b87d3a21a1989701cfe72d2090c3ead02b0b396a19a8acf6fca SHA512 1a7ac51bf0108c1f6fbd610c513bf7fd2c64d340a2ba23dc9fa5c3b896b279474f31f2d60318f409576e39f7643dd585d3e159e2a4db4553f7c9cc3761b7f388 WHIRLPOOL 4a0584c52090100e9f9fe2c53ac6614965976f1ada9134212734966199a6c116ce2e304ed54ec240c489c293928daf664f109d003d29c5c79c1e3b4a6ee08403
+DIST mp4v2-1.9.1.tar.bz2 432943 SHA256 5c381caeab2326fc48cfda0fe202bdb8ba0ae624d9c97ad7680a2b07e2c2e3b4 SHA512 28b6f96c1d44a1601980113767c38f5b5b058e1a1fae25c18632163e948c18fc884af9d146bb68e771303ab3c5c8ef9437f4fffa7d770d29157f2d455ee4b1c8 WHIRLPOOL 7ba33598287002d4227bcc4bfc1e8fe71241b95ed7151704b78a250d0f5f7d5c77cabf0195502d368571f5668f775fdecc09700bea12859c827d0d29aa654f5e
diff --git a/media-sound/aacgain/aacgain-1.9.ebuild b/media-sound/aacgain/aacgain-1.9.ebuild
new file mode 100644
index 000000000000..3c89e56e0e14
--- /dev/null
+++ b/media-sound/aacgain/aacgain-1.9.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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://aacgain.altosdesign.com/"
+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
+ epatch "${FILESDIR}"/${P}-patch-dotdot.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
+}
diff --git a/media-sound/aacgain/files/aacgain-1.8+glibc-2.10.patch b/media-sound/aacgain/files/aacgain-1.8+glibc-2.10.patch
new file mode 100644
index 000000000000..df48cfdae25d
--- /dev/null
+++ b/media-sound/aacgain/files/aacgain-1.8+glibc-2.10.patch
@@ -0,0 +1,19 @@
+diff -ur aacgain-1.8.orig/mpeg4ip/include/mpeg4ip.h aacgain-1.8/mpeg4ip/include/mpeg4ip.h
+--- aacgain-1.8.orig/mpeg4ip/include/mpeg4ip.h 2008-11-08 16:39:36.000000000 +0200
++++ aacgain-1.8/mpeg4ip/include/mpeg4ip.h 2009-07-10 20:59:51.000000000 +0300
+@@ -120,6 +120,7 @@
+ #endif
+ #include <sys/param.h>
+
++/*
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
+@@ -127,6 +128,7 @@
+ #ifdef __cplusplus
+ }
+ #endif
++*/
+
+ #define OPEN_RDWR O_RDWR
+ #define OPEN_CREAT O_CREAT
diff --git a/media-sound/aacgain/files/aacgain-1.9-patch-dotdot.patch b/media-sound/aacgain/files/aacgain-1.9-patch-dotdot.patch
new file mode 100644
index 000000000000..5beda664d83e
--- /dev/null
+++ b/media-sound/aacgain/files/aacgain-1.9-patch-dotdot.patch
@@ -0,0 +1,16 @@
+diff -ru aacgain-1.9-orig/aacgain/linux/prepare.sh aacgain-1.9/aacgain/linux/prepare.sh
+--- aacgain-1.9-orig/aacgain/linux/prepare.sh 2013-02-19 07:00:54.313006065 +0100
++++ aacgain-1.9/aacgain/linux/prepare.sh 2013-02-19 07:01:42.849006331 +0100
+@@ -51,7 +51,11 @@
+ #remove obsolete config.h; a correct one will be created by automake's configure
+ rm -f ../../mp3gain/mpglibDBL/config.h
+ #correct header include paths
+-patch -p0 -N <mp3gain.patch
++sed -i 's:../../::' mp3gain.patch
++old="$(pwd)"
++cd ../..
++patch -p0 -N <"${old}/mp3gain.patch"
++cd "$old"
+
+ echo Creating the configure script
+ cp -p configure.ac ../..
diff --git a/media-sound/aacgain/metadata.xml b/media-sound/aacgain/metadata.xml
new file mode 100644
index 000000000000..34f86b3868ae
--- /dev/null
+++ b/media-sound/aacgain/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>sbriesen@gentoo.org</email>
+ <name>Stefan Briesenick</name>
+ </maintainer>
+ <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
+ http://mp3gain.sourceforge.net. AACGain normalizes the volume of digital
+ music files using the ReplayGain algorithm. It works by modifying the
+ global_gain fields in the mp4 samples. Free-form metadata tags are added
+ to the file to save undo information, making the normalization process
+ reversable. AACGain uses the same command-line user interface as mp3gain.</longdescription>
+ <upstream>
+ <remote-id type="google-code">mp4v2</remote-id>
+ <remote-id type="sourceforge">faac</remote-id>
+ </upstream>
+</pkgmetadata>