Gentoo Archives: gentoo-commits

From: "Peter Alfredsen (loki_val)" <loki_val@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-text/poppler-bindings: ChangeLog poppler-bindings-0.9.3.ebuild poppler-bindings-0.9.2.ebuild
Date: Wed, 08 Oct 2008 14:11:50
Message-Id: E1KnZlM-00046Q-Q6@stork.gentoo.org
1 loki_val 08/10/08 14:11:40
2
3 Modified: ChangeLog
4 Added: poppler-bindings-0.9.3.ebuild
5 Removed: poppler-bindings-0.9.2.ebuild
6 Log:
7 Bump. Go EAPI-2. Drop la files and static archives, not used. Dropping keywords for arm hppa ia64 m68k mips s390 sh sparc-fbsd cause they don't have openjpeg keyworded and poppler needs that. Implement alternative solution to stop building libpoppler.so using sed. Drop the stupid patch and use sed, so we don't have to keep the patch up-to-date. When cairo is enabled, gtk is now implicitly enabled also, since the cairo flag enables a feature of the gtk flag. Die if no use flags have been selected, or we wind up with empty package.
8 (Portage version: 2.2_rc11/cvs/Linux 2.6.27-rc8 x86_64)
9
10 Revision Changes Path
11 1.108 app-text/poppler-bindings/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/poppler-bindings/ChangeLog?rev=1.108&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/poppler-bindings/ChangeLog?rev=1.108&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/poppler-bindings/ChangeLog?r1=1.107&r2=1.108
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-text/poppler-bindings/ChangeLog,v
20 retrieving revision 1.107
21 retrieving revision 1.108
22 diff -u -r1.107 -r1.108
23 --- ChangeLog 8 Oct 2008 00:14:45 -0000 1.107
24 +++ ChangeLog 8 Oct 2008 14:11:40 -0000 1.108
25 @@ -1,6 +1,19 @@
26 # ChangeLog for app-text/poppler-bindings
27 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-text/poppler-bindings/ChangeLog,v 1.107 2008/10/08 00:14:45 loki_val Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-text/poppler-bindings/ChangeLog,v 1.108 2008/10/08 14:11:40 loki_val Exp $
30 +
31 +*poppler-bindings-0.9.3 (08 Oct 2008)
32 +
33 + 08 Oct 2008; Peter Alfredsen <loki_val@g.o>
34 + -poppler-bindings-0.9.2.ebuild, +poppler-bindings-0.9.3.ebuild:
35 + Bump. Go EAPI-2. Drop la files and static archives, not used. Dropping
36 + keywords for arm hppa ia64 m68k mips s390 sh sparc-fbsd cause they don't
37 + have openjpeg keyworded and poppler needs that. Implement alternative
38 + solution to stop building libpoppler.so using sed. Drop the stupid patch
39 + and use sed, so we don't have to keep the patch up-to-date. When cairo is
40 + enabled, gtk is now implicitly enabled also, since the cairo flag enables
41 + a feature of the gtk flag. Die if no use flags have been selected, or we
42 + wind up with empty package.
43
44 08 Oct 2008; Peter Alfredsen <loki_val@g.o>
45 poppler-bindings-0.8.7.ebuild:
46
47
48
49 1.1 app-text/poppler-bindings/poppler-bindings-0.9.3.ebuild
50
51 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/poppler-bindings/poppler-bindings-0.9.3.ebuild?rev=1.1&view=markup
52 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/poppler-bindings/poppler-bindings-0.9.3.ebuild?rev=1.1&content-type=text/plain
53
54 Index: poppler-bindings-0.9.3.ebuild
55 ===================================================================
56 # Copyright 1999-2008 Gentoo Foundation
57 # Distributed under the terms of the GNU General Public License v2
58 # $Header: /var/cvsroot/gentoo-x86/app-text/poppler-bindings/poppler-bindings-0.9.3.ebuild,v 1.1 2008/10/08 14:11:40 loki_val Exp $
59
60 EAPI="2"
61
62 inherit autotools eutils multilib
63
64 MY_P=${P/-bindings/}
65 DESCRIPTION="rendering bindings for GUI toolkits for poppler"
66 HOMEPAGE="http://poppler.freedesktop.org/"
67
68 # Creating the testsuite tarball
69 # must be done if upstream has added tests since last release.
70 # can be checked at cgit.freedesktop.org
71 #
72 # git clone git://anongit.freedesktop.org/git/poppler/test
73 # rm -rf test/.git
74 # tar czf poppler-test-${PV}.tar.gz test
75
76 SRC_URI="http://poppler.freedesktop.org/${MY_P}.tar.gz
77 test? ( mirror://gentoo/poppler-test-0.9.2.tar.bz2 )"
78
79 LICENSE="GPL-2"
80 SLOT="0"
81 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
82 IUSE="gtk qt3 cairo qt4 test"
83
84 RDEPEND="~app-text/poppler-${PV}
85 cairo? (
86 >=x11-libs/cairo-1.4
87 !gtk? (
88 >=x11-libs/gtk+-2.8
89 >=dev-libs/glib-2.8
90 )
91 )
92 gtk? (
93 >=x11-libs/gtk+-2.8
94 >=dev-libs/glib-2.8
95 )
96 qt3? ( =x11-libs/qt-3* )
97 qt4? ( || ( ( x11-libs/qt-core:4
98 x11-libs/qt-gui:4
99 x11-libs/qt-test:4 )
100 =x11-libs/qt-4.3*:4 ) )"
101 DEPEND="${RDEPEND}
102 dev-util/pkgconfig
103 test? ( gtk? ( >=gnome-base/libglade-2 ) )"
104
105 S="${WORKDIR}/${MY_P}"
106
107 pkg_setup() {
108 if ! { use gtk || use qt3 || use qt4 || use cairo; }
109 then
110 eerror "You've selected to build no bindings for poppler."
111 eerror "Please select at least one of:"
112 eerror "gtk, qt3, qt4, cairo"
113 die "Please select a toolkit"
114 fi
115
116 }
117
118 src_prepare() {
119 sed -i \
120 -e 's:$(top_builddir)/poppler/libpoppler.la:-lpoppler:' \
121 $(find . -name 'Makefile.am' ) || die "404"
122 sed -i \
123 -e '/libpoppler_la_LIBADD/,/win32_libs/d' \
124 -e '/libpoppler_la_SOURCES/,/XpdfPluginAPI.cc/d' \
125 -e '/libpoppler.la/d' \
126 -e '/libpoppler_la/d' \
127 poppler/Makefile.am || die "404"
128
129 sed -i \
130 -e '/if BUILD_SPLASH_OUTPUT/,/endif/d' \
131 -e '/poppler.pc\t/d' \
132 -e ':$(splash_pc_file):d' \
133 Makefile.am || die "404"
134
135 eautoreconf
136 }
137
138 src_configure() {
139 # Configure needs help finding qt libs on multilib systems
140 export QTLIB="${QTDIR}/$(get_libdir)"
141 echo $QTLIB
142
143 econf --disable-utils \
144 --disable-static \
145 $(use_enable gtk poppler-glib) \
146 $(use_enable qt3 poppler-qt) \
147 $(use_enable qt4 poppler-qt4) \
148 $(use_enable cairo poppler-glib) \
149 $(use_enable cairo cairo-output) \
150 || die "configuration failed"
151 }
152
153 src_compile() {
154 cd poppler
155 if use cairo; then
156 emake libpoppler-cairo.la || die "cairo failed"
157 fi
158 if use qt4; then
159 emake libpoppler-arthur.la || die "arthur failed"
160 fi
161 cd ..
162 emake || die "compilation failed"
163 }
164
165 src_install() {
166 emake DESTDIR="${D}" install || die "emake install failed"
167 rm -f $(find "${D}" -name '*.la')
168 }
169
170 pkg_postinst() {
171 ewarn "You need to rebuild everything depending on poppler, use revdep-rebuild"
172 }