From 64191cc4f178c78cd0ec36af7620cad5a0f9c244 Mon Sep 17 00:00:00 2001 From: Vlastimil Babka Date: Wed, 25 Apr 2007 00:23:45 +0000 Subject: [PATCH] Initial ebuild, bug #161917. Package-Manager: portage-2.1.2.4 --- dev-java/pdfbox/ChangeLog | 10 +++ dev-java/pdfbox/Manifest | 16 ++++ dev-java/pdfbox/files/digest-pdfbox-0.7.3 | 3 + dev-java/pdfbox/metadata.xml | 5 ++ dev-java/pdfbox/pdfbox-0.7.3.ebuild | 97 +++++++++++++++++++++++ 5 files changed, 131 insertions(+) create mode 100644 dev-java/pdfbox/ChangeLog create mode 100644 dev-java/pdfbox/Manifest create mode 100644 dev-java/pdfbox/files/digest-pdfbox-0.7.3 create mode 100644 dev-java/pdfbox/metadata.xml create mode 100644 dev-java/pdfbox/pdfbox-0.7.3.ebuild diff --git a/dev-java/pdfbox/ChangeLog b/dev-java/pdfbox/ChangeLog new file mode 100644 index 000000000000..f04f3346295a --- /dev/null +++ b/dev-java/pdfbox/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-java/pdfbox +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/pdfbox/ChangeLog,v 1.1 2007/04/25 00:23:45 caster Exp $ + +*pdfbox-0.7.3 (25 Apr 2007) + + 25 Apr 2007; Vlastimil Babka +metadata.xml, + +pdfbox-0.7.3.ebuild: + Initial ebuild, bug #161917. + diff --git a/dev-java/pdfbox/Manifest b/dev-java/pdfbox/Manifest new file mode 100644 index 000000000000..6e549e59edc5 --- /dev/null +++ b/dev-java/pdfbox/Manifest @@ -0,0 +1,16 @@ +DIST PDFBox-0.7.3.zip 22769102 RMD160 f2ac644ee0195cfc5405bb56548a01de419f5069 SHA1 5e986e2e436cd3d06bc59abd1eb14f3ed7400120 SHA256 5c6f6c87cdbf247ff29d0ce691ab977c2e869070d54cf1bd6305e0fd84e7373d +EBUILD pdfbox-0.7.3.ebuild 2428 RMD160 542c7c16830f90844c5afa359e433ba489d49d6e SHA1 e7e92c521c66b7b3b2664580781a076c35fc273a SHA256 5d32f5050cea68f3b30b3895efcad46615ee61e7f5d7cadacbd7ecb5e14886ad +MD5 7184ea2d07d70c6eece09629938ca92d pdfbox-0.7.3.ebuild 2428 +RMD160 542c7c16830f90844c5afa359e433ba489d49d6e pdfbox-0.7.3.ebuild 2428 +SHA256 5d32f5050cea68f3b30b3895efcad46615ee61e7f5d7cadacbd7ecb5e14886ad pdfbox-0.7.3.ebuild 2428 +MISC ChangeLog 354 RMD160 2a976ecdf98931557ec514882bda2a1923393825 SHA1 3b26ab63cf09a2a27a64afd8f15536d4effd9212 SHA256 18513f2570565c1f121e30436b424568abeb64f9a6e14ba06597780393b8aba4 +MD5 acfe64cafceb0d0c7a4f1973f9b6e9d2 ChangeLog 354 +RMD160 2a976ecdf98931557ec514882bda2a1923393825 ChangeLog 354 +SHA256 18513f2570565c1f121e30436b424568abeb64f9a6e14ba06597780393b8aba4 ChangeLog 354 +MISC metadata.xml 157 RMD160 ab0b3741457dee7531f59c4da0f0e9e8399af084 SHA1 c37a6b9922aef61b5b3387655bccb6e3b16e0e26 SHA256 295d02c5805b0257938eb80314b371daac94b8d6ea85629a902de7a824adc0c9 +MD5 a6ec7d7724fbd068ffb39b5be56134ed metadata.xml 157 +RMD160 ab0b3741457dee7531f59c4da0f0e9e8399af084 metadata.xml 157 +SHA256 295d02c5805b0257938eb80314b371daac94b8d6ea85629a902de7a824adc0c9 metadata.xml 157 +MD5 ece79d280b17c49baaa5fdb715794b06 files/digest-pdfbox-0.7.3 235 +RMD160 bce0b80ef7fe7be8a93c2449ccf4a12908e27c35 files/digest-pdfbox-0.7.3 235 +SHA256 a548e7a567316433b1829339341270aaf2d972d83f05b796d1f01d5c2cd6ec18 files/digest-pdfbox-0.7.3 235 diff --git a/dev-java/pdfbox/files/digest-pdfbox-0.7.3 b/dev-java/pdfbox/files/digest-pdfbox-0.7.3 new file mode 100644 index 000000000000..08be748c1902 --- /dev/null +++ b/dev-java/pdfbox/files/digest-pdfbox-0.7.3 @@ -0,0 +1,3 @@ +MD5 b8d01eb03b409ba288aba3fb0194589f PDFBox-0.7.3.zip 22769102 +RMD160 f2ac644ee0195cfc5405bb56548a01de419f5069 PDFBox-0.7.3.zip 22769102 +SHA256 5c6f6c87cdbf247ff29d0ce691ab977c2e869070d54cf1bd6305e0fd84e7373d PDFBox-0.7.3.zip 22769102 diff --git a/dev-java/pdfbox/metadata.xml b/dev-java/pdfbox/metadata.xml new file mode 100644 index 000000000000..838c00a4a448 --- /dev/null +++ b/dev-java/pdfbox/metadata.xml @@ -0,0 +1,5 @@ + + + +java + diff --git a/dev-java/pdfbox/pdfbox-0.7.3.ebuild b/dev-java/pdfbox/pdfbox-0.7.3.ebuild new file mode 100644 index 000000000000..a5ae980ef88f --- /dev/null +++ b/dev-java/pdfbox/pdfbox-0.7.3.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/pdfbox/pdfbox-0.7.3.ebuild,v 1.1 2007/04/25 00:23:45 caster Exp $ + +JAVA_PKG_IUSE="doc source" +WANT_ANT_TASKS="ant-nodeps" +inherit java-pkg-2 java-ant-2 + +MY_PN="PDFBox" +MY_P="${MY_PN}-${PV}" +DESCRIPTION="Java library and utilities for working with PDF documents" +HOMEPAGE="http://www.pdfbox.org" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +CDEPEND="dev-java/fontbox + >=dev-java/bcprov-1.32 + >=dev-java/bcmail-1.32 + =dev-java/lucene-2* + dev-java/ant-core" +RDEPEND=">=virtual/jre-1.4 + ${CDEPEND}" +DEPEND=">=virtual/jdk-1.4 + app-arch/unzip + ${CDEPEND}" + +S="${WORKDIR}/${MY_P}" + +src_unpack() { + unpack ${A} + cd "${S}" + + rm -v external/*.jar + rm -rf docs/javadoc + + # the pdf files used in test cases are not included + rm -rf src/test + + cd external + java-pkg_jar-from fontbox + java-pkg_jar-from bcprov + java-pkg_jar-from bcmail + java-pkg_jar-from lucene-2 + java-pkg_jar-from ant-core ant.jar +} + +EANT_BUILD_TARGET="package" + +my_launcher() { + java-pkg_dolauncher ${1} --main org.pdfbox.${2} + echo "${1} -> ${2}" >> ${T}/launcher.list +} + +src_install() { + java-pkg_newjar lib/${MY_P}.jar + + my_launcher pdfconvertcolorspace ConvertColorspace + my_launcher pdfdecrypt Decrypt + my_launcher pdfencrypt Encrypt + my_launcher pdfexportfdf ExportFDF + my_launcher pdfexportxfdf ExportXFDF + my_launcher pdfextractimages ExtractImages + my_launcher pdfextracttext ExtractText + my_launcher pdfimportfdf ImportFDF + my_launcher pdfimportxfdf ImportXFDF + my_launcher pdfoverlay Overlay + my_launcher pdfdebugger PDFDebugger + my_launcher pdfmerger PDFMerger + my_launcher pdfreader PDFReader + my_launcher pdfsplit PDFSplit + my_launcher pdftoimage PDFToImage + my_launcher printpdf PrintPDF + my_launcher texttopdf TextToPDF + + if use doc; then + dohtml -r docs/* + java-pkg_dojavadoc website/build/site/javadoc + fi + + use source && java-pkg_dosrc src/org +} + +pkg_postinst() { + elog "This package installs several command line tools for manipulating" + elog "PDF files. Some of their names were changed from upstream to" + elog "be less ambigous, and not collide with other packages. For" + elog "detailed information refer to the html documentation installed with" + elog "USE=doc, or ${HOMEPAGE}" + + while read line + do + elog ${line} + done < ${T}/launcher.list +} -- 2.26.2