summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-perl/PDF-API2/PDF-API2-2.16.ebuild')
-rw-r--r--dev-perl/PDF-API2/PDF-API2-2.16.ebuild36
1 files changed, 36 insertions, 0 deletions
diff --git a/dev-perl/PDF-API2/PDF-API2-2.16.ebuild b/dev-perl/PDF-API2/PDF-API2-2.16.ebuild
new file mode 100644
index 000000000000..0bd5c10fdadf
--- /dev/null
+++ b/dev-perl/PDF-API2/PDF-API2-2.16.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-perl/PDF-API2/PDF-API2-2.16.ebuild,v 1.1 2011/01/25 12:19:20 tove Exp $
+
+EAPI=3
+
+MODULE_AUTHOR=SSIMMS
+MODULE_VERSION=2.016
+inherit perl-module
+
+DESCRIPTION="Facilitates the creation and modification of PDF files"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+RDEPEND="virtual/perl-IO-Compress
+ dev-perl/Font-TTF
+ media-fonts/dejavu"
+DEPEND="${RDEPEND}"
+
+SRC_TEST="do"
+
+src_install() {
+ perl-module_src_install
+ rm -rf "${D}/${VENDOR_LIB}/PDF/API2/fonts" || die
+ ln -s /usr/share/fonts/dejavu "${D}/${VENDOR_LIB}/PDF/API2/fonts" || die
+}
+
+pkg_postinst() {
+ if [[ ! -h ${ROOT}${VENDOR_LIB}/PDF/API2/fonts ]] ; then
+ einfo "Creating symlink ${ROOT}${VENDOR_LIB}/PDF/API2/fonts"
+ ln -s /usr/share/fonts/dejavu "${ROOT}${VENDOR_LIB}/PDF/API2/fonts"
+ fi
+}