summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2012-06-01 07:10:22 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2012-06-01 07:10:22 +0000
commitb7d9ae0828970b60231ad19211c320060794ac94 (patch)
tree1947aa88ecc36870c286d31f58ce5d0bd9cd982f /media-libs/libextractor
parentVersion bump for bug 418481. (diff)
downloadgentoo-2-b7d9ae0828970b60231ad19211c320060794ac94.tar.gz
gentoo-2-b7d9ae0828970b60231ad19211c320060794ac94.tar.bz2
gentoo-2-b7d9ae0828970b60231ad19211c320060794ac94.zip
USE flags "gtk" and "pdf" for optionalizing app-text/poppler and x11-libs/gtk+:2 wrt #415447 by Thomas Beutin
(Portage version: 2.2.0_alpha108/cvs/Linux x86_64)
Diffstat (limited to 'media-libs/libextractor')
-rw-r--r--media-libs/libextractor/ChangeLog9
-rw-r--r--media-libs/libextractor/libextractor-0.6.3-r1.ebuild88
2 files changed, 96 insertions, 1 deletions
diff --git a/media-libs/libextractor/ChangeLog b/media-libs/libextractor/ChangeLog
index 5cdd896f7ec0..ec721a525c3e 100644
--- a/media-libs/libextractor/ChangeLog
+++ b/media-libs/libextractor/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-libs/libextractor
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libextractor/ChangeLog,v 1.68 2012/05/11 08:21:34 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libextractor/ChangeLog,v 1.69 2012/06/01 07:10:22 ssuominen Exp $
+
+*libextractor-0.6.3-r1 (01 Jun 2012)
+
+ 01 Jun 2012; Samuli Suominen <ssuominen@gentoo.org>
+ +libextractor-0.6.3-r1.ebuild:
+ USE flags "gtk" and "pdf" for optionalizing app-text/poppler and
+ x11-libs/gtk+:2 wrt #415447 by Thomas Beutin
11 May 2012; Samuli Suominen <ssuominen@gentoo.org>
-libextractor-0.5.19a.ebuild:
diff --git a/media-libs/libextractor/libextractor-0.6.3-r1.ebuild b/media-libs/libextractor/libextractor-0.6.3-r1.ebuild
new file mode 100644
index 000000000000..2de1592641c2
--- /dev/null
+++ b/media-libs/libextractor/libextractor-0.6.3-r1.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libextractor/libextractor-0.6.3-r1.ebuild,v 1.1 2012/06/01 07:10:22 ssuominen Exp $
+
+EAPI=4
+inherit eutils flag-o-matic multilib toolchain-funcs
+
+DESCRIPTION="A library used to extract metadata from files of arbitrary type"
+HOMEPAGE="http://www.gnu.org/software/libextractor/"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86"
+IUSE="ffmpeg gsf gtk pdf qt4" # test
+
+RDEPEND="app-arch/bzip2
+ app-text/iso-codes
+ >=dev-libs/glib-2
+ media-gfx/exiv2
+ media-libs/flac
+ media-libs/libmpeg2
+ media-libs/libogg
+ media-libs/libvorbis
+ >=sys-devel/libtool-2.2.6b
+ sys-libs/zlib
+ virtual/libintl
+ ffmpeg? ( >=virtual/ffmpeg-0.10 )
+ gsf? ( >=gnome-extra/libgsf-1.14.21 )
+ gtk? ( x11-libs/gtk+:2 )
+ pdf? ( app-text/poppler[cairo] )
+ qt4? (
+ x11-libs/qt-gui:4
+ x11-libs/qt-svg:4
+ )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ sys-devel/gettext"
+# test? ( app-forensics/zzuf )
+
+RESTRICT="test"
+
+DOCS="AUTHORS ChangeLog NEWS README TODO"
+
+src_prepare() {
+ sed -i \
+ -e 's:CODEC_TYPE_VIDEO:AVMEDIA_TYPE_VIDEO:' \
+ src/plugins/thumbnailffmpeg_extractor.c || die
+
+ # Missing AC_ARG_ENABLE wrt #415447
+ use gtk || { sed -i -e '/min_gtk_version=/s:=.*:=9999:' configure || die; }
+
+ # m4/ax_create_pkgconfig_info.m4 is passing environment LDFLAGS to Libs:
+ sed -i -e '/^ax_create_pkgconfig_ldflags=/s:$LDFLAGS ::' configure || die
+}
+
+src_configure() {
+ local myconf
+
+ if use qt4; then
+ append-cppflags "$($(tc-getPKG_CONFIG) --cflags-only-I QtGui QtSvg)"
+ append-ldflags "$($(tc-getPKG_CONFIG) --libs-only-L QtGui QtSvg)"
+ else
+ myconf="--without-qt"
+ fi
+
+ # Missing AC_ARG_ENABLE wrt #415447. Both because of private _ZTI9MemStream.
+ local opt
+ for opt in ac_cv_header_poppler_goo_gmem_h ac_cv_lib_poppler__ZTI9MemStream; do
+ export ${opt}=$(usex pdf)
+ done
+
+ econf \
+ --enable-glib \
+ $(use_enable gsf) \
+ --disable-gnome \
+ $(use_enable ffmpeg) \
+ ${myconf}
+}
+
+src_compile() {
+ emake -j1
+}
+
+src_install() {
+ default
+ find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
+}