summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-text/pdftk')
-rw-r--r--app-text/pdftk/Manifest6
-rw-r--r--app-text/pdftk/files/digest-pdftk-1.101
-rw-r--r--app-text/pdftk/pdftk-1.10.ebuild43
3 files changed, 48 insertions, 2 deletions
diff --git a/app-text/pdftk/Manifest b/app-text/pdftk/Manifest
index e924ddfbfefe..63201a9594fd 100644
--- a/app-text/pdftk/Manifest
+++ b/app-text/pdftk/Manifest
@@ -1,6 +1,8 @@
-MD5 beecfdec360486d7300885f4fe514f95 ChangeLog 1046
-MD5 619b858577edb26a03cdf700b6997618 metadata.xml 186
+MD5 3086ceca07b4cbfa48ffbb5aa0861630 pdftk-1.10.ebuild 1150
MD5 f3146a6d7b21471d0385c92838deb6cc pdftk-0.94.1.ebuild 1192
MD5 3086ceca07b4cbfa48ffbb5aa0861630 pdftk-1.00.ebuild 1150
+MD5 beecfdec360486d7300885f4fe514f95 ChangeLog 1046
+MD5 619b858577edb26a03cdf700b6997618 metadata.xml 186
MD5 372043661fddd71d4fcb45e2799dd47c files/digest-pdftk-0.94.1 63
MD5 2127c3d55a42d67b46fd9c1922fe252e files/digest-pdftk-1.00 62
+MD5 e28c806eb886653147cf59173914386f files/digest-pdftk-1.10 62
diff --git a/app-text/pdftk/files/digest-pdftk-1.10 b/app-text/pdftk/files/digest-pdftk-1.10
new file mode 100644
index 000000000000..b19212b6318b
--- /dev/null
+++ b/app-text/pdftk/files/digest-pdftk-1.10
@@ -0,0 +1 @@
+MD5 6c6b79504b475f0f05b7029894a5fa2f pdftk-1.10.tar.gz 781519
diff --git a/app-text/pdftk/pdftk-1.10.ebuild b/app-text/pdftk/pdftk-1.10.ebuild
new file mode 100644
index 000000000000..20179320b9a5
--- /dev/null
+++ b/app-text/pdftk/pdftk-1.10.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/pdftk/pdftk-1.10.ebuild,v 1.1 2004/10/30 09:33:29 usata Exp $
+
+DESCRIPTION="A tool for manipulating PDF documents"
+HOMEPAGE="http://www.accesspdf.com/pdftk"
+SRC_URI="http://www.accesspdf.com/pdftk/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+DEPEND="virtual/libc
+ >=sys-devel/gcc-3.3"
+S=${WORKDIR}/${P}/${PN}
+
+pkg_setup() {
+ if [ -z "$(which gcj 2>/dev/null)" ]; then
+ eerror "It seems that your system doesn't provides a Java compiler."
+ eerror "Re-emerge sys-devel/gcc with \"java\" and \"gcj\" enabled."
+ die "gcj not found."
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ # force usage of custom CFLAGS.
+ mv ${S}/Makefile.Generic ${T}/Makefile.Generic.orig
+ sed 's:-O2:\$(CFLAGS):g' \
+ < ${T}/Makefile.Generic.orig > ${S}/Makefile.Generic
+}
+
+src_compile() {
+ # java-config settings break compilation by gcj.
+ unset CLASSPATH
+ unset JAVA_HOME
+ make -f Makefile.Generic || die "Compilation failed."
+}
+
+src_install() {
+ dobin pdftk
+ newman ../pdftk.1.txt pdftk.1
+ dohtml ../pdftk.1.html
+}