/[gentoo-x86]/app-text/podofo/podofo-0.9.1.ebuild
Gentoo

Diff of /app-text/podofo/podofo-0.9.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.5 Revision 1.12
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2013 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/app-text/podofo/Attic/podofo-0.9.1.ebuild,v 1.5 2011/10/11 22:20:38 ssuominen Exp $ 3# $Header: /var/cvsroot/gentoo-x86/app-text/podofo/Attic/podofo-0.9.1.ebuild,v 1.12 2013/02/28 15:03:15 zmedico Exp $
4 4
5EAPI=2 5EAPI=2
6inherit cmake-utils flag-o-matic multilib 6inherit cmake-utils flag-o-matic multilib toolchain-funcs
7 7
8DESCRIPTION="PoDoFo is a C++ library to work with the PDF file format." 8DESCRIPTION="PoDoFo is a C++ library to work with the PDF file format."
9HOMEPAGE="http://sourceforge.net/projects/podofo/" 9HOMEPAGE="http://sourceforge.net/projects/podofo/"
10SRC_URI="mirror://sourceforge/podofo/${P}.tar.gz" 10SRC_URI="mirror://sourceforge/podofo/${P}.tar.gz"
11 11
12LICENSE="GPL-2 LGPL-2.1" 12LICENSE="GPL-2 LGPL-2.1"
13SLOT="0" 13SLOT="0"
14KEYWORDS="amd64 ~hppa ~ppc ppc64 ~sparc x86" 14KEYWORDS="amd64 hppa ppc ppc64 ~sparc x86"
15IUSE="+boost debug test" 15IUSE="+boost debug test"
16 16
17RDEPEND="dev-lang/lua 17RDEPEND="dev-lang/lua
18 dev-libs/openssl 18 dev-libs/openssl
19 media-libs/fontconfig 19 media-libs/fontconfig
20 media-libs/freetype:2 20 media-libs/freetype:2
21 virtual/jpeg 21 virtual/jpeg
22 >=media-libs/libpng-1.4 22 >=media-libs/libpng-1.4:0
23 media-libs/tiff 23 media-libs/tiff:0
24 sys-libs/zlib" 24 sys-libs/zlib"
25DEPEND="${RDEPEND} 25DEPEND="${RDEPEND}
26 virtual/pkgconfig
26 boost? ( dev-util/boost-build ) 27 boost? ( dev-util/boost-build )
27 test? ( dev-util/cppunit )" 28 test? ( dev-util/cppunit )"
28 29
29DOCS="AUTHORS ChangeLog TODO" 30DOCS="AUTHORS ChangeLog TODO"
30 31
31src_prepare() { 32src_prepare() {
33 local x sed_args
32 34
33 sed -i \ 35 sed -i \
34 -e "s:LIBDIRNAME \"lib\":LIBDIRNAME \"$(get_libdir)\":" \ 36 -e "s:LIBDIRNAME \"lib\":LIBDIRNAME \"$(get_libdir)\":" \
35 CMakeLists.txt || die 37 CMakeLists.txt || die
38
39 # Use pkg-config to find headers for bug #459404.
40 sed_args=
41 for x in $($(tc-getPKG_CONFIG) --cflags freetype2) ; do
42 [[ ${x} == -I* ]] || continue
43 x=${x#-I}
44 if [[ -f ${x}/ft2build.h ]] ; then
45 sed_args+=" -e s:/usr/include/\\r\$:${x}:"
46 elif [[ -f ${x}/freetype/config/ftheader.h ]] ; then
47 sed_args+=" -e s:/usr/include/freetype2\\r\$:${x}:"
48 fi
49 done
50 [[ -n ${sed_args} ]] && \
51 { sed -i ${sed_args} cmake/modules/FindFREETYPE.cmake || die; }
52
53 # Bug #439784: Add missing unistd include for close() and unlink().
54 sed -i 's:^#include <stdio.h>$:#include <unistd.h>\n\0:' -i \
55 test/unit/TestUtils.cpp || die
36 56
37 # TODO: fix these test cases 57 # TODO: fix these test cases
38 # ColorTest.cpp:62:Assertion 58 # ColorTest.cpp:62:Assertion
39 # Test name: ColorTest::testDefaultConstructor 59 # Test name: ColorTest::testDefaultConstructor
40 # expected exception not thrown 60 # expected exception not thrown
61 # Test name: FontTest::testFonts 81 # Test name: FontTest::testFonts
62 # uncaught exception of type PoDoFo::PdfError 82 # uncaught exception of type PoDoFo::PdfError
63 # - ePdfError_UnsupportedFontFormat 83 # - ePdfError_UnsupportedFontFormat
64 sed -e 's:CPPUNIT_TEST( testFonts ://\0:' \ 84 sed -e 's:CPPUNIT_TEST( testFonts ://\0:' \
65 -i test/unit/FontTest.h || die 85 -i test/unit/FontTest.h || die
86
87 # Bug #407015: fix to compile with Lua 5.2
88 if has_version '>=dev-lang/lua-5.2' ; then
89 sed -e 's: lua_open(: luaL_newstate(:' \
90 -e 's: luaL_getn(: lua_rawlen(:' -i \
91 tools/podofocolor/luaconverter.cpp \
92 tools/podofoimpose/planreader_lua.cpp || die
93 fi
66} 94}
67 95
68src_configure() { 96src_configure() {
69 97
70 # Bug #381359: undefined reference to `PoDoFo::PdfVariant::DelayedLoadImpl()' 98 # Bug #381359: undefined reference to `PoDoFo::PdfVariant::DelayedLoadImpl()'

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.20