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.ebuild
Date: Fri, 02 Apr 2010 20:15:12
Message-Id: E1NxnGm-0007Qe-VF@stork.gentoo.org
1 mabi 10/04/02 20:15:08
2
3 Modified: ChangeLog
4 Added: pdflib-7.0.4_p4.ebuild
5 Log:
6 bump
7 (Portage version: 2.1.7.17/cvs/Linux i686)
8
9 Revision Changes Path
10 1.102 media-libs/pdflib/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/pdflib/ChangeLog?rev=1.102&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/pdflib/ChangeLog?rev=1.102&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/pdflib/ChangeLog?r1=1.101&r2=1.102
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-libs/pdflib/ChangeLog,v
19 retrieving revision 1.101
20 retrieving revision 1.102
21 diff -u -r1.101 -r1.102
22 --- ChangeLog 29 Jul 2009 15:38:41 -0000 1.101
23 +++ ChangeLog 2 Apr 2010 20:15:08 -0000 1.102
24 @@ -1,6 +1,13 @@
25 # ChangeLog for media-libs/pdflib
26 -# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-libs/pdflib/ChangeLog,v 1.101 2009/07/29 15:38:41 darkside Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/media-libs/pdflib/ChangeLog,v 1.102 2010/04/02 20:15:08 mabi Exp $
30 +
31 +*pdflib-7.0.4_p4 (02 Apr 2010)
32 +
33 + 02 Apr 2010; <mabi@g.o> +pdflib-7.0.4_p4.ebuild,
34 + +files/pdflib-noexec-stack.patch, +files/pdflib-python-libdir.patch:
35 + bump (bug #214920), credit to Rafal Muzylo and Sergey Dryabzhinsky for the
36 + ebuild and patches
37
38 29 Jul 2009; Jeremy Olexa <darkside@g.o> -pdflib-6.0.3-r1.ebuild,
39 -pdflib-7.0.1.ebuild, -pdflib-7.0.2.ebuild:
40
41
42
43 1.1 media-libs/pdflib/pdflib-7.0.4_p4.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/pdflib/pdflib-7.0.4_p4.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/pdflib/pdflib-7.0.4_p4.ebuild?rev=1.1&content-type=text/plain
47
48 Index: pdflib-7.0.4_p4.ebuild
49 ===================================================================
50 # Copyright 1999-2010 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/media-libs/pdflib/pdflib-7.0.4_p4.ebuild,v 1.1 2010/04/02 20:15:08 mabi Exp $
53
54 EAPI="1"
55
56 PYTHON_DEPEND="*"
57 RUBY_OPTIONAL="yes"
58 inherit autotools libtool versionator flag-o-matic toolchain-funcs multilib perl-module java-pkg-opt-2 python ruby
59
60 MY_PN="${PN/pdf/PDF}-Lite"
61 MY_P="${MY_PN}-${PV/_/}"
62 S="${WORKDIR}/${MY_P}"
63
64 DESCRIPTION="A library for generating PDF on the fly."
65 HOMEPAGE="http://www.pdflib.com/"
66 SRC_URI="http://www.pdflib.com/binaries/${PN/pdf/PDF}/$(delete_all_version_separators ${PV/_*/})/${MY_P}.tar.gz"
67 LICENSE="PDFLite"
68 SLOT="5"
69 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
70 IUSE="+cxx doc java perl python ruby tcl"
71
72 COMMON_DEP="tcl? ( >=dev-lang/tcl-8.2 )
73 perl? ( >=dev-lang/perl-5.1 )
74 python? ( >=dev-lang/python-2.2 )
75 ruby? ( dev-lang/ruby )"
76
77 DEPEND="${COMMON_DEP}
78 java? ( >=virtual/jdk-1.4 )"
79
80 RDEPEND="
81 ${COMMON_DEP}
82 java? ( >=virtual/jre-1.4 )"
83
84 pkg_setup() {
85 java-pkg-opt-2_pkg_setup
86 use perl && perl-module_pkg_setup
87 }
88
89 src_unpack() {
90 unpack ${A}
91 cd "${S}"
92
93 epatch "${FILESDIR}/${PN}-noexec-stack.patch"
94 epatch "${FILESDIR}/${PN}-python-libdir.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
167 if use perl ; then
168 perlinfo
169 dodir ${SITE_ARCH}
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 }