Gentoo Archives: gentoo-commits

From: "Matti Bickel (mabi)" <mabi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/pdflib: ChangeLog pdflib-7.0.4_p4-r1.ebuild pdflib-7.0.4_p4.ebuild
Date: Fri, 02 Apr 2010 20:40:22
Message-Id: E1Nxnf8-0008WB-0J@stork.gentoo.org
1 mabi 10/04/02 20:40:18
2
3 Modified: ChangeLog
4 Added: pdflib-7.0.4_p4-r1.ebuild
5 Removed: pdflib-7.0.4_p4.ebuild
6 Log:
7 fix bug #298019
8 (Portage version: 2.1.7.17/cvs/Linux i686)
9
10 Revision Changes Path
11 1.103 media-libs/pdflib/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/pdflib/ChangeLog?rev=1.103&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/pdflib/ChangeLog?rev=1.103&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/pdflib/ChangeLog?r1=1.102&r2=1.103
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-libs/pdflib/ChangeLog,v
20 retrieving revision 1.102
21 retrieving revision 1.103
22 diff -u -r1.102 -r1.103
23 --- ChangeLog 2 Apr 2010 20:15:08 -0000 1.102
24 +++ ChangeLog 2 Apr 2010 20:40:17 -0000 1.103
25 @@ -1,6 +1,12 @@
26 # ChangeLog for media-libs/pdflib
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-libs/pdflib/ChangeLog,v 1.102 2010/04/02 20:15:08 mabi Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-libs/pdflib/ChangeLog,v 1.103 2010/04/02 20:40:17 mabi Exp $
30 +
31 +*pdflib-7.0.4_p4-r1 (02 Apr 2010)
32 +
33 + 02 Apr 2010; <mabi@g.o> -pdflib-7.0.4_p4.ebuild,
34 + +pdflib-7.0.4_p4-r1.ebuild, +files/pdflib-perl-vendor-dir.patch:
35 + include vendor_perl patch from david abbott (bug #298019)
36
37 *pdflib-7.0.4_p4 (02 Apr 2010)
38
39
40
41
42 1.1 media-libs/pdflib/pdflib-7.0.4_p4-r1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/pdflib/pdflib-7.0.4_p4-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/pdflib/pdflib-7.0.4_p4-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: pdflib-7.0.4_p4-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2010 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/media-libs/pdflib/pdflib-7.0.4_p4-r1.ebuild,v 1.1 2010/04/02 20:40:17 mabi Exp $
52
53 EAPI="1"
54
55 PYTHON_DEPEND="*"
56 RUBY_OPTIONAL="yes"
57 inherit autotools libtool versionator flag-o-matic toolchain-funcs multilib perl-module java-pkg-opt-2 python ruby
58
59 MY_PN="${PN/pdf/PDF}-Lite"
60 MY_P="${MY_PN}-${PV/_/}"
61 S="${WORKDIR}/${MY_P}"
62
63 DESCRIPTION="A library for generating PDF on the fly."
64 HOMEPAGE="http://www.pdflib.com/"
65 SRC_URI="http://www.pdflib.com/binaries/${PN/pdf/PDF}/$(delete_all_version_separators ${PV/_*/})/${MY_P}.tar.gz"
66 LICENSE="PDFLite"
67 SLOT="5"
68 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
69 IUSE="+cxx doc java perl python ruby tcl"
70
71 COMMON_DEP="tcl? ( >=dev-lang/tcl-8.2 )
72 perl? ( >=dev-lang/perl-5.1 )
73 python? ( >=dev-lang/python-2.2 )
74 ruby? ( dev-lang/ruby )"
75
76 DEPEND="${COMMON_DEP}
77 java? ( >=virtual/jdk-1.4 )"
78
79 RDEPEND="
80 ${COMMON_DEP}
81 java? ( >=virtual/jre-1.4 )"
82
83 pkg_setup() {
84 java-pkg-opt-2_pkg_setup
85 use perl && perl-module_pkg_setup
86 }
87
88 src_unpack() {
89 unpack ${A}
90 cd "${S}"
91
92 epatch "${FILESDIR}/${PN}-noexec-stack.patch"
93 epatch "${FILESDIR}/${PN}-python-libdir.patch"
94 epatch "${FILESDIR}/${PN}-perl-vendor-dir.patch"
95 sed -ie 's/-module/-module -avoid-version -shared/' config/mkbind.inc.in
96
97 # eautoreconf breaks the build
98 eautoconf
99 elibtoolize
100 }
101
102 src_compile() {
103 # Bug #87004
104 filter-flags -mcpu=* -mtune=*
105
106 # silence QA warnings, feel free to fix properly
107 append-flags -fno-strict-aliasing
108
109 # fix crosscompile for C++ bindings
110 use cxx && tc-export CXX
111
112 local myconf
113 use cxx || myconf="${myconf} --with-cxx=no"
114
115 use java \
116 && myconf="${myconf} --with-java=${JAVA_HOME}" \
117 || myconf="${myconf} --with-java=no"
118
119 use perl || myconf="${myconf} --with-perl=no"
120
121 if use python ; then
122 myconf="${myconf} --with-py=/usr --with-pyincl=$(python_get_includedir)"
123 else
124 myconf="${myconf} --with-py=no"
125 fi
126
127 # Necessary for multilib on amd64. Please keep this in future releases.
128 # BUG #81197
129 # Danny van Dyk <kugelfang@g.o> 2005/02/14
130 if use tcl ; then
131 TCLVER="$(echo 'puts [info tclversion]' | $(type -P tclsh))"
132 myconf="${myconf} --with-tclpkg=/usr/$(get_libdir)/tcl${TCLVER}/"
133 else
134 myconf="${myconf} --with-tcl=no"
135 fi
136
137 # ruby bindings disabled for now, configure uses hardcoded list of paths
138 # for includes that do not cover all supported arches on Gentoo
139 use ruby \
140 && myconf="${myconf} --with-ruby=${RUBY}" \
141 || myconf="${myconf} --with-ruby=no"
142
143 # totally screws configure:
144 # econf "--enable-static=no ${myconf}"
145 econf ${myconf}
146
147 if use java; then
148 emake || die "emake failed"
149 if use doc; then
150 cd ./bind/pdflib/java || die
151 emake javadoc || die "Failed to generate javadoc"
152 fi
153 else
154 emake || die "emake failed"
155 fi
156 }
157
158 src_install() {
159 for binding in perl python tcl ; do
160 sed -i \
161 -e "s:^\(LANG_LIBDIR\).*= \(.*\):\1\t = ${D}/\2:" \
162 "${S}/bind/pdflib/${binding}/Makefile" \
163 || die "sed bind/pdflib/${binding}/Makefile failed"
164 done
165
166 # this should create the correct lib dir for perl (bug #298019)
167 if use perl ; then
168 perlinfo
169 fixlocalpod
170 fi
171
172 # and no, emake still does not work for install
173 einstall || die "einstall failed"
174
175 dodoc readme.txt doc/*
176 docinto pdflib
177 dodoc doc/pdflib/*
178
179 if use java ; then
180 java-pkg_dojar bind/pdflib/java/pdflib.jar
181 java-pkg_regso "${D}/usr/$(get_libdir)/libpdf_java.so"
182 use doc && java-pkg_dojavadoc ./bind/pdflib/java/javadoc
183 fi
184
185 # Lot of hakku for ruby
186 if use ruby ; then
187 local RUBYLIBDIR=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitelibdir"]')
188 insinto ${RUBYLIBDIR}
189 insopts -m 0755
190 doins ./bind/pdflib/ruby/*.rb
191 RUBYLIBDIR=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitearchdir"]')
192 dodir ${RUBYLIBDIR}
193 mv "${D}/usr/$(get_libdir)"/PDFlib.* "${D}/${RUBYLIBDIR}"/
194 cp ./bind/pdflib/ruby/pdflib_ruby.lo "${D}/${RUBYLIBDIR}"/pdflib_ruby.so
195 chmod 0755 "${D}/${RUBYLIBDIR}"/*.so*
196 fi
197
198 }
199
200 pkg_preinst () {
201 perl-module_pkg_preinst
202 has_version "<${CATEGORY}/${PN}-7.0.3"
203 previous_less_than_7_0_3=$?
204 }
205
206 pkg_postinst() {
207 if [[ $previous_less_than_7_0_3 = 0 ]] ; then
208 ewarn "Please run revdep-rebuild now! All packages linked with"
209 ewarn "previous versions of PDFLib will no longer work unless you do."
210 fi
211 }