summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2004-03-14 18:49:33 +0000
committerMamoru Komachi <usata@gentoo.org>2004-03-14 18:49:33 +0000
commit86646ae29cbb8dc626510ebc87ed32ac040110c0 (patch)
treee823f1e1bf5644f26978c8ec2d18624a05695e77 /app-text
parentVersion added (Manifest recommit) (diff)
downloadgentoo-2-86646ae29cbb8dc626510ebc87ed32ac040110c0.tar.gz
gentoo-2-86646ae29cbb8dc626510ebc87ed32ac040110c0.tar.bz2
gentoo-2-86646ae29cbb8dc626510ebc87ed32ac040110c0.zip
Initial import. Ebuild submitted by TGL <degrenier@easyconnect.fr>, closing bug #43929
Diffstat (limited to 'app-text')
-rw-r--r--app-text/pdftk/ChangeLog10
-rw-r--r--app-text/pdftk/Manifest2
-rw-r--r--app-text/pdftk/files/digest-pdftk-0.931
-rw-r--r--app-text/pdftk/metadata.xml6
-rw-r--r--app-text/pdftk/pdftk-0.93.ebuild42
5 files changed, 61 insertions, 0 deletions
diff --git a/app-text/pdftk/ChangeLog b/app-text/pdftk/ChangeLog
new file mode 100644
index 000000000000..f37e3ca58474
--- /dev/null
+++ b/app-text/pdftk/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for app-text/pdftk
+# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/pdftk/ChangeLog,v 1.1 2004/03/14 18:49:33 usata Exp $
+
+*pdftk-0.93 (15 Mar 2004)
+
+ 15 Mar 2004; Mamoru KOMACHI <usata@gentoo.org> pdftk-0.93.ebuild:
+ Initial import. Ebuild submitted by TGL <degrenier@easyconnect.fr>,
+ closing bug #43929
+
diff --git a/app-text/pdftk/Manifest b/app-text/pdftk/Manifest
new file mode 100644
index 000000000000..f0dfddbd3f5f
--- /dev/null
+++ b/app-text/pdftk/Manifest
@@ -0,0 +1,2 @@
+MD5 87556f8814055a0c8de2cf09182f14e4 pdftk-0.93.ebuild 1082
+MD5 a8682b5c8db33191f88d1b1ed146557d files/digest-pdftk-0.93 62
diff --git a/app-text/pdftk/files/digest-pdftk-0.93 b/app-text/pdftk/files/digest-pdftk-0.93
new file mode 100644
index 000000000000..f60622f91546
--- /dev/null
+++ b/app-text/pdftk/files/digest-pdftk-0.93
@@ -0,0 +1 @@
+MD5 81001a44e4bc3aa1588b0216471c03ea pdftk-0.93.tar.gz 688763
diff --git a/app-text/pdftk/metadata.xml b/app-text/pdftk/metadata.xml
new file mode 100644
index 000000000000..d6a603d340b3
--- /dev/null
+++ b/app-text/pdftk/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>printing</herd>
+<herd>text-markup</herd>
+</pkgmetadata>
diff --git a/app-text/pdftk/pdftk-0.93.ebuild b/app-text/pdftk/pdftk-0.93.ebuild
new file mode 100644
index 000000000000..f761db20d455
--- /dev/null
+++ b/app-text/pdftk/pdftk-0.93.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/pdftk/pdftk-0.93.ebuild,v 1.1 2004/03/14 18:49:33 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/glibc
+ >=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\" enabled, and without \"nogcj\"."
+ die "gcj not found."
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ # force usage of custom CFLAGS.
+ mv ${S}/Makefile.Generic ${T}/Makefile.Generic.orig
+ sed 's:-O3:\$(CFLAGS):' \
+ < ${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.manpage.txt pdftk.1
+}