# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils IUSE="" DESCRIPTION="PoDoFo is a C++ library to work with the PDF file format." LONG_DESCRIPTION="It includes classes to parse a PDF file, modify its contents in memory, write the changes back to disk, and create new PDF files." HOMEPAGE="http://sourceforge.net/projects/podofo/" SRC_URI="mirror://sourceforge/podofo/${P}.tar.gz" LICENSE="GPL-2 LGPL-2.1" SLOT="0" KEYWORDS="~x86 ~amd64 ppc ~sparc" DEPEND=">=media-libs/jpeg-6b >=media-libs/fontconfig-2.2 >=media-libs/freetype-2.1 >=sys-libs/zlib-1.2" src_unpack() { einfo "MSG: Compiling (S = ${S}) ..." unpack "${A}" cd ${S} epatch "${FILESDIR}/${P}/configure.in.diff" } src_compile() { econf || die "econf failed" emake || die "emake failed" } src_install() { make DESTDIR=${D} install || die 'install failed' # move /usr/include/*.h header files to /usr/include/podofo/ # instead of dumping them in /usr/include mv "${D}/usr/include" "${D}/usr/${PN}" mkdir "${D}/usr/include" mv "${D}/usr/${PN}" "${D}/usr/include/" dodoc AUTHORS COPYING COPYING.LIB ChangeLog INSTALL NEWS README TODO } pkg_postinst() { einfo "Please read the Changelog, README and TODO files." ewarn "The current version (podofo-0.2) name the library" ewarn "libpodofo.so somewhat incorrectly as libpodofo.so.0.0.0" ewarn " and not as libpodofo.so.0.2. Please report this issue." }