Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-text/podofo: podofo-0.9.2.ebuild podofo-0.9.1.ebuild ChangeLog
Date: Wed, 27 Feb 2013 08:45:08
Message-Id: 20130227084503.7FC172171D@flycatcher.gentoo.org
1 zmedico 13/02/27 08:45:03
2
3 Modified: podofo-0.9.1.ebuild ChangeLog
4 Added: podofo-0.9.2.ebuild
5 Log:
6 Handle multilib-aware freetype headers for bug #459404, and add version 0.9.2.
7
8 (Portage version: 2.2.0_alpha163_p18/cvs/Linux i686, signed Manifest commit with key 0xFDE8EF85AE5719A3)
9
10 Revision Changes Path
11 1.11 app-text/podofo/podofo-0.9.1.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/podofo/podofo-0.9.1.ebuild?rev=1.11&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/podofo/podofo-0.9.1.ebuild?rev=1.11&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/podofo/podofo-0.9.1.ebuild?r1=1.10&r2=1.11
16
17 Index: podofo-0.9.1.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-text/podofo/podofo-0.9.1.ebuild,v
20 retrieving revision 1.10
21 retrieving revision 1.11
22 diff -u -r1.10 -r1.11
23 --- podofo-0.9.1.ebuild 28 Oct 2012 02:45:53 -0000 1.10
24 +++ podofo-0.9.1.ebuild 27 Feb 2013 08:45:03 -0000 1.11
25 @@ -1,6 +1,6 @@
26 -# Copyright 1999-2012 Gentoo Foundation
27 +# Copyright 1999-2013 Gentoo Foundation
28 # Distributed under the terms of the GNU General Public License v2
29 -# $Header: /var/cvsroot/gentoo-x86/app-text/podofo/podofo-0.9.1.ebuild,v 1.10 2012/10/28 02:45:53 zmedico Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/app-text/podofo/podofo-0.9.1.ebuild,v 1.11 2013/02/27 08:45:03 zmedico Exp $
31
32 EAPI=2
33 inherit cmake-utils flag-o-matic multilib
34 @@ -23,17 +23,33 @@
35 media-libs/tiff:0
36 sys-libs/zlib"
37 DEPEND="${RDEPEND}
38 + virtual/pkgconfig
39 boost? ( dev-util/boost-build )
40 test? ( dev-util/cppunit )"
41
42 DOCS="AUTHORS ChangeLog TODO"
43
44 src_prepare() {
45 + local x sed_args
46
47 sed -i \
48 -e "s:LIBDIRNAME \"lib\":LIBDIRNAME \"$(get_libdir)\":" \
49 CMakeLists.txt || die
50
51 + # Use pkg-config to find headers for bug #459404.
52 + sed_args=
53 + for x in $(pkg-config --cflags freetype2) ; do
54 + [[ ${x} == -I* ]] || continue
55 + x=${x#-I}
56 + if [[ -f ${x}/ft2build.h ]] ; then
57 + sed_args+=" -e s:/usr/include/\\r\$:${x}:"
58 + elif [[ -f ${x}/freetype/config/ftheader.h ]] ; then
59 + sed_args+=" -e s:/usr/include/freetype2\\r\$:${x}:"
60 + fi
61 + done
62 + [[ -n ${sed_args} ]] && \
63 + { sed -i ${sed_args} cmake/modules/FindFREETYPE.cmake || die; }
64 +
65 # Bug #439784: Add missing unistd include for close() and unlink().
66 sed -i 's:^#include <stdio.h>$:#include <unistd.h>\n\0:' -i \
67 test/unit/TestUtils.cpp || die
68
69
70
71 1.33 app-text/podofo/ChangeLog
72
73 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/podofo/ChangeLog?rev=1.33&view=markup
74 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/podofo/ChangeLog?rev=1.33&content-type=text/plain
75 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/podofo/ChangeLog?r1=1.32&r2=1.33
76
77 Index: ChangeLog
78 ===================================================================
79 RCS file: /var/cvsroot/gentoo-x86/app-text/podofo/ChangeLog,v
80 retrieving revision 1.32
81 retrieving revision 1.33
82 diff -u -r1.32 -r1.33
83 --- ChangeLog 28 Oct 2012 02:45:53 -0000 1.32
84 +++ ChangeLog 27 Feb 2013 08:45:03 -0000 1.33
85 @@ -1,6 +1,12 @@
86 # ChangeLog for app-text/podofo
87 -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
88 -# $Header: /var/cvsroot/gentoo-x86/app-text/podofo/ChangeLog,v 1.32 2012/10/28 02:45:53 zmedico Exp $
89 +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
90 +# $Header: /var/cvsroot/gentoo-x86/app-text/podofo/ChangeLog,v 1.33 2013/02/27 08:45:03 zmedico Exp $
91 +
92 +*podofo-0.9.2 (27 Feb 2013)
93 +
94 + 27 Feb 2013; Zac Medico <zmedico@g.o> +podofo-0.9.2.ebuild,
95 + podofo-0.9.1.ebuild:
96 + Handle multilib-aware freetype headers for bug #459404, and add version 0.9.2.
97
98 28 Oct 2012; Zac Medico <zmedico@g.o> podofo-0.9.1.ebuild:
99 Add missing unistd include in test/unit/TestUtils.cpp for bug #439784.
100
101
102
103 1.1 app-text/podofo/podofo-0.9.2.ebuild
104
105 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/podofo/podofo-0.9.2.ebuild?rev=1.1&view=markup
106 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/podofo/podofo-0.9.2.ebuild?rev=1.1&content-type=text/plain
107
108 Index: podofo-0.9.2.ebuild
109 ===================================================================
110 # Copyright 1999-2013 Gentoo Foundation
111 # Distributed under the terms of the GNU General Public License v2
112 # $Header: /var/cvsroot/gentoo-x86/app-text/podofo/podofo-0.9.2.ebuild,v 1.1 2013/02/27 08:45:03 zmedico Exp $
113
114 EAPI=2
115 inherit cmake-utils flag-o-matic multilib
116
117 DESCRIPTION="PoDoFo is a C++ library to work with the PDF file format."
118 HOMEPAGE="http://sourceforge.net/projects/podofo/"
119 SRC_URI="mirror://sourceforge/podofo/${P}.tar.gz"
120
121 LICENSE="GPL-2 LGPL-2.1"
122 SLOT="0"
123 KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
124 IUSE="+boost debug test"
125
126 RDEPEND="dev-lang/lua
127 dev-libs/openssl
128 media-libs/fontconfig
129 media-libs/freetype:2
130 virtual/jpeg
131 >=media-libs/libpng-1.4:0
132 media-libs/tiff:0
133 sys-libs/zlib"
134 DEPEND="${RDEPEND}
135 virtual/pkgconfig
136 boost? ( dev-util/boost-build )
137 test? ( dev-util/cppunit )"
138
139 DOCS="AUTHORS ChangeLog TODO"
140
141 src_prepare() {
142 local x sed_args
143
144 sed -i \
145 -e "s:LIBDIRNAME \"lib\":LIBDIRNAME \"$(get_libdir)\":" \
146 CMakeLists.txt || die
147
148 # Use pkg-config to find headers for bug #459404.
149 sed_args=
150 for x in $(pkg-config --cflags freetype2) ; do
151 [[ ${x} == -I* ]] || continue
152 x=${x#-I}
153 if [[ -f ${x}/ft2build.h ]] ; then
154 sed_args+=" -e s:/usr/include/\\r\$:${x}:"
155 elif [[ -f ${x}/freetype/config/ftheader.h ]] ; then
156 sed_args+=" -e s:/usr/include/freetype2\\r\$:${x}:"
157 fi
158 done
159 [[ -n ${sed_args} ]] && \
160 { sed -i ${sed_args} cmake/modules/FindFREETYPE.cmake || die; }
161
162 # Bug #439784: Add missing unistd include for close() and unlink().
163 sed -i 's:^#include <stdio.h>$:#include <unistd.h>\n\0:' -i \
164 test/unit/TestUtils.cpp || die
165
166 # TODO: fix these test cases
167 # ColorTest.cpp:62:Assertion
168 # Test name: ColorTest::testDefaultConstructor
169 # expected exception not thrown
170 # - Expected: PdfError
171 sed -e 's:CPPUNIT_TEST( testDefaultConstructor ://\0:' \
172 -e 's:CPPUNIT_TEST( testGreyConstructor ://\0:' \
173 -e 's:CPPUNIT_TEST( testRGBConstructor ://\0:' \
174 -e 's:CPPUNIT_TEST( testCMYKConstructor ://\0:' \
175 -e 's:CPPUNIT_TEST( testColorSeparationAllConstructor ://\0:' \
176 -e 's:CPPUNIT_TEST( testColorSeparationNoneConstructor ://\0:' \
177 -e 's:CPPUNIT_TEST( testColorSeparationConstructor ://\0:' \
178 -e 's:CPPUNIT_TEST( testColorCieLabConstructor ://\0:' \
179 -i test/unit/ColorTest.h || die
180
181 # ColorTest.cpp:42:Assertion
182 # Test name: ColorTest::testHexNames
183 # assertion failed
184 # - Expression: static_cast<int>(rgb.GetGreen() * 255.0) == 0x0A
185 sed -e 's:CPPUNIT_TEST( testHexNames ://\0:' \
186 -i test/unit/ColorTest.h || die
187
188 # Bug #352125: test failure, depending on installed fonts
189 # ##Failure Location unknown## : Error
190 # Test name: FontTest::testFonts
191 # uncaught exception of type PoDoFo::PdfError
192 # - ePdfError_UnsupportedFontFormat
193 sed -e 's:CPPUNIT_TEST( testFonts ://\0:' \
194 -i test/unit/FontTest.h || die
195
196 # Bug #407015: fix to compile with Lua 5.2
197 if has_version '>=dev-lang/lua-5.2' ; then
198 sed -e 's: lua_open(: luaL_newstate(:' \
199 -e 's: luaL_getn(: lua_rawlen(:' -i \
200 tools/podofocolor/luaconverter.cpp \
201 tools/podofoimpose/planreader_lua.cpp || die
202 fi
203 }
204
205 src_configure() {
206
207 # Bug #381359: undefined reference to `PoDoFo::PdfVariant::DelayedLoadImpl()'
208 filter-flags -fvisibility-inlines-hidden
209
210 mycmakeargs+=(
211 "-DPODOFO_BUILD_SHARED=1"
212 "-DPODOFO_HAVE_JPEG_LIB=1"
213 "-DPODOFO_HAVE_PNG_LIB=1"
214 "-DPODOFO_HAVE_TIFF_LIB=1"
215 "-DWANT_FONTCONFIG=1"
216 "-DUSE_STLPORT=0"
217 $(cmake-utils_use_want boost)
218 $(cmake-utils_use_has test CPPUNIT)
219 )
220
221 cmake-utils_src_configure
222 }
223
224 src_test() {
225 cd "${CMAKE_BUILD_DIR}"/test/unit
226 ./podofo-test --selftest || die "self test failed"
227 }