/[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.10 Revision 1.11
1# Copyright 1999-2012 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.10 2012/10/28 02:45:53 zmedico Exp $ 3# $Header: /var/cvsroot/gentoo-x86/app-text/podofo/Attic/podofo-0.9.1.ebuild,v 1.11 2013/02/27 08:45:03 zmedico Exp $
4 4
5EAPI=2 5EAPI=2
6inherit cmake-utils flag-o-matic multilib 6inherit cmake-utils flag-o-matic multilib
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."
21 virtual/jpeg 21 virtual/jpeg
22 >=media-libs/libpng-1.4:0 22 >=media-libs/libpng-1.4:0
23 media-libs/tiff:0 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 $(pkg-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; }
36 52
37 # Bug #439784: Add missing unistd include for close() and unlink(). 53 # Bug #439784: Add missing unistd include for close() and unlink().
38 sed -i 's:^#include <stdio.h>$:#include <unistd.h>\n\0:' -i \ 54 sed -i 's:^#include <stdio.h>$:#include <unistd.h>\n\0:' -i \
39 test/unit/TestUtils.cpp || die 55 test/unit/TestUtils.cpp || die
40 56

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.20