summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schweizer <genstef@gentoo.org>2006-10-02 15:15:56 +0000
committerStefan Schweizer <genstef@gentoo.org>2006-10-02 15:15:56 +0000
commitf87d4ca249f823ddb2fbe652935ac7be7069f7d6 (patch)
tree3da39a71cdd17b08b2074417ec298ed695a22290 /media-sound/sox
parentbaselayout-1.13.0_alpha1 released to the world (diff)
downloadgentoo-2-f87d4ca249f823ddb2fbe652935ac7be7069f7d6.tar.gz
gentoo-2-f87d4ca249f823ddb2fbe652935ac7be7069f7d6.tar.bz2
gentoo-2-f87d4ca249f823ddb2fbe652935ac7be7069f7d6.zip
version bump thanks to Jonathan Geisler <jgeisler@css.tayloru.edu> in bug 137502, remove old
(Portage version: 2.1.2_pre2-r1)
Diffstat (limited to 'media-sound/sox')
-rw-r--r--media-sound/sox/ChangeLog14
-rw-r--r--media-sound/sox/files/digest-sox-12.18.23
-rw-r--r--media-sound/sox/files/sox-12.18.2-destdir.patch114
-rw-r--r--media-sound/sox/sox-12.18.2.ebuild57
4 files changed, 187 insertions, 1 deletions
diff --git a/media-sound/sox/ChangeLog b/media-sound/sox/ChangeLog
index 4425fe390336..3be5f124e872 100644
--- a/media-sound/sox/ChangeLog
+++ b/media-sound/sox/ChangeLog
@@ -1,6 +1,18 @@
# ChangeLog for media-sound/sox
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/sox/ChangeLog,v 1.60 2006/09/03 17:48:16 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/sox/ChangeLog,v 1.61 2006/10/02 15:15:56 genstef Exp $
+
+*sox-12.18.2 (02 Oct 2006)
+
+ 02 Oct 2006; Stefan Schweizer <genstef@gentoo.org>
+ -files/sox-12.17.6-destdir.patch, -files/sox-12.17.7-destdir.patch,
+ -files/sox-12.17.7-largefile.patch, +files/sox-12.18.2-destdir.patch,
+ -files/sox-install.patch, -files/sox-soundcard.patch,
+ -files/sox-wav-segfault.patch, -files/sox-wave-overflow.patch,
+ -sox-12.17.5-r1.ebuild, -sox-12.17.6.ebuild, -sox-12.17.6-r1.ebuild,
+ -sox-12.17.7-r1.ebuild, -sox-12.17.7-r2.ebuild, +sox-12.18.2.ebuild:
+ version bump thanks to Jonathan Geisler <jgeisler@css.tayloru.edu> in bug
+ 137502, remove old
03 Sep 2006; Jeroen Roovers <jer@gentoo.org> sox-12.17.9.ebuild:
Install play man page (bug #144267).
diff --git a/media-sound/sox/files/digest-sox-12.18.2 b/media-sound/sox/files/digest-sox-12.18.2
new file mode 100644
index 000000000000..25488a42fce5
--- /dev/null
+++ b/media-sound/sox/files/digest-sox-12.18.2
@@ -0,0 +1,3 @@
+MD5 ba25e512a6c824d6e56d76767a18af99 sox-12.18.2.tar.gz 486814
+RMD160 cf85ec4058a66687ad0a39bb85ff062d7c48e7bf sox-12.18.2.tar.gz 486814
+SHA256 832bf98c95580af879fe51311c861ba7c57f07a5791628108ef29a027f0271ff sox-12.18.2.tar.gz 486814
diff --git a/media-sound/sox/files/sox-12.18.2-destdir.patch b/media-sound/sox/files/sox-12.18.2-destdir.patch
new file mode 100644
index 000000000000..0eb239788f07
--- /dev/null
+++ b/media-sound/sox/files/sox-12.18.2-destdir.patch
@@ -0,0 +1,114 @@
+diff -Naupr sox-12.18.2.orig/Makefile.in sox-12.18.2/Makefile.in
+--- sox-12.18.2.orig/Makefile.in 2006-10-02 16:57:37.000000000 +0200
++++ sox-12.18.2/Makefile.in 2006-10-02 17:00:54.000000000 +0200
+@@ -33,22 +33,22 @@ PLAY_INSTALL_1 = install-play
+
+ install: $(PLAY_INSTALL_$(PLAY_SUPPORT))
+ cd src && $(MAKE) $@
+- $(srcdir)/mkinstalldirs $(mandir)/man1
+- $(INSTALL) -c -m 644 $(srcdir)/sox.1 $(mandir)/man1
+- if [ -f $(mandir)/man1/soxmix.1 ] ; then $(RM) $(mandir)/man1/soxmix.1; fi
+- cd $(mandir)/man1 && $(LN_S) sox.1 soxmix.1
+- $(INSTALL) -c -m 644 $(srcdir)/soxexam.1 $(mandir)/man1
++ $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/man1
++ $(INSTALL) -c -m 644 $(srcdir)/sox.1 $(DESTDIR)$(mandir)/man1
++ if [ -f $(DESTDIR)$(mandir)/man1/soxmix.1 ] ; then $(RM) $(DESTDIR)$(mandir)/man1/soxmix.1; fi
++ cd $(DESTDIR)$(mandir)/man1 && $(LN_S) sox.1 soxmix.1
++ $(INSTALL) -c -m 644 $(srcdir)/soxexam.1 $(DESTDIR)$(mandir)/man1
+
+ install-play:
+- if [ -f $(mandir)/man1/rec.1 ]; then $(RM) $(mandir)/man1/rec.1; fi
+- $(srcdir)/mkinstalldirs $(mandir)/man1
+- $(INSTALL) -m 644 $(srcdir)/play.1 $(mandir)/man1
+- cd $(mandir)/man1 && $(LN_S) play.1 rec.1
++ if [ -f $(DESTDIR)$(mandir)/man1/rec.1 ]; then $(RM) $(DESTDIR)$(mandir)/man1/rec.1; fi
++ $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/man1
++ $(INSTALL) -m 644 $(srcdir)/play.1 $(DESTDIR)$(mandir)/man1
++ cd $(DESTDIR)$(mandir)/man1 && $(LN_S) play.1 rec.1
+
+ install-lib:
+ cd src && $(MAKE) $@
+- $(srcdir)/mkinstalldirs $(mandir)/man3
+- $(INSTALL) -m 644 $(srcdir)/libst.3 $(mandir)/man3
++ $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/man3
++ $(INSTALL) -m 644 $(srcdir)/libst.3 $(DESTDIR)$(mandir)/man3
+
+
+ PLAY_UNINSTALL_0 =
+@@ -56,9 +56,9 @@ PLAY_UNINSTALL_1 = uninstall-play
+
+ uninstall: $(PLAY_UNINSTALL_$(PLAY_SUPPORT))
+ cd src && $(MAKE) $@
+- $(RM) $(mandir)/man1/sox.1
+- $(RM) $(mandir)/man1/soxmix.1
+- $(RM) $(mandir)/man1/soxexam.1
++ $(RM) $(DESTDIR)$(mandir)/man1/sox.1
++ $(RM) $(DESTDIR)$(mandir)/man1/soxmix.1
++ $(RM) $(DESTDIR)$(mandir)/man1/soxexam.1
+
+ uninstall-play:
+ $(RM) $(mandir)/man1/play.1 $(mandir)/man1/rec.1
+diff -Naupr sox-12.18.2.orig/src/libgsm/Makefile.in sox-12.18.2/src/libgsm/Makefile.in
+--- sox-12.18.2.orig/src/libgsm/Makefile.in 2006-10-02 16:57:37.000000000 +0200
++++ sox-12.18.2/src/libgsm/Makefile.in 2006-10-02 16:58:43.000000000 +0200
+@@ -77,12 +77,12 @@ libgsm.a: $(LIBOBJS)
+ $(RANLIB) libgsm.a
+
+ install-lib: libgsm.a
+- $(top_srcdir)/mkinstalldirs $(libdir)
+- $(top_srcdir)/mkinstalldirs $(mandir)/man3
+- $(INSTALL) -c -m 644 libgsm.a $(libdir)
+- $(RANLIB) $(libdir)/libgsm.a
+- $(INSTALL) -c -m 644 gsm.3 $(mandir)/man3
+- $(INSTALL) -c -m 644 gsm_option.3 $(mandir)/man3
++ $(top_srcdir)/mkinstalldirs $(DESTDIR)$(libdir)
++ $(top_srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/man3
++ $(INSTALL) -c -m 644 libgsm.a $(DESTDIR)$(libdir)
++ $(RANLIB) $(DESTDIR)$(libdir)/libgsm.a
++ $(INSTALL) -c -m 644 gsm.3 $(DESTDIR)$(mandir)/man3
++ $(INSTALL) -c -m 644 gsm_option.3 $(DESTDIR)$(mandir)/man3
+
+ uninstall-lib:
+ $(RM) $(libdir)/libgsm.a
+diff -Naupr sox-12.18.2.orig/src/Makefile.in sox-12.18.2/src/Makefile.in
+--- sox-12.18.2.orig/src/Makefile.in 2006-10-02 16:57:37.000000000 +0200
++++ sox-12.18.2/src/Makefile.in 2006-10-02 16:58:43.000000000 +0200
+@@ -107,24 +107,24 @@ PLAY_INSTALL_0 =
+ PLAY_INSTALL_1 = install-play
+
+ install: sox soxmix $(PLAY_INSTALL_$(PLAY_SUPPORT))
+- $(top_srcdir)/mkinstalldirs $(bindir)
+- $(INSTALL) -c -m 755 sox $(bindir)
+- $(INSTALL) -c -m 755 soxmix $(bindir)
++ $(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
++ $(INSTALL) -c -m 755 sox $(DESTDIR)$(bindir)
++ $(INSTALL) -c -m 755 soxmix $(DESTDIR)$(bindir)
+
+ install-play:
+- if [ -f $(bindir)/rec ] ; then $(RM) $(bindir)/rec; fi
+- $(top_srcdir)/mkinstalldirs $(bindir)
+- $(INSTALL) -c -m 755 play $(bindir)
+- cd $(bindir) && $(LN_S) play rec
++ if [ -f $(DESTDIR)$(bindir)/rec ] ; then $(RM) $(DESTDIR)$(bindir)/rec; fi
++ $(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
++ $(INSTALL) -c -m 755 play $(DESTDIR)$(bindir)
++ cd $(DESTDIR)$(bindir) && $(LN_S) play rec
+
+ install-lib: libst.a
+- $(top_srcdir)/mkinstalldirs $(libdir)
+- $(top_srcdir)/mkinstalldirs $(includedir)
+- $(INSTALL) -c -m 755 libst-config $(bindir)
+- $(INSTALL) -c -m 644 libst.a $(libdir)
+- $(RANLIB) $(libdir)/libst.a
+- $(INSTALL) -c -m 644 $(srcdir)/st.h $(includedir)
+- $(INSTALL) -c -m 644 ststdint.h $(includedir)
++ $(top_srcdir)/mkinstalldirs $(DESTDIR)$(libdir)
++ $(top_srcdir)/mkinstalldirs $(DESTDIR)$(includedir)
++ $(INSTALL) -c -m 755 libst-config $(DESTDIR)$(bindir)
++ $(INSTALL) -c -m 644 libst.a $(DESTDIR)$(libdir)
++ $(RANLIB) $(DESTDIR)$(libdir)/libst.a
++ $(INSTALL) -c -m 644 $(srcdir)/st.h $(DESTDIR)$(includedir)
++ $(INSTALL) -c -m 644 ststdint.h $(DESTDIR)$(includedir)
+
+ PLAY_UNINSTALL_0 =
+ PLAY_UNINSTALL_1 = uninstall-play
diff --git a/media-sound/sox/sox-12.18.2.ebuild b/media-sound/sox/sox-12.18.2.ebuild
new file mode 100644
index 000000000000..0851d913c212
--- /dev/null
+++ b/media-sound/sox/sox-12.18.2.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/sox/sox-12.18.2.ebuild,v 1.1 2006/10/02 15:15:56 genstef Exp $
+
+inherit flag-o-matic eutils
+
+DESCRIPTION="The swiss army knife of sound processing programs"
+HOMEPAGE="http://sox.sourceforge.net"
+SRC_URI="mirror://sourceforge/sox/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="alsa encode mad ogg"
+
+DEPEND="virtual/libc
+ alsa? ( media-libs/alsa-lib )
+ encode? ( media-sound/lame )
+ mad? ( media-libs/libmad )
+ ogg? ( media-libs/libvorbis )"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+
+
+ epatch ${FILESDIR}/${P}-destdir.patch
+ epatch ${FILESDIR}/sox-12.17.9-largefile.patch
+
+ autoheader || die "autoheader failed"
+ autoconf || die "autoconf failed"
+}
+
+src_compile () {
+ # Fixes wav segfaults. See Bug #35745.
+ append-flags -fsigned-char
+
+ econf ${myconf} \
+ $(use_enable alsa alsa-dsp) \
+ $(use_enable encode lame) \
+ $(use_enable mad) \
+ $(use_enable ogg ogg-vorbis) \
+ --enable-oss-dsp \
+ --enable-fast-ulaw \
+ --enable-fast-alaw \
+ || die "configure failed"
+
+ emake || die "make failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install install-play || die "make install failed"
+ prepallman
+
+ dodoc Changelog README TODO *.txt
+}