- Timestamp:
- 04/29/2017 08:22:32 PM (7 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- 6d5acf3
- Parents:
- d24954f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pst/ps/fop.xml
rd24954f rbf7a1821 7 7 <!ENTITY fop-download-http "https://archive.apache.org/dist/xmlgraphics/fop/source/fop-&fop-version;-src.tar.gz"> 8 8 <!ENTITY fop-download-ftp " "> 9 <!ENTITY fop-md5sum " 13b5b497dfb0ba8a01093dfc1a89d106">10 <!ENTITY fop-size "2 3MB">11 <!ENTITY fop-buildsize " 342 MB">12 <!ENTITY fop-time "0. 3 SBU">9 <!ENTITY fop-md5sum "6d2388bd8851b4883d3258c0afc96895"> 10 <!ENTITY fop-size "24 MB"> 11 <!ENTITY fop-buildsize "493 MB (add 39 MB for tests)"> 12 <!ENTITY fop-time "0.7 SBU (add 0.7 SBU for tests)"> 13 13 14 14 <!ENTITY jai-version "1_1_3"> … … 20 20 <!ENTITY jai64-md5sum "4a906db35612f668aeef2c0606d7075b"> 21 21 <!ENTITY jai64-size "3.4 MB"> 22 <!-- 23 <!ENTITY offo-download "&sourceforge-repo;/offo/offo-hyphenation_v2.0.zip"> 24 <!ENTITY offo-md5sum "a78171d47c9af223c51bbd42df36f26d"> 25 <!ENTITY offo-size "858 KB"> 26 --> 22 <!ENTITY offo-download "&sourceforge-repo;/projects/offo/files/offo-hyphenation/2.2/offo-hyphenation.zip"> 23 <!ENTITY offo-md5sum "bf9c09bf05108ef9661b8f08d91c2336"> 24 <!ENTITY offo-size "862 KB"> 27 25 ]> 28 26 … … 82 80 <title>Recommended packages</title> 83 81 84 <!--85 82 <listitem> 86 83 <para>Objects for Formatting Objects (OFFO) hyphenation patterns: … … 92 89 </para> 93 90 </listitem> 94 --> 91 95 92 <listitem> 96 93 <para>Java Advanced Imaging (JAI) API components (architecture dependent): … … 109 106 </listitem> 110 107 </itemizedlist> 111 <itemizedlist spacing="compact">108 <!-- <itemizedlist spacing="compact"> 112 109 <title>Required patch</title> 113 110 <listitem> … … 116 113 </para> 117 114 </listitem> 118 </itemizedlist> 115 </itemizedlist>--> 119 116 120 117 <bridgehead renderas="sect3">fop Dependencies</bridgehead> … … 129 126 <xref linkend="junit"/> (to run tests), 130 127 <xref linkend="x-window-system"/> (to run tests), 131 <ulink url="http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-java-client-419417.html">JIMI SDK</ulink>, 132 <ulink url="http://www.xmlunit.org/">XMLUnit</ulink>, 133 <ulink url="https://java.net/projects/jai-imageio">JAI Image I/O Tools</ulink>, 134 <ulink url="http://jeuclid.sourceforge.net/">JEuclid</ulink>, 135 <ulink url="https://pmd.github.io/">PMD</ulink> 136 (requires <ulink url="http://jaxen.org/">Jaxen</ulink>), and 137 <ulink url="http://forrest.apache.org/">Forrest</ulink> (Forrest used only 138 to build the documentation) 128 <ulink url="https://maven.apache.org/">Maven</ulink>, 129 <ulink url="https://java.net/projects/jai-imageio">JAI Image I/O Tools</ulink>, and 130 <ulink url="http://jeuclid.sourceforge.net/">JEuclid</ulink> 131 <!-- [pierre 2017-04-29] Note to devs: there are a lot of bundled dependencies. 132 Some were listed here, but not all. I am not sure it is possible to 133 use system ones. So, I have removed them, an kept only those which 134 are not bundled. --> 139 135 </para> 140 136 … … 154 150 found via the <envar>CLASSPATH</envar> environment variable. 155 151 </para> 156 <!-- 152 157 153 <sect3> 158 154 <title>Installing OFFO Hyphenation Patterns</title> 159 155 160 156 <para> 161 First, unpack the <application>fop</application> source tarball and 162 the hyphenation zipfile from the same directory, then change directories 163 into the root of the <application>fop</application> source tree. Copy 164 the XML hyphenation patterns into the <application>fop</application> 165 source tree by running the following commands: 166 </para> 167 168 <screen><userinput>cp ../offo-hyphenation/hyph/* hyph && 169 rm -rf ../offo-hyphenation</userinput></screen> 157 Copy the XML hyphenation patterns into the fop source tree by running 158 the following commands: 159 </para> 160 161 <screen><userinput>unzip ../offo-hyphenation.zip && 162 cp offo-hyphenation/hyph/* fop/hyph && 163 rm -rf offo-hyphenation</userinput></screen> 170 164 171 165 </sect3> 172 --> 166 173 167 <sect3> 174 168 <title>Installing Java Advanced Imaging (JAI) API components</title> … … 207 201 <screen><userinput>sed -i '\@</javad@i\ 208 202 <arg value="-Xdoclint:none"/>\ 209 <arg value="--allow-script-in-comments"/>' build.xml</userinput></screen> 210 203 <arg value="--allow-script-in-comments"/>' fop/build.xml</userinput></screen> 204 205 <para> 206 The stack size set in <filename>build.xml</filename> for building the 207 hyphenation patterns is not enough. Change it by running: 208 </para> 209 210 <screen><userinput>sed -e '/hyph\.stack/s/512k/1M/' \ 211 -i fop/build.xml</userinput></screen> 211 212 <para> 212 213 Then, compile <application>fop</application> by running the … … 214 215 </para> 215 216 216 <screen><userinput>patch -Np1 -i ../fop-&fop-version;-listNPE-1.patch && 217 218 ant compile && 219 ant jar-main && 220 ant javadocs && 217 <screen><userinput>cd fop && 218 export LC_ALL=en_US.UTF-8 && 219 220 ant compile && 221 ant jar-main && 222 ant jar-hyphenation && 223 ant javadocs && 221 224 mv build/javadocs .</userinput></screen> 222 225 223 <!-- ant docs target is not present anymore in fop-2.0 224 <para>225 If <application>Forrest</application> is installed,226 build the full set of documentation:227 </para>228 229 <screen><userinput>ant docs</userinput></screen>230 --> 231 <para> 232 T o test the application, run <command>ant junit-all</command>. The233 hyphenation tests will fail. To see a list of other test targets, use234 <command>ant -p</command>. You must run the tests from an X-window using235 a GL-aware <application>Xorg</application> server or some of the236 <application>JUnit</application> tests will hang.226 <para> 227 To test the application, first modify <filename>build.xml</filename> 228 so that tests do not stop when an error is encountered: 229 </para> 230 231 <screen><userinput>sed -e '/haltonfailure/s/yes/off/' \ 232 -i build.xml</userinput></screen> 233 234 <para> 235 Then, run <command>ant junit</command>. The hyphenation tests will 236 fail if OFFO hyphenation has not been compiled. To see a list of other 237 test targets, use <command>ant -p</command>. You must run the tests 238 from an X-window using a GL-aware <application>Xorg</application> 239 server or some of the <application>JUnit</application> tests will hang. 237 240 </para> 238 241 … … 242 245 243 246 <screen role="root"><userinput>install -v -d -m755 -o root -g root /opt/fop-&fop-version; && 244 cp -v KEYS LICENSE NOTICE README/opt/fop-&fop-version; &&247 cp -v ../{KEYS,LICENSE,NOTICE,README} /opt/fop-&fop-version; && 245 248 cp -vR build conf examples fop* javadocs lib /opt/fop-&fop-version; && 246 247 ln -v -sf fop-&fop-version; /opt/fop</userinput></screen> 249 chmod a+x /opt/fop-&fop-version;/fop && 250 251 ln -v -sfn fop-&fop-version; /opt/fop</userinput></screen> 248 252 249 253 </sect3> … … 261 265 262 266 <para> 263 <command> patch -Np1 -i ../fop-2.1-listNPE-1.patch</command>: This patch264 fixes a bug leading to segmentation faults when processing some inputs.267 <command>export LC_ALL=en_US.UTF-8</command>: the compiler fails if using 268 an ASCII locale. 265 269 </para> 266 270 … … 269 273 <filename>build.xml</filename> and builds the target: <option>compile 270 274 </option> compiles the java sources, <option>jar-main</option> generates 271 jar archives, and <option>javadocs</option> builds the documentation. 275 jar archives, <option>jar-hyphenation</option> generates the hyphenation 276 patterns for FOP, and <option>javadocs</option> builds the documentation. 272 277 </para> 273 278
Note:
See TracChangeset
for help on using the changeset viewer.