/[gentoo-x86]/media-libs/libextractor/libextractor-1.0.1.ebuild
Gentoo

Contents of /media-libs/libextractor/libextractor-1.0.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Oct 24 07:49:45 2012 UTC (21 months, 3 weeks ago) by ssuominen
Branch: MAIN
Changes since 1.2: +2 -2 lines
Restore ~ppc64 after keywording media-libs/libsmf wrt #436954

(Portage version: 2.2.0_alpha135/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-libs/libextractor/libextractor-1.0.1.ebuild,v 1.2 2012/10/24 07:46:28 ssuominen Exp $
4
5 EAPI=4
6 inherit eutils flag-o-matic multilib toolchain-funcs
7
8 DESCRIPTION="A library used to extract metadata from files of arbitrary type"
9 HOMEPAGE="http://www.gnu.org/software/libextractor/"
10 SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
11
12 LICENSE="GPL-3"
13 SLOT="0"
14 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
15 IUSE="+archive +bzip2 ffmpeg flac gif gsf gtk jpeg mp4 +magic midi mpeg qt4 tidy tiff vorbis +zlib" # test
16
17 RESTRICT="test"
18
19 RDEPEND="app-text/iso-codes
20 >=dev-libs/glib-2
21 media-gfx/exiv2
22 sys-devel/libtool
23 virtual/libiconv
24 virtual/libintl
25 archive? ( app-arch/libarchive )
26 bzip2? ( app-arch/bzip2 )
27 ffmpeg? ( virtual/ffmpeg )
28 flac? (
29 media-libs/flac
30 media-libs/libogg
31 )
32 gif? ( media-libs/giflib )
33 gsf? ( gnome-extra/libgsf )
34 gtk? ( x11-libs/gtk+:3 )
35 jpeg? ( virtual/jpeg )
36 mp4? ( media-libs/libmp4v2:0 )
37 magic? ( sys-apps/file )
38 midi? ( media-libs/libsmf )
39 mpeg? ( media-libs/libmpeg2 )
40 qt4? (
41 x11-libs/qt-gui:4
42 x11-libs/qt-svg:4
43 )
44 tidy? ( app-text/htmltidy )
45 tiff? ( media-libs/tiff:0 )
46 vorbis? (
47 media-libs/libogg
48 media-libs/libvorbis
49 )
50 zlib? ( sys-libs/zlib )
51 !app-crypt/pkcrack
52 !sci-biology/glimmer
53 !sci-chemistry/pdb-extract"
54 DEPEND="${RDEPEND}
55 sys-devel/gettext
56 virtual/pkgconfig"
57 # test? ( app-forensics/zzuf )
58
59 DOCS="AUTHORS ChangeLog NEWS README TODO"
60
61 src_prepare() {
62 # m4/ax_create_pkgconfig_info.m4 is passing environment LDFLAGS to Libs:
63 sed -i \
64 -e '/^ax_create_pkgconfig_ldflags=/s:$LDFLAGS ::' \
65 -e 's:ac_cv_header_tidy_tidy_h:ac_cv_header_tidy_h:g' \
66 -e 's:tidy/tidy.h:tidy.h:g' \
67 -e 's:tidy/buffio.h:buffio.h:g' \
68 configure src/plugins/html_extractor.c || die
69 }
70
71 src_configure() {
72 e_ac_cv() {
73 export ac_cv_"$@"
74 }
75
76 e_ac_cv {lib_rpm_rpmReadPackageFile,prog_HAVE_ZZUF}=no
77
78 if use flac; then
79 e_ac_cv header_FLAC_all_h=yes
80 e_ac_cv lib_FLAC_FLAC__stream_decoder_init_stream=yes
81 else
82 e_ac_cv header_FLAC_all_h=no
83 e_ac_cv lib_FLAC_FLAC__stream_decoder_init_stream=no
84 e_ac_cv lib_FLAC_FLAC__stream_decoder_init_ogg_stream=no
85 fi
86
87 e_ac_cv header_archive_h=$(usex archive)
88 e_ac_cv header_bzlib_h=$(usex bzip2)
89 e_ac_cv header_gif_lib_h=$(usex gif)
90 e_ac_cv header_jpeglib_h=$(usex jpeg)
91 e_ac_cv header_magic_h=$(usex magic)
92 e_ac_cv header_mpeg2dec_mpeg2_h=$(usex mpeg)
93 e_ac_cv header_tiffio_h=$(usex tiff)
94 e_ac_cv header_vorbis_vorbisfile_h=$(usex vorbis)
95 e_ac_cv header_zlib_h=$(usex zlib)
96 e_ac_cv lib_tidy_tidyInitSource=$(usex tidy)
97 e_ac_cv lib_mp4v2_MP4ReadProvider=$(usex mp4)
98 e_ac_cv lib_smf_smf_load_from_memory=$(usex midi)
99
100 local myconf
101
102 if use qt4; then
103 append-cppflags "$($(tc-getPKG_CONFIG) --cflags-only-I QtGui QtSvg)"
104 append-ldflags "$($(tc-getPKG_CONFIG) --libs-only-L QtGui QtSvg)"
105 else
106 myconf='--without-qt'
107 fi
108
109 # gstreamer support is for 1.0, no 0.10 support
110 econf \
111 --disable-static \
112 --enable-experimental \
113 --enable-glib \
114 $(use_enable gsf) \
115 --disable-gnome \
116 $(use_enable ffmpeg) \
117 --with-gtk_version=$(usex gtk 3.0.0 false) \
118 --without-gstreamer \
119 ${myconf}
120 }
121
122 src_compile() {
123 emake -j1
124 }
125
126 src_install() {
127 default
128 find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
129 }

  ViewVC Help
Powered by ViewVC 1.1.20