Fixing automagic dep on libsndfile, bug #155025
authorAlexis Ballier <aballier@gentoo.org>
Fri, 8 Dec 2006 17:02:23 +0000 (17:02 +0000)
committerAlexis Ballier <aballier@gentoo.org>
Fri, 8 Dec 2006 17:02:23 +0000 (17:02 +0000)
Package-Manager: portage-2.1.2_rc2-r5

media-libs/libsamplerate/ChangeLog
media-libs/libsamplerate/Manifest
media-libs/libsamplerate/files/digest-libsamplerate-0.1.2-r1 [new file with mode: 0644]
media-libs/libsamplerate/files/libsamplerate-0.1.2-automagic.patch [new file with mode: 0644]
media-libs/libsamplerate/libsamplerate-0.1.2-r1.ebuild [new file with mode: 0644]

index 44d5eab8db46a9d13ea8736bd0e5bca0a39c09d3..a694434f1e7824174ee321d96d19470c916d757b 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for media-libs/libsamplerate
 # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libsamplerate/ChangeLog,v 1.38 2006/10/25 05:40:26 tsunam Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libsamplerate/ChangeLog,v 1.39 2006/12/08 17:02:23 aballier Exp $
+
+*libsamplerate-0.1.2-r1 (08 Dec 2006)
+
+  08 Dec 2006; Alexis Ballier <aballier@gentoo.org>
+  +files/libsamplerate-0.1.2-automagic.patch,
+  +libsamplerate-0.1.2-r1.ebuild:
+  Fixing automagic dep on libsndfile, bug #155025
 
   25 Oct 2006; Joshua Jackson <tsunam@gentoo.org>
   libsamplerate-0.1.2.ebuild:
index 56102ae2fd414e62097c6123e545e97b9b4a39b9..8db491160145421739c95b6eb60b6e01122a8879 100644 (file)
@@ -1,20 +1,28 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
+AUX libsamplerate-0.1.2-automagic.patch 747 RMD160 2a7b5c514eeb2eef0a3eab71a551d3662940550c SHA1 cfe98a87f4eb96e2d06d6923bd37b891d748dc57 SHA256 226eb21832bfb49bb5b870ad94ea37c4ad62376d3ee57e5812742c609422bbde
+MD5 49517aa62d28081956a6db4771d43938 files/libsamplerate-0.1.2-automagic.patch 747
+RMD160 2a7b5c514eeb2eef0a3eab71a551d3662940550c files/libsamplerate-0.1.2-automagic.patch 747
+SHA256 226eb21832bfb49bb5b870ad94ea37c4ad62376d3ee57e5812742c609422bbde files/libsamplerate-0.1.2-automagic.patch 747
 DIST libsamplerate-0.1.1.tar.gz 699874 RMD160 a507ca8580e6e27f1eba5db345600a51241eb597 SHA1 9e225bc1ae3c9352c487f041f033b6e24a2ea03c SHA256 8b7db2843d1dc4e4d225b478db583c3ea01d19c83009376db8963f0c39d35c34
 DIST libsamplerate-0.1.2.tar.gz 707867 RMD160 4e5453821b80b17586ad66068e409ed0437cca02 SHA1 663ac147d1dfbe686bf687e78143259b5075fc13 SHA256 98b8766323c78b7b718dfd4ef6b9292bbf0796b742abb2319b8278cbeee731d4
 EBUILD libsamplerate-0.1.1-r1.ebuild 1002 RMD160 a949ed537afc9c2ad83fb94bef0057e3b749cdd5 SHA1 20a5699b130f3548ada18a4c058b90cce6071c73 SHA256 e2c83f3867d1444b44d41107f4f9b8467c6be4d956dc68737c02c07dedaa3db6
 MD5 75f188aacec508439e54abda70a35d74 libsamplerate-0.1.1-r1.ebuild 1002
 RMD160 a949ed537afc9c2ad83fb94bef0057e3b749cdd5 libsamplerate-0.1.1-r1.ebuild 1002
 SHA256 e2c83f3867d1444b44d41107f4f9b8467c6be4d956dc68737c02c07dedaa3db6 libsamplerate-0.1.1-r1.ebuild 1002
