diff options
author | 2012-08-05 21:28:49 +0300 | |
---|---|---|
committer | 2012-08-05 21:28:49 +0300 | |
commit | 056d65ec5678950c49b0d3af8ae6f6b94d9978fe (patch) | |
tree | bf8a9ff5c15b03db10e3bb0c822722a2674a8011 | |
parent | jempbox-1.7.1.ebuild version bump wrt#430058 (diff) | |
download | dmol-056d65ec5678950c49b0d3af8ae6f6b94d9978fe.tar.gz dmol-056d65ec5678950c49b0d3af8ae6f6b94d9978fe.tar.bz2 dmol-056d65ec5678950c49b0d3af8ae6f6b94d9978fe.zip |
pdfbox-1.7.1.ebuild version bump wrt#430054
-rw-r--r-- | dev-java/pdfbox/Manifest | 5 | ||||
-rw-r--r-- | dev-java/pdfbox/files/pdfbox-1.7.1-build.xml.patch | 63 | ||||
-rw-r--r-- | dev-java/pdfbox/metadata.xml | 7 | ||||
-rw-r--r-- | dev-java/pdfbox/pdfbox-1.7.1.ebuild | 68 |
4 files changed, 143 insertions, 0 deletions
diff --git a/dev-java/pdfbox/Manifest b/dev-java/pdfbox/Manifest new file mode 100644 index 0000000..860e794 --- /dev/null +++ b/dev-java/pdfbox/Manifest @@ -0,0 +1,5 @@ +AUX pdfbox-1.7.1-build.xml.patch 3279 RMD160 81eca20a772885f11e2325c11f1510893bdbccf2 SHA1 0beb2095e167a8cb10856722198ffb7de27dbea7 SHA256 507d5b7471f94277521cc6247da6f4510f3417903555282fb022f7e567d0f55b +DIST pcfi-2010.08.09.jar 6731455 RMD160 3b37d5217f4ce2a7b509298477481f610c329a68 SHA1 20da59fac6e625fdbc2ce3698b1bd439604aa69b SHA256 a787fb2a842de7bd5ee4fa13c4808aa6793380dde0219560b50054f6ca25c77c +DIST pdfbox-1.7.1-src.zip 9167805 RMD160 a0c845609f4c67acee4eb92fab4b7a5f931a767a SHA1 bcdcf656a3e36381d2b8aa757bbf3c25234b8d5c SHA256 805c6b893ff10216cc826aa44e7a2eaf35bb43ca8ed19896c43132d253d3145e +EBUILD pdfbox-1.7.1.ebuild 1793 RMD160 ff6b3522d52fde0cacb9dc5c6559415921b9198e SHA1 01ed5e483a4bc006e25bb02d542bba679e21ab55 SHA256 2de5842c2bac4e1556b157011e7974baec298913443b6f7233659cd641019e99 +MISC metadata.xml 205 RMD160 4923bb2153d0eb925ffc86f91fdd806110e016c0 SHA1 da9437a648cf7dd5fcfca1c45c60c4053fed15c4 SHA256 2ff0740a5424b0e10c7888541a248d1bd363a60911b0921b4cfe5c36590498ce diff --git a/dev-java/pdfbox/files/pdfbox-1.7.1-build.xml.patch b/dev-java/pdfbox/files/pdfbox-1.7.1-build.xml.patch new file mode 100644 index 0000000..f2051b0 --- /dev/null +++ b/dev-java/pdfbox/files/pdfbox-1.7.1-build.xml.patch @@ -0,0 +1,63 @@ +diff -Nru /tmp/pdfbox.orig/build.xml ./build.xml +--- /tmp/pdfbox.orig/build.xml 2012-08-02 20:08:53.456999297 +0300 ++++ ./build.xml 2012-08-02 21:46:29.145383323 +0300 +@@ -36,6 +36,7 @@ + <property name="pdfbox.src.dir" value="src/main/java" /> + <property name="pdfbox.target.dir" value="target" /> + <property name="pdfbox.dest.dir" value="${pdfbox.target.dir}/classes" /> ++ <property name="pdfbox.test.classes.dir" value="${pdfbox.target.dir}/test-classes" /> + <property name="pdfbox.test.dir" value="src/test/java" /> + <property name="pdfbox.testfiles.dir" value="/src/test/resources" /> + <property name="pdfbox.resources.dir" value="src/main/resources" /> +@@ -181,15 +182,12 @@ + <mkdir dir="${jempbox.dest.dir}"/> + </target> + +- <target name="pdfbox.compile" depends="fontbox.package,jempbox.package,pdfbox.init,get.adobefiles" ++ <target name="pdfbox.compile" depends="pdfbox.init,get.adobefiles" + description="Compile Java source files"> + <!-- required encoding flag to be able to build using ibm-jdk on redhat ES--> + <javac srcdir="${pdfbox.src.dir}" destdir="${pdfbox.dest.dir}" + target="1.5" source="1.5" debug="on" deprecation="on" + classpathref="pdfbox.build.classpath" encoding="ISO-8859-1"/> +- <javac srcdir="${pdfbox.test.dir}" destdir="${pdfbox.dest.dir}" +- target="1.5" source="1.5" debug="on" deprecation="on" +- classpathref="pdfbox.build.classpath" encoding="ISO-8859-1"/> + </target> + + <target name="fontbox.compile" depends="fontbox.init" +@@ -277,7 +275,7 @@ + <unjar src="${testfiles.encryption.jar}" dest="${testinput-ext.dir}"/> + </target> + +- <target name="testextract" depends="clean,pdfbox.compile" description="Test text extraction"> ++ <target name="testextract" depends="pdfbox.test.compile" description="Test text extraction"> + <junit printsummary="off" fork="on" dir="."> + <jvmarg value="-Xmx1024M"/> + <jvmarg value="-Xms512M"/> +@@ -300,7 +298,7 @@ + </junit> + </target> + +- <target name="testimage" depends="clean,pdfbox.compile" description="Test image rendering"> ++ <target name="testimage" depends="pdfbox.test.compile" description="Test image rendering"> + <junit printsummary="off" fork="on" dir="." > + <jvmarg value="-Xmx1024M"/> + <jvmarg value="-Xms512M"/> +@@ -323,8 +321,15 @@ + <test name="org.apache.pdfbox.util.TestPDFToImage" /> + </junit> + </target> ++ ++ <target name="pdfbox.test.compile" depends="pdfbox.compile"> ++ <mkdir dir="${pdfbox.test.classes.dir}" /> ++ <javac srcdir="${pdfbox.test.dir}" destdir="${pdfbox.dest.dir}" ++ target="1.5" source="1.5" debug="on" deprecation="on" ++ classpathref="pdfbox.build.classpath" encoding="ISO-8859-1"/> ++ </target> + +- <target name="test-junit" depends="clean,pdfbox.compile" description="run junit tests"> ++ <target name="test-junit" depends="pdfbox.test.compile" description="run junit tests"> + <junit printsummary="off" fork="on" dir="."> + <sysproperty key="java.util.logging.config.file" + value="src/test/resources/logging.properties"/> diff --git a/dev-java/pdfbox/metadata.xml b/dev-java/pdfbox/metadata.xml new file mode 100644 index 0000000..80859ae --- /dev/null +++ b/dev-java/pdfbox/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>the.dmol@gmail.com</email> + </maintainer> +</pkgmetadata> diff --git a/dev-java/pdfbox/pdfbox-1.7.1.ebuild b/dev-java/pdfbox/pdfbox-1.7.1.ebuild new file mode 100644 index 0000000..1fb36eb --- /dev/null +++ b/dev-java/pdfbox/pdfbox-1.7.1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 +JAVA_PKG_IUSE="doc source" +WANT_ANT_TASKS="ant-nodeps" +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Java library and utilities for working with PDF documents" +HOMEPAGE="http://pdfbox.apache.org/" +ADOBE_FILES="pcfi-2010.08.09.jar" +SRC_URI="mirror://apache/${PN}/${PV}/${P}-src.zip + http://repo2.maven.org/maven2/com/adobe/pdf/pcfi/2010.08.09/${ADOBE_FILES}" +#/com/adobe/pdf/pcfi/2010.08.09/pcfi-2010.08.09.jar +LICENSE="BSD" +SLOT="1.7" +KEYWORDS="~amd64" +IUSE="" + +CDEPEND=">=dev-java/bcprov-1.45:0 + >=dev-java/bcmail-1.45 + >=dev-java/commons-logging-1.1.1:0 + dev-java/icu4j:4 + >=dev-java/fontbox-${PV}:${SLOT} + >=dev-java/jempbox-${PV}:${SLOT}" +RDEPEND=">=virtual/jre-1.5 + ${CDEPEND}" +DEPEND=">=virtual/jdk-1.5 + app-arch/unzip + test? ( + dev-java/junit:4 + dev-java/ant-junit:0 ) + ${CDEPEND}" + +JAVA_PKG_FILTER_COMPILER="jikes" +S="${WORKDIR}/${P}/${PN}" + +JAVA_ANT_REWRITE_CLASSPATH="yes" +EANT_GENTOO_CLASSPATH="bcprov,bcmail,commons-logging,fontbox-${SLOT},icu4j-4,jempbox-${SLOT}" +EANT_BUILD_TARGET="pdfbox.package" +EANT_EXTRA_ARGS="-Dexist=true" + +src_unpack() { + unpack ${P}-src.zip +} + +java_prepare() { + epatch "${FILESDIR}"/${P}-build.xml.patch + mkdir -v download external + ln -s "${DISTDIR}/${ADOBE_FILES}" download +} + +EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},junit-4" +EANT_GENTOO_CLASSPATH_EXTRA="target/${P}.jar:src/main/resources:target/test-classes" + +src_test() { + #TODO: not all tests are passed; investigate why. + java-pkg-2_src_test +} + +src_install() { + java-pkg_newjar target/${P}.jar ${PN}.jar + + use doc && java-pkg_dojavadoc target/site/apidocs + use source && java-pkg_dosrc src/main/java/org + #TODO: make launchers and postinstall messages? +} |