diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2010-08-24 02:54:21 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2010-08-24 02:54:21 +0000 |
commit | 9710659d168e2d596a1f1f38a5310eae15b2a809 (patch) | |
tree | 9d0c12b6ffb4cc8e7ccbaf7b9eae1120d482a818 /media-libs/speex | |
parent | old (diff) | |
download | gentoo-2-9710659d168e2d596a1f1f38a5310eae15b2a809.tar.gz gentoo-2-9710659d168e2d596a1f1f38a5310eae15b2a809.tar.bz2 gentoo-2-9710659d168e2d596a1f1f38a5310eae15b2a809.zip |
Use append-lfs-flags. USE static-libs and punt .la files.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'media-libs/speex')
-rw-r--r-- | media-libs/speex/ChangeLog | 7 | ||||
-rw-r--r-- | media-libs/speex/speex-1.2_rc1.ebuild | 35 |
2 files changed, 24 insertions, 18 deletions
diff --git a/media-libs/speex/ChangeLog b/media-libs/speex/ChangeLog index d994dc138b40..a02afcfe336a 100644 --- a/media-libs/speex/ChangeLog +++ b/media-libs/speex/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for media-libs/speex -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/speex/ChangeLog,v 1.94 2009/12/11 19:59:55 ranger Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/speex/ChangeLog,v 1.95 2010/08/24 02:54:21 ssuominen Exp $ + + 24 Aug 2010; Samuli Suominen <ssuominen@gentoo.org> speex-1.2_rc1.ebuild: + Use append-lfs-flags. USE static-libs and punt .la files. 11 Dec 2009; Brent Baude <ranger@gentoo.org> speex-1.2_rc1.ebuild: Marking speex-1.2_rc1 ppc64 for bug 289701 diff --git a/media-libs/speex/speex-1.2_rc1.ebuild b/media-libs/speex/speex-1.2_rc1.ebuild index 237a297f2b4b..b15a62f77402 100644 --- a/media-libs/speex/speex-1.2_rc1.ebuild +++ b/media-libs/speex/speex-1.2_rc1.ebuild @@ -1,7 +1,8 @@ -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/speex/speex-1.2_rc1.ebuild,v 1.8 2009/12/11 19:59:55 ranger Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/speex/speex-1.2_rc1.ebuild,v 1.9 2010/08/24 02:54:21 ssuominen Exp $ +EAPI=2 inherit autotools eutils flag-o-matic MY_P=${P/_} ; MY_P=${MY_P/_p/.} @@ -13,34 +14,36 @@ SRC_URI="http://downloads.xiph.org/releases/speex/${MY_P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd" -IUSE="ogg sse" +IUSE="ogg sse static-libs" RDEPEND="ogg? ( media-libs/libogg )" DEPEND="${RDEPEND}" S=${WORKDIR}/${MY_P} -src_unpack() { - unpack ${A} - cd "${S}" +src_prepare() { epatch "${FILESDIR}"/${P}-configure.patch - sed -i -e 's:noinst_PROGRAMS:check_PROGRAMS:' \ - "${S}"/libspeex/Makefile.am \ - || die "unable to disable tests building" + sed -i \ + -e 's:noinst_PROGRAMS:check_PROGRAMS:' \ + libspeex/Makefile.am || die + eautoreconf } -src_compile() { - append-flags -D_FILE_OFFSET_BITS=64 +src_configure() { + append-lfs-flags - econf $(use_enable sse) $(use_enable ogg) - emake || die "emake failed." + econf \ + $(use_enable static-libs static) \ + --disable-dependency-tracking \ + $(use_enable sse) \ + $(use_enable ogg) } src_install() { - emake DESTDIR="${D}" docdir="/usr/share/doc/${PF}" \ - install || die "emake install failed." - + emake DESTDIR="${D}" docdir=/usr/share/doc/${PF} install || die dodoc AUTHORS ChangeLog NEWS README* TODO + + find "${D}" -name '*.la' -exec rm -f '{}' + } |