Bump to flac-1.1.3 final, fix AM_PATH_XMMS removal.
authorDiego Elio Pettenò <flameeyes@gentoo.org>
Sun, 3 Dec 2006 15:09:50 +0000 (15:09 +0000)
committerDiego Elio Pettenò <flameeyes@gentoo.org>
Sun, 3 Dec 2006 15:09:50 +0000 (15:09 +0000)
Package-Manager: portage-2.1.2_rc2-r3

media-libs/flac/ChangeLog
media-libs/flac/files/digest-flac-1.1.3 [new file with mode: 0644]
media-libs/flac/flac-1.1.2-r3.ebuild
media-libs/flac/flac-1.1.2-r8.ebuild
media-libs/flac/flac-1.1.3.ebuild [new file with mode: 0644]

index 006487743765326e0b41b13867b2a7ae8de687c4..056ad78b5e61355ee16ce49fc783340484d354fa 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for media-libs/flac
 # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/flac/ChangeLog,v 1.96 2006/11/25 11:07:23 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/flac/ChangeLog,v 1.97 2006/12/03 15:09:50 flameeyes Exp $
+
+*flac-1.1.3 (03 Dec 2006)
+
+  03 Dec 2006; Diego Pettenò <flameeyes@gentoo.org> flac-1.1.2-r3.ebuild,
+  flac-1.1.2-r8.ebuild, -flac-1.1.3_beta2.ebuild, +flac-1.1.3.ebuild:
+  Bump to flac-1.1.3 final, fix AM_PATH_XMMS removal.
 
   25 Nov 2006; Diego Pettenò <flameeyes@gentoo.org> flac-1.1.2-r3.ebuild,
   flac-1.1.2-r8.ebuild, flac-1.1.3_beta2.ebuild:
diff --git a/media-libs/flac/files/digest-flac-1.1.3 b/media-libs/flac/files/digest-flac-1.1.3
new file mode 100644 (file)
index 0000000..5640976
--- /dev/null
@@ -0,0 +1,6 @@
+MD5 b084603948b60ee338e0c29978cc580c flac-1.1.3.tar.gz 1592699
+RMD160 3bb360940775b6b2a5127accfb12d29c04da1132 flac-1.1.3.tar.gz 1592699
+SHA256 ba0bf8b4720537b08aba9b0d2d5b3fbe796ce9957a56334354a2f95694866a7c flac-1.1.3.tar.gz 1592699
+MD5 0edb6d5e4056ebef93f953d4753a809e flac-patches-10.tar.bz2 4620
+RMD160 ef1a4d223bdf3648a5d341c997e38f2ea30fe130 flac-patches-10.tar.bz2 4620
+SHA256 6a9fed09dff2ba5cda4200081a66cfcab8e6ffa77685f1e4aa962362c09b98bb flac-patches-10.tar.bz2 4620
index 2b21f303f8651876127f34d4ece7ab5a2e0685c3..fa52e6f3a0eec7e66786c0878c4d4e60fe3f8a97 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2006 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/flac/flac-1.1.2-r3.ebuild,v 1.14 2006/11/25 11:07:23 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/flac/flac-1.1.2-r3.ebuild,v 1.15 2006/12/03 15:09:50 flameeyes Exp $
 
 WANT_AUTOCONF="latest"
 WANT_AUTOMAKE="latest"
@@ -30,7 +30,7 @@ src_unpack() {
        cd "${S}"
 
        # Hard-disable the XMMS plugin now that XMMS is removed.
-       sed -i -e '/AM_PATH_XMMS/d' "${S}/configure.in"
+       sed -i -e '/AM_PATH_XMMS/s:^.*$:true:' "${S}/configure.in"
 
        EPATCH_SUFFIX="patch" epatch ${WORKDIR}/patches
 
index caf8f1db21cf3213aa9318ee93f4ec2b80af1685..3dd27edbef9ec59d0cee402bf05de1816814da34 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2006 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/flac/flac-1.1.2-r8.ebuild,v 1.3 2006/11/25 11:07:23 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/flac/flac-1.1.2-r8.ebuild,v 1.4 2006/12/03 15:09:50 flameeyes Exp $
 
 WANT_AUTOCONF="latest"
 WANT_AUTOMAKE="latest"
@@ -36,7 +36,7 @@ src_unpack() {
                export EPATCH_EXCLUDE="130_all_visibility.patch 140_all_visibility-xmms.patch 160_all_protected.patch"
 
        # Hard-disable the XMMS plugin now that XMMS is removed.
-       sed -i -e '/AM_PATH_XMMS/d' "${S}/configure.in"
+       sed -i -e '/AM_PATH_XMMS/s:^.*$:true:' "${S}/configure.in"
 
        EPATCH_SUFFIX="patch" \
        epatch "${WORKDIR}/patches"
diff --git a/media-libs/flac/flac-1.1.3.ebuild b/media-libs/flac/flac-1.1.3.ebuild
new file mode 100644 (file)
index 0000000..3a364b9
--- /dev/null
@@ -0,0 +1,76 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/flac/flac-1.1.3.ebuild,v 1.1 2006/12/03 15:09:50 flameeyes Exp $
+
+WANT_AUTOCONF="latest"
+WANT_AUTOMAKE="latest"
+
+inherit libtool eutils toolchain-funcs autotools
+
+MY_P="${P/_beta/-beta}"
+
+PATCHLEVEL="10"
+DESCRIPTION="free lossless audio encoder and decoder"
+HOMEPAGE="http://flac.sourceforge.net/"
+SRC_URI="mirror://sourceforge/flac/${MY_P}.tar.gz
+       mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2"
+
+LICENSE="GPL-2 LGPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="3dnow debug doc ogg sse"
+
+RDEPEND="ogg? ( >=media-libs/libogg-1.0_rc2 )"
+DEPEND="${RDEPEND}
+       x86? ( dev-lang/nasm )
+       sys-apps/gawk
+       doc? ( app-doc/doxygen )
+       dev-util/pkgconfig"
+
+RESTRICT="test"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+       unpack ${A}
+       cd "${S}"
+
+       # Enable only for GCC 4.1 and later
+       [[ $(gcc-major-version)$(gcc-minor-version) -ge 41 ]] || \
+               export EPATCH_EXCLUDE="130_all_visibility.patch 160_all_protected.patch"
+
+       EPATCH_SUFFIX="patch" \
+       epatch "${WORKDIR}/patches"
+       AT_M4DIR="m4" eautoreconf
+       elibtoolize
+}
+
+src_compile() {
+       econf \
+               $(use_enable ogg) \
+               $(use_enable sse) \
+               $(use_enable 3dnow) \
+               $(use_enable debug) \
+               $(use_enable doc doxygen-docs) \
+               --disable-dependency-tracking || die
+
+       # the man page ebuild requires docbook2man... yick!
+       sed -i -e 's:include man:include:g' Makefile
+
+       emake || die "make failed"
+}
+
+src_install() {
+       emake DESTDIR="${D}" docdir="/usr/share/doc/${PF}" \
+               install || die "make install failed"
+       dodoc AUTHORS README
+
+       use doc || rm -rf "${D}/usr/share/doc/${PF}/api"
+
+       doman man/{flac,metaflac}.1
+}
+
+pkg_postinst() {
+       ewarn "If you've upgraded from a previous version of flac, you may need to re-emerge"
+       ewarn "packages that linked against flac by running revdep-rebuild"
+}