1 |
drac 08/02/28 16:01:17 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: pdflib-7.0.2_p8.ebuild |
5 |
Log: |
6 |
Version bump wrt security Bug 203287 by Jakub Moc. |
7 |
(Portage version: 2.1.4.4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.92 media-libs/pdflib/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/pdflib/ChangeLog?rev=1.92&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/pdflib/ChangeLog?rev=1.92&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/pdflib/ChangeLog?r1=1.91&r2=1.92 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/media-libs/pdflib/ChangeLog,v |
19 |
retrieving revision 1.91 |
20 |
retrieving revision 1.92 |
21 |
diff -u -r1.91 -r1.92 |
22 |
--- ChangeLog 19 Oct 2007 20:13:26 -0000 1.91 |
23 |
+++ ChangeLog 28 Feb 2008 16:01:16 -0000 1.92 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for media-libs/pdflib |
26 |
-# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/media-libs/pdflib/ChangeLog,v 1.91 2007/10/19 20:13:26 armin76 Exp $ |
28 |
+# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
29 |
+# $Header: /var/cvsroot/gentoo-x86/media-libs/pdflib/ChangeLog,v 1.92 2008/02/28 16:01:16 drac Exp $ |
30 |
+ |
31 |
+*pdflib-7.0.2_p8 (28 Feb 2008) |
32 |
+ |
33 |
+ 28 Feb 2008; Samuli Suominen <drac@g.o> |
34 |
+ +files/pdflib-7.0.2_p8-ruby-configure.patch, +pdflib-7.0.2_p8.ebuild: |
35 |
+ Version bump wrt security Bug 203287 by Jakub Moc. |
36 |
|
37 |
19 Oct 2007; Raúl Porcel <armin76@g.o> pdflib-7.0.2.ebuild: |
38 |
alpha/ia64/sparc stable wrt #195811 |
39 |
|
40 |
|
41 |
|
42 |
1.1 media-libs/pdflib/pdflib-7.0.2_p8.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/pdflib/pdflib-7.0.2_p8.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/pdflib/pdflib-7.0.2_p8.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: pdflib-7.0.2_p8.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/media-libs/pdflib/pdflib-7.0.2_p8.ebuild,v 1.1 2008/02/28 16:01:16 drac Exp $ |
52 |
|
53 |
EAPI="1" |
54 |
|
55 |
# RUBY_OPTIONAL="yes" |
56 |
inherit autotools libtool versionator flag-o-matic toolchain-funcs multilib perl-module java-pkg-opt-2 python # ruby |
57 |
|
58 |
MY_PN="${PN/pdf/PDF}-Lite" |
59 |
MY_P="${MY_PN}-${PV/_/}" |
60 |
S="${WORKDIR}/${MY_P}" |
61 |
|
62 |
DESCRIPTION="A library for generating PDF on the fly." |
63 |
HOMEPAGE="http://www.pdflib.com/" |
64 |
SRC_URI="http://www.pdflib.com/binaries/${PN/pdf/PDF}/$(delete_all_version_separators ${PV/_*/})/${MY_P}.tar.gz" |
65 |
LICENSE="PDFLite" |
66 |
SLOT="5" |
67 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
68 |
IUSE="+cxx doc java perl python tcl" # ruby |
69 |
|
70 |
COMMON_DEP="tcl? ( >=dev-lang/tcl-8.2 ) |
71 |
perl? ( >=dev-lang/perl-5.1 ) |
72 |
python? ( >=dev-lang/python-2.2 )" |
73 |
# ruby? ( virtual/ruby ) |
74 |
|
75 |
DEPEND="${COMMON_DEP} |
76 |
java? ( >=virtual/jdk-1.4 )" |
77 |
|
78 |
RDEPEND=" |
79 |
${COMMON_DEP} |
80 |
java? ( >=virtual/jre-1.4 )" |
81 |
|
82 |
pkg_setup() { |
83 |
use java && java-pkg-opt-2_pkg_setup |
84 |
use perl && perl-module_pkg_setup |
85 |
} |
86 |
|
87 |
src_unpack() { |
88 |
unpack ${A} |
89 |
cd "${S}" |
90 |
|
91 |
# fix broken configure option for ruby bindings. |
92 |
# do NOT call eautoreconf here, it breaks configure horribly. |
93 |
epatch "${FILESDIR}"/${P}-ruby-configure.patch |
94 |
eautoconf |
95 |
elibtoolize |
96 |
} |
97 |
|
98 |
src_compile() { |
99 |
# Bug #87004 |
100 |
filter-flags -mcpu=* -mtune=* |
101 |
|
102 |
# silence QA warnings, feel free to fix properly |
103 |
append-ldflags -Wl,-z,noexecstack |
104 |
append-flags -fno-strict-aliasing |
105 |
|
106 |
# fix crosscompile for C++ bindings |
107 |
use cxx && tc-export CXX |
108 |
|
109 |
local myconf |
110 |
use cxx || myconf="${myconf} --with-cxx=no" |
111 |
|
112 |
use java \ |
113 |
&& myconf="${myconf} --with-java=${JAVA_HOME}" \ |
114 |
|| myconf="${myconf} --with-java=no" |
115 |
|
116 |
use perl || myconf="${myconf} --with-perl=no" |
117 |
|
118 |
if use python ; then |
119 |
python_version |
120 |
myconf="${myconf} --with-py=/usr --with-pyincl=/usr/include/python${PYVER}" |
121 |
else |
122 |
myconf="${myconf} --with-py=no" |
123 |
fi |
124 |
|
125 |
# Necessary for multilib on amd64. Please keep this in future releases. |
126 |
# BUG #81197 |
127 |
# Danny van Dyk <kugelfang@g.o> 2005/02/14 |
128 |
if use tcl ; then |
129 |
TCLVER="$(echo 'puts [info tclversion]' | $(type -P tclsh))" |
130 |
myconf="${myconf} --with-tclpkg=/usr/$(get_libdir)/tcl${TCLVER}/" |
131 |
else |
132 |
myconf="${myconf} --with-tcl=no" |
133 |
fi |
134 |
|
135 |
# ruby bindings disabled for now, configure uses hardcoded list of paths |
136 |
# for includes that do not cover all supported arches on Gentoo |
137 |
# use ruby \ |
138 |
# && myconf="${myconf} --with-ruby=${RUBY}" |
139 |
# || myconf="${myconf} --with-ruby=no" |
140 |
|
141 |
econf --with-ruby=no ${myconf} |
142 |
|
143 |
if use java; then |
144 |
JAVACFLAGS="$(java-pkg_javac-args)" emake || die "emake failed" |
145 |
if use doc; then |
146 |
cd ./bind/pdflib/java || die |
147 |
emake javadoc || die "Failed to generate javadoc" |
148 |
fi |
149 |
else |
150 |
emake || die "emake failed" |
151 |
fi |
152 |
} |
153 |
|
154 |
src_install() { |
155 |
for binding in perl python tcl ; do |
156 |
sed -i \ |
157 |
-e "s:^\(LANG_LIBDIR\).*= \(.*\):\1\t = ${D}/\2:" \ |
158 |
"${S}/bind/pdflib/${binding}/Makefile" \ |
159 |
|| die "sed bind/pdflib/${binding}/Makefile failed" |
160 |
done |
161 |
|
162 |
# this should create the correct lib dirs for perl and python. |
163 |
if use python ; then |
164 |
python_version |
165 |
dodir /usr/$(get_libdir)/python${PYVER}/lib-dynload |
166 |
fi |
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 |
# seemant: seems like the makefiles for pdflib generate the .jar file anyway |
180 |
use java && java-pkg_dojar bind/pdflib/java/pdflib.jar |
181 |
if use java && use doc; then |
182 |
java-pkg_dojavadoc ./bind/pdflib/java/javadoc |
183 |
fi |
184 |
} |
185 |
|
186 |
pkg_postinst() { |
187 |
if has_version "<media-libs/pdflib-7.0.1" ; then |
188 |
ewarn "Please run revdep-rebuild now! All packages that linked with" |
189 |
ewarn "previous versions of PDFLib will no longer work unless you" |
190 |
ewarn "run it." |
191 |
fi |
192 |
} |
193 |
|
194 |
|
195 |
|
196 |
-- |
197 |
gentoo-commits@l.g.o mailing list |