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