Add largefile support for glibc/uclibc. Fix ${CC} handling for cross-compile sake.
authorDiego Elio Pettenò <flameeyes@gentoo.org>
Thu, 25 Aug 2005 12:21:58 +0000 (12:21 +0000)
committerDiego Elio Pettenò <flameeyes@gentoo.org>
Thu, 25 Aug 2005 12:21:58 +0000 (12:21 +0000)
Package-Manager: portage-2.0.51.22

media-sound/toolame/ChangeLog
media-sound/toolame/Manifest
media-sound/toolame/files/digest-toolame-02l-r2 [new file with mode: 0644]
media-sound/toolame/toolame-02l-r2.ebuild [new file with mode: 0644]

index 136086f3e6ad54405f451fc9fad2a5ec7d35a069..0436f2d768f2e85957beb4d78889b2c0a0a8dcee 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for media-sound/toolame
 # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/toolame/ChangeLog,v 1.13 2005/08/24 16:15:19 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/toolame/ChangeLog,v 1.14 2005/08/25 12:21:58 flameeyes Exp $
+
+*toolame-02l-r2 (25 Aug 2005)
+
+  25 Aug 2005; Diego Pettenò <flameeyes@gentoo.org> +toolame-02l-r2.ebuild:
+  Add largefile support for glibc/uclibc. Fix ${CC} handling for cross-compile
+  sake.
 
   24 Aug 2005; Diego Pettenò <flameeyes@gentoo.org> toolame-02l.ebuild,
   toolame-02l-r1.ebuild:
index b4e15db315e3a1d21f9f2d0523da5eea16a36b96..e3f640bbef109a7c74b064b3673761f9f8c000af 100644 (file)
@@ -1,18 +1,20 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
-MD5 e366912e9642490b17ff7bf4844ed58f ChangeLog 1619
+MD5 03d87115353b6e3b11240a5ad2dff0fd ChangeLog 1815
 MD5 e53f02956bc1bd05fbbf3afd336781cf toolame-02l.ebuild 660
+MD5 ef52f6b4eb180f3e8fb264b04dc2e3ca toolame-02l-r2.ebuild 934
 MD5 c6d157b936d85a2218795dcb6bf6e653 toolame-02l-r1.ebuild 700
 MD5 a1eaeb2ae801daeb712c90c060e922dc metadata.xml 158
 MD5 4b1a1622289b050b59a5243fae23d193 files/toolame-02l-uint.patch 950
+MD5 5cc792797a252d3d4d12b9857d393ee8 files/digest-toolame-02l-r2 60
 MD5 03d22f398bef3ac46ba7c7a7910d2d80 files/toolame-02l-gentoo.diff 2153
 MD5 5cc792797a252d3d4d12b9857d393ee8 files/digest-toolame-02l 60
 MD5 5cc792797a252d3d4d12b9857d393ee8 files/digest-toolame-02l-r1 60
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.2 (GNU/Linux)
 
-iD8DBQFDDJ0zj5H05b2HAEkRAtagAKCSUQY3Z+U8uGdcX/flHn5GZ9tDigCdF0qE
-GCrr3/wud4UHnzMF/DezNjM=
-=O9mL
+iD8DBQFDDbgAj5H05b2HAEkRApWYAJ9kKou2C0lnSZbA+/BMWA+rYC9RBwCfaAw9
+HY1wpFg1Lers/miLsEWDCrc=
+=U8ql
 -----END PGP SIGNATURE-----
diff --git a/media-sound/toolame/files/digest-toolame-02l-r2 b/media-sound/toolame/files/digest-toolame-02l-r2
new file mode 100644 (file)
index 0000000..2815800
--- /dev/null
@@ -0,0 +1 @@
+MD5 5946e2dd78fbb57e54386b3b5d873fee toolame-02l.tgz 127493
diff --git a/media-sound/toolame/toolame-02l-r2.ebuild b/media-sound/toolame/toolame-02l-r2.ebuild
new file mode 100644 (file)
index 0000000..2d37a0f
--- /dev/null
@@ -0,0 +1,43 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/toolame/toolame-02l-r2.ebuild,v 1.1 2005/08/25 12:21:58 flameeyes Exp $
+
+inherit eutils flag-o-matic toolchain-funcs
+
+DESCRIPTION="tooLAME - an optimized mpeg 1/2 layer 2 audio encoder"
+HOMEPAGE="http://www.planckenergy.com"
+SRC_URI="mirror://sourceforge/toolame/${P}.tgz"
+
+IUSE=""
+
+SLOT="0"
+LICENSE="LGPL-2.1"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+
+DEPEND="virtual/libc
+       sys-devel/gcc"
+
+src_unpack() {
+       unpack ${A}
+       cd ${S}
+
+       epatch ${FILESDIR}/${P}-gentoo.diff
+       epatch ${FILESDIR}/${P}-uint.patch
+}
+
+src_compile() {
+       # Enable largefile support, as toolame doesn't use autoconf
+       ( use elibc_glibc || use elibc_uclibc ) && \
+               append-flags "-D_FILE_OFFSET_BITS=64"
+
+       tc-export CC
+
+       emake || die
+}
+
+src_install() {
+       dobin toolame || die
+       dodoc README HISTORY FUTURE html/* text/*
+}
+
+