summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn J. Ellis <jje@gentoo.org>2003-09-26 07:21:27 +0000
committerJohn J. Ellis <jje@gentoo.org>2003-09-26 07:21:27 +0000
commitc9c475ee3b32ca9c3203dc744d834665a4748769 (patch)
tree6bbb25e89ba89cb369c7ab16a874d87f4dc5d9e5 /media-sound/sox
parentImproved USE flag usage. Closes #29375. (diff)
downloadgentoo-2-c9c475ee3b32ca9c3203dc744d834665a4748769.tar.gz
gentoo-2-c9c475ee3b32ca9c3203dc744d834665a4748769.tar.bz2
gentoo-2-c9c475ee3b32ca9c3203dc744d834665a4748769.zip
Improved USE flag usage. Closes #29375.
Diffstat (limited to 'media-sound/sox')
-rw-r--r--media-sound/sox/ChangeLog7
-rw-r--r--media-sound/sox/Manifest4
-rw-r--r--media-sound/sox/files/digest-sox-12.17.4-r11
-rw-r--r--media-sound/sox/sox-12.17.4-r1.ebuild47
4 files changed, 56 insertions, 3 deletions
diff --git a/media-sound/sox/ChangeLog b/media-sound/sox/ChangeLog
index 33f0db8b4c12..9519ca12ca38 100644
--- a/media-sound/sox/ChangeLog
+++ b/media-sound/sox/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-sound/sox
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/sox/ChangeLog,v 1.13 2003/08/12 22:38:57 weeve Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/sox/ChangeLog,v 1.14 2003/09/26 07:21:16 jje Exp $
+
+ 26 Sep 2003; jje <jje@gentoo.org> :
+ Addition of USE flags, oggvorbis, mad, encode, oss, alsa.
+
+ Submitted by: Roman Valls <brainlinux@softhome.net>
12 Aug 2003; Jason Wever <weeve@gentoo.org> sox-12.17.3-r3.ebuild:
Changed ~sparc keyword to sparc.
diff --git a/media-sound/sox/Manifest b/media-sound/sox/Manifest
index a56182d7722d..79d0a3f42c47 100644
--- a/media-sound/sox/Manifest
+++ b/media-sound/sox/Manifest
@@ -1,8 +1,8 @@
-MD5 04032031699c9e4c293234c0b4068270 ChangeLog 1435
+MD5 4f97c398665e5811e5eb58eb0ee6746a ChangeLog 1589
MD5 80ef2c4549c13713211a0f991daefdc6 sox-12.17.3-r1.ebuild 905
MD5 70dff6a0bc707c5e0117e3f1459a332e sox-12.17.3-r3.ebuild 1058
MD5 de5d53ed1c77fbf1c28c88b08e8ae0af sox-12.17.4.ebuild 931
-MD5 f79047836e1469f68e81919a4818f1fd sox-12.17.4-r1.ebuild 1188
+MD5 0cb1d562b3b5891a3c8f73e371d81c6c sox-12.17.4-r1.ebuild 1280
MD5 a27f4560530e1dcd5ee4ff1bc4a6f921 files/digest-sox-12.17.3-r1 63
MD5 a27f4560530e1dcd5ee4ff1bc4a6f921 files/digest-sox-12.17.3-r3 63
MD5 64aef0b430e70836aae794f8e91ea8dc files/digest-sox-12.17.4 63
diff --git a/media-sound/sox/files/digest-sox-12.17.4-r1 b/media-sound/sox/files/digest-sox-12.17.4-r1
new file mode 100644
index 000000000000..3d925bc031be
--- /dev/null
+++ b/media-sound/sox/files/digest-sox-12.17.4-r1
@@ -0,0 +1 @@
+MD5 39bdb64e06a8c456057e87eff7d0b339 sox-12.17.4.tar.gz 417497
diff --git a/media-sound/sox/sox-12.17.4-r1.ebuild b/media-sound/sox/sox-12.17.4-r1.ebuild
new file mode 100644
index 000000000000..19190a59920e
--- /dev/null
+++ b/media-sound/sox/sox-12.17.4-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/sox/sox-12.17.4-r1.ebuild,v 1.1 2003/09/26 07:21:17 jje Exp $
+
+S=${WORKDIR}/${P}
+DESCRIPTION="The swiss army knife of sound processing programs"
+HOMEPAGE="http://sox.sourceforge.net"
+SRC_URI="mirror://sourceforge/sox/${P}.tar.gz"
+
+IUSE="alsa oss oggvorbis mad encode"
+KEYWORDS="~x86"
+SLOT="0"
+LICENSE="LGPL-2.1"
+
+DEPEND="virtual/glibc
+ oggvorbis? media-libs/libvorbis
+ mad? media-sound/mad"
+
+src_compile () {
+ # 12.17.4 has mp3 encoding/decoding if you have madlibs and lame
+ # using alsa by default
+ local myconf
+
+ use oggvorbis || myconf="${myconf} --disable-ogg-vorbis"
+ use mad || myconf="${myconf} --disable-mad"
+ use encode || myconf="${myconf} --disable-lame"
+ use alsa || myconf="${myconf} --disable-alsa-dsp"
+ use oss || myconf="${myconf} --disable-oss-dsp"
+
+ econf ${myconf} --enable-fast-ulaw --enable-fast-alaw || die
+ emake || die
+}
+
+src_install () {
+ into /usr
+ dobin sox play soxeffect soxmix
+ doman sox.1 play.1 soxexam.1
+ dodoc Changelog Copyright README TODO *.txt
+}
+
+pkg_postinst () {
+ # the rec binary doesnt exist anymore
+ if([ ! -e /usr/bin/rec ]) then
+ ln -s /usr/bin/play /usr/bin/rec
+ fi
+}
+