+EBUILD libsamplerate-0.1.2-r1.ebuild 1222 RMD160 2b082cf5de9617230346d81a4179d4655bab809e SHA1 f77f8db6dbb11b0a8a299fea1caa3cc8b1af6692 SHA256 1ef56d5c2a7a8ead331bf14a979565dafffa9fb836cb773534a44e94637372e8
+MD5 d76ae5d64bf267238e53eb851d78269d libsamplerate-0.1.2-r1.ebuild 1222
+RMD160 2b082cf5de9617230346d81a4179d4655bab809e libsamplerate-0.1.2-r1.ebuild 1222
+SHA256 1ef56d5c2a7a8ead331bf14a979565dafffa9fb836cb773534a44e94637372e8 libsamplerate-0.1.2-r1.ebuild 1222
 EBUILD libsamplerate-0.1.2.ebuild 1031 RMD160 8d393c22f57e2e268e5d81d326422dfe581d3af0 SHA1 ca28d4b37fe8590c660e19146f69a7c3fe055a9a SHA256 e769dee9defd94be7609c90477b49107bd0bb841c09b64628b1acfb2858a337f
 MD5 8295aa7e5aaf57f2d03a3d24c328fcc7 libsamplerate-0.1.2.ebuild 1031
 RMD160 8d393c22f57e2e268e5d81d326422dfe581d3af0 libsamplerate-0.1.2.ebuild 1031
 SHA256 e769dee9defd94be7609c90477b49107bd0bb841c09b64628b1acfb2858a337f libsamplerate-0.1.2.ebuild 1031
-MISC ChangeLog 5071 RMD160 7feddb50862da31dad317420fc6a5c0d827909f2 SHA1 181803271f012e9eb079b4301dc91e8b4fa8164d SHA256 e363a4314ddd092cb33c29c755cbae93c4090425f16672afd6c8a7f621ecf40b
-MD5 e12a19b64b72bb96fbc3b1a9a6f32d5c ChangeLog 5071
-RMD160 7feddb50862da31dad317420fc6a5c0d827909f2 ChangeLog 5071
-SHA256 e363a4314ddd092cb33c29c755cbae93c4090425f16672afd6c8a7f621ecf40b ChangeLog 5071
+MISC ChangeLog 5295 RMD160 7db16653fedb40ebbed237dc86b6312be615255c SHA1 1328fe1df8040e0fe52a2db8cc84e69b10bb3296 SHA256 829f06d0b88b70667a5d0a3c95cf74c94bf73d8793d359947c253c7256f28f1f
+MD5 2f0c1a6851064072a16325b8e287c0c1 ChangeLog 5295
+RMD160 7db16653fedb40ebbed237dc86b6312be615255c ChangeLog 5295
+SHA256 829f06d0b88b70667a5d0a3c95cf74c94bf73d8793d359947c253c7256f28f1f ChangeLog 5295
 MISC metadata.xml 158 RMD160 6842e2189a50bd8a98e84802c38180ac1421c00e SHA1 703cea5a2109d41f7c87993c1f01d418a4c85174 SHA256 dfb5b47e6836db39fb187301dfcff1c2605e91d13d21db160806a563d8c75f9b
 MD5 a1eaeb2ae801daeb712c90c060e922dc metadata.xml 158
 RMD160 6842e2189a50bd8a98e84802c38180ac1421c00e metadata.xml 158
@@ -25,10 +33,13 @@ SHA256 ba777f2a366c84baf6a3e2d00c2d7964867557187e0048cdb882905bf96c7862 files/di
 MD5 baf6aae387c3af6cf63c1a6b5a7befed files/digest-libsamplerate-0.1.2 259
 RMD160 4c8b1fd9458a626ffae48440c2da5ad42e354ca5 files/digest-libsamplerate-0.1.2 259
 SHA256 b55249e7d9ac5d549524a23a4ab8c6c80412d6830aee4fdf892eaad2cad8843b files/digest-libsamplerate-0.1.2 259
+MD5 baf6aae387c3af6cf63c1a6b5a7befed files/digest-libsamplerate-0.1.2-r1 259
+RMD160 4c8b1fd9458a626ffae48440c2da5ad42e354ca5 files/digest-libsamplerate-0.1.2-r1 259
+SHA256 b55249e7d9ac5d549524a23a4ab8c6c80412d6830aee4fdf892eaad2cad8843b files/digest-libsamplerate-0.1.2-r1 259
 -----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.5 (GNU/Linux)
