summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/pdfbox/files/pdfbox-1.8.8-build.xml.patch')
-rw-r--r--dev-java/pdfbox/files/pdfbox-1.8.8-build.xml.patch134
1 files changed, 134 insertions, 0 deletions
diff --git a/dev-java/pdfbox/files/pdfbox-1.8.8-build.xml.patch b/dev-java/pdfbox/files/pdfbox-1.8.8-build.xml.patch
new file mode 100644
index 000000000000..cb8c8cd62a42
--- /dev/null
+++ b/dev-java/pdfbox/files/pdfbox-1.8.8-build.xml.patch
@@ -0,0 +1,134 @@
+--- build.xml.orig 2015-05-12 16:41:01.813664913 +0000
++++ build.xml 2015-05-12 16:44:10.434652444 +0000
+@@ -28,7 +28,7 @@
+ <property name="tool.dir" value="tools" />
+ <property name="bin.dir" value="bin" />
+
+- <property name="project.version" value="1.8.7" />
++ <property name="project.version" value="1.8.8" />
+
+ <!-- pdfbox -->
+ <property name="pdfbox.project.name" value="pdfbox"/>
+@@ -95,9 +95,6 @@
+ <property name="testoutput-ext.dir" value="${pdfbox.target.dir}/test-output-ext"/>
+ <property name="testinput-ext.dir" value="${pdfbox.target.dir}/test-input-ext"/>
+
+- <property name="adobefiles.url" value="${maven.repo2}/com/adobe/pdf/pcfi/2010.08.09/pcfi-2010.08.09.jar"/>
+- <property name="adobefiles.jar" value="${download.dir}/pcfi-2010.08.09.jar"/>
+-
+ <property name="file" value=""/>
+
+ <!--.NET properties -->
+@@ -171,7 +168,7 @@
+ <mkdir dir="${jempbox.dest.dir}"/>
+ </target>
+
+- <target name="pdfbox.compile" depends="fontbox.package,jempbox.package,pdfbox.init,get.adobefiles"
++ <target name="pdfbox.compile" depends="fontbox.package,jempbox.package,pdfbox.init"
+ 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}"
+@@ -206,31 +203,6 @@
+
+ <target name="test" depends="testextract,test-junit,testimage" description="Run all the junit tests"/>
+
+- <target name="find.adobefiles">
+- <available property="adobefiles.found" file="${dest.dir}/org/apache/pdfbox/resources/cmap"/>
+- </target>
+-
+- <target name="get.adobefiles"
+- unless="adobefiles.found" depends="find.adobefiles"
+- description="Download and unpack afm and cmap files from Adobe">
+- <antcall target="downloadfile">
+- <param name="sourcefile" value="${adobefiles.url}"/>
+- <param name="destfile" value="${adobefiles.jar}"/>
+- </antcall>
+- <unjar src="${adobefiles.jar}" dest="${pdfbox.dest.dir}/org/apache/pdfbox/resources/afm">
+- <patternset>
+- <include name="com/adobe/pdf/pcfi/afm/*.afm"/>
+- </patternset>
+- <mapper type="flatten"/>
+- </unjar>
+- <unjar src="${adobefiles.jar}" dest="${pdfbox.dest.dir}/org/apache/pdfbox/resources">
+- <patternset>
+- <include name="com/adobe/pdf/pcfi/glyphlist.txt"/>
+- </patternset>
+- <mapper type="flatten"/>
+- </unjar>
+- </target>
+-
+ <target name="testextract" depends="clean,pdfbox.compile" description="Test text extraction">
+ <junit printsummary="off" fork="on" dir=".">
+ <jvmarg value="-Xmx1024M"/>
+@@ -341,52 +313,7 @@
+ </checkstyle>
+ </target>
+
+- <target name="get.externallibs.pdfbox">
+- <antcall target="downloadfile">
+- <param name="sourcefile" value="${bcmail.url}"/>
+- <param name="destfile" value="${bcmail.jar}"/>
+- </antcall>
+- <antcall target="downloadfile">
+- <param name="sourcefile" value="${bcprov.url}"/>
+- <param name="destfile" value="${bcprov.jar}"/>
+- </antcall>
+- <antcall target="downloadfile">
+- <param name="sourcefile" value="${junit.url}"/>
+- <param name="destfile" value="${junit.jar}"/>
+- </antcall>
+- <antcall target="downloadfile">
+- <param name="sourcefile" value="${logging.url}"/>
+- <param name="destfile" value="${logging.jar}"/>
+- </antcall>
+- <antcall target="downloadfile">
+- <param name="sourcefile" value="${icu4j.url}"/>
+- <param name="destfile" value="${icu4j.jar}"/>
+- </antcall>
+- </target>
+-
+- <target name="get.externallibs.fontbox">
+- <antcall target="downloadfile">
+- <param name="sourcefile" value="${junit.url}"/>
+- <param name="destfile" value="${junit.jar}"/>
+- </antcall>
+- <antcall target="downloadfile">
+- <param name="sourcefile" value="${logging.url}"/>
+- <param name="destfile" value="${logging.jar}"/>
+- </antcall>
+- </target>
+-
+- <target name="get.externallibs.jempbox">
+- <antcall target="downloadfile">
+- <param name="sourcefile" value="${junit.url}"/>
+- <param name="destfile" value="${junit.jar}"/>
+- </antcall>
+- <antcall target="downloadfile">
+- <param name="sourcefile" value="${logging.url}"/>
+- <param name="destfile" value="${logging.jar}"/>
+- </antcall>
+- </target>
+-
+- <target name="pdfbox.package" depends="get.externallibs.pdfbox,pdfbox.compile" description="Package pdfbox into a jar file">
++ <target name="pdfbox.package" depends="pdfbox.compile" description="Package pdfbox into a jar file">
+ <propertyfile file="${pdfbox.resources.dir}/org/apache/pdfbox/resources/pdfbox.version">
+ <entry key="pdfbox.version" value="${pdfbox.release.name}"/>
+ </propertyfile>
+@@ -405,7 +332,7 @@
+ </jar>
+ </target>
+
+- <target name="fontbox.package" depends="get.externallibs.fontbox,fontbox.compile" description="Package fontbox into a jar file">
++ <target name="fontbox.package" depends="fontbox.compile" description="Package fontbox into a jar file">
+ <jar jarfile="${fontbox.jar}">
+ <fileset dir="${fontbox.dest.dir}"/>
+ <metainf dir="." includes="*.txt"/>
+@@ -419,7 +346,7 @@
+ </jar>
+ </target>
+
+- <target name="jempbox.package" depends="get.externallibs.jempbox,jempbox.compile" description="Package jempbox into a jar file">
++ <target name="jempbox.package" depends="jempbox.compile" description="Package jempbox into a jar file">
+ <jar jarfile="${jempbox.jar}">
+ <fileset dir="${jempbox.dest.dir}"/>
+ <metainf dir="." includes="*.txt"/>