+Version: GnuPG v1.4.6 (GNU/Linux)
 
-iD8DBQFFPvjj2ZWR0Jhg/EsRAvGXAJ9fMSO4k+5ZlhKtSCKX5G44wXXkIwCeKTND
-dPmkL+dtWnfN+0nKCHXfthI=
-=3PDV
+iD8DBQFFeZqjvFcC4BYPU0oRArtBAKDBfH4QFywufvL4DD83aGiw+j3u3QCfc+YO
+0s9t7dI3Pkc0ZJO6adA+7Ws=
+=OdLE
 -----END PGP SIGNATURE-----
diff --git a/media-libs/libsamplerate/files/digest-libsamplerate-0.1.2-r1 b/media-libs/libsamplerate/files/digest-libsamplerate-0.1.2-r1
new file mode 100644 (file)
index 0000000..a835e83
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 06861c2c6b8e5273c9b80cf736b9fd0e libsamplerate-0.1.2.tar.gz 707867
+RMD160 4e5453821b80b17586ad66068e409ed0437cca02 libsamplerate-0.1.2.tar.gz 707867
+SHA256 98b8766323c78b7b718dfd4ef6b9292bbf0796b742abb2319b8278cbeee731d4 libsamplerate-0.1.2.tar.gz 707867
diff --git a/media-libs/libsamplerate/files/libsamplerate-0.1.2-automagic.patch b/media-libs/libsamplerate/files/libsamplerate-0.1.2-automagic.patch
new file mode 100644 (file)
index 0000000..1a4ce77
--- /dev/null
@@ -0,0 +1,16 @@
+--- libsamplerate-0.1.2/configure.ac.old       2006-12-08 17:39:38.000000000 +0100
++++ libsamplerate-0.1.2/configure.ac   2006-12-08 17:41:44.000000000 +0100
+@@ -183,8 +183,13 @@
+ #====================================================================================
+ # Check for libsndfile which is required for the test and example programs.
++AC_ARG_ENABLE(sndfile, AC_HELP_STRING([--disable-sndfile], [disable support for sndfile (default=autodetect)]), [ enable_sndfile=$enableval ], [ enable_sndfile=yes ])
++if test "x$enable_sndfile" = "xyes"; then
+ PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.6, ac_cv_sndfile=1, ac_cv_sndfile=0)
++else
++ac_cv_sndfile=0
++fi
+ AC_DEFINE_UNQUOTED([HAVE_SNDFILE],$ac_cv_sndfile,[Set to 1 if you have libsndfile.])
diff --git a/media-libs/libsamplerate/libsamplerate-0.1.2-r1.ebuild b/media-libs/libsamplerate/libsamplerate-0.1.2-r1.ebuild
new file mode 100644 (file)
index 0000000..3a74834
--- /dev/null
@@ -0,0 +1,49 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libsamplerate/libsamplerate-0.1.2-r1.ebuild,v 1.1 2006/12/08 17:02:23 aballier Exp $
+
+WANT_AUTOCONF=2.5
+WANT_AUTOMAKE=1.7
+
+inherit eutils autotools
+
+DESCRIPTION="Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for audio"
+HOMEPAGE="http://www.mega-nerd.com/SRC/"
+SRC_URI="http://www.mega-nerd.com/SRC/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="sndfile fftw"
+
+RDEPEND="fftw? ( >=sci-libs/fftw-3.0.1 )
+       sndfile? ( >=media-libs/libsndfile-1.0.2 )"
+DEPEND="${RDEPEND}
+       >=dev-util/pkgconfig-0.14.0"
+
+src_unpack() {
+       unpack ${A}
+       cd "${S}"
+
+       epatch "${FILESDIR}/${P}-automagic.patch"
+       eautoreconf
+}
+
+src_compile() {
+       local myconf
+
+       use fftw || myconf="${myconf} --disable-fftw"
+
+       econf \
+               ${myconf} \
+               $(use_enable sndfile) \
+               --disable-dependency-tracking \
+               || die "econf failed"
+       emake || die "emake failed"
+}
+
+src_install() {
+       make DESTDIR="${D}" install || die "make install failed"
+       dodoc AUTHORS ChangeLog NEWS README
+       dohtml doc/*.html doc/*.css doc/*.png
+}