[26195] trunk/dports/textproc

source_changes at macosforge.org source_changes at macosforge.org
Fri Jun 15 11:42:29 PDT 2007


Revision: 26195
          http://trac.macosforge.org/projects/macports/changeset/26195
Author:   boeyms at macports.org
Date:     2007-06-15 11:42:29 -0700 (Fri, 15 Jun 2007)

Log Message:
-----------
textproc/fop-0.20:
 * Add new port.

Added Paths:
-----------
    trunk/dports/textproc/fop-0.20/
    trunk/dports/textproc/fop-0.20/Portfile
    trunk/dports/textproc/fop-0.20/files/
    trunk/dports/textproc/fop-0.20/files/patch-fop.sh
    trunk/dports/textproc/fop-0.20/files/patch-xalan.sh

Added: trunk/dports/textproc/fop-0.20/Portfile
===================================================================
--- trunk/dports/textproc/fop-0.20/Portfile	                        (rev 0)
+++ trunk/dports/textproc/fop-0.20/Portfile	2007-06-15 18:42:29 UTC (rev 26195)
@@ -0,0 +1,60 @@
+# $Id$
+
+PortSystem 1.0
+
+name                fop-0.20
+version             0.20.5
+categories          textproc java
+maintainers         boeyms at macports.org openmaintainer at macports.org
+platforms           darwin
+description         Apache FOP Java XSL-FO Print Formatter, 0.20 branch
+long_description \
+    FOP is the world's first print formatter driven by XSL formatting \
+    objects. It is a Java application that reads a formatting object \
+    tree conforming to the XSL-FO Version 1.0 W3C Recommendation and \
+    then turns it into a PDF document or allows you to preview it \
+    directly on screen.  This release is from the old 0.20 branch.
+homepage            http://xmlgraphics.apache.org/fop/
+
+# Apache recommended that this version of FOP be linked to FOP-specific versions
+# of the Java libraries that it depends on (which are distributed with FOP), and
+# they do not guarantee that FOP will work with any other versions.  Since this
+# version of FOP and the dependencies it uses are now significantly older than
+# the latest versions, we might as well only use the binary distribution (unless
+# anyone else comes up with a compelling reason to change this).  For the same
+# reason, we also stick to the directory structure within the archive, since it
+# isolates FOP and its libraries from conflicts with other versions.
+distname            fop-${version}-bin
+master_sites        apache:xmlgraphics/fop/binaries/
+checksums           md5 d6b43e3eddf9378536ad8127bc057d41 \
+                    sha1 ab650c5f253b1a7994776a15bc5e9abc54ff7687 \
+                    rmd160 59baae8df3642ca671fb4c6528082cf9d0b92f3b
+patchfiles          patch-fop.sh patch-xalan.sh
+
+worksrcdir          fop-${version}
+use_configure       no
+build               {}
+pre-destroot {
+    delete ${worksrcpath}/fop.bat
+    delete ${worksrcpath}/xalan.bat
+}
+destroot    {
+    xinstall -m 755 -d ${destroot}${prefix}/share/java/fop/${version}
+    set foppaths [glob ${worksrcpath}/*]
+    foreach foppath ${foppaths} {
+        copy ${foppath} ${destroot}${prefix}/share/java/fop/${version}
+    }
+    foreach fopbin {fop xalan} {
+        ln -fs ${prefix}/share/java/fop/${version}/${fopbin}.sh \
+            ${destroot}${prefix}/bin/${fopbin}.sh
+    }
+    xinstall -m 755 -d ${destroot}${prefix}/share/doc/fop/${version}
+    foreach fopdoc {CHANGES KEYS LICENSE README ReleaseNotes.html STATUS} {
+        ln -fs ${prefix}/share/java/fop/${version}/${fopdoc} \
+            ${destroot}${prefix}/share/doc/fop/${version}/${fopdoc}
+    }
+    ln -fs ${prefix}/share/java/fop/${version}/docs/xslfoRef.pdf \
+        ${destroot}${prefix}/share/doc/fop/${version}/xslfoRef.pdf
+    ln -fs ${prefix}/share/java/fop/${version}/build/site \
+        ${destroot}${prefix}/share/doc/fop/${version}/site
+}


Property changes on: trunk/dports/textproc/fop-0.20/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

Added: trunk/dports/textproc/fop-0.20/files/patch-fop.sh
===================================================================
--- trunk/dports/textproc/fop-0.20/files/patch-fop.sh	                        (rev 0)
+++ trunk/dports/textproc/fop-0.20/files/patch-fop.sh	2007-06-15 18:42:29 UTC (rev 26195)
@@ -0,0 +1,15 @@
+--- fop.sh	2003-07-15 02:04:02.000000000 +0000
++++ fop.sh.new	2007-06-14 14:22:28.000000000 +0000
+@@ -11,7 +11,11 @@
+ darwin=false;
+ case "`uname`" in
+   CYGWIN*) cygwin=true ;;
+-  Darwin*) darwin=true ;;
++  Darwin*) darwin=true
++           if [ -z "$JAVA_HOME" ] ; then
++             JAVA_HOME=/Library/Java/Home
++           fi
++           ;;
+ esac
+ 
+ if [ -z "$FOP_HOME" ] ; then


Property changes on: trunk/dports/textproc/fop-0.20/files/patch-fop.sh
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/dports/textproc/fop-0.20/files/patch-xalan.sh
===================================================================
--- trunk/dports/textproc/fop-0.20/files/patch-xalan.sh	                        (rev 0)
+++ trunk/dports/textproc/fop-0.20/files/patch-xalan.sh	2007-06-15 18:42:29 UTC (rev 26195)
@@ -0,0 +1,15 @@
+--- xalan.sh	2003-07-15 02:04:08.000000000 +0000
++++ xalan.sh.new	2007-06-14 14:24:19.000000000 +0000
+@@ -11,7 +11,11 @@
+ darwin=false;
+ case "`uname`" in
+   CYGWIN*) cygwin=true ;;
+-  Darwin*) darwin=true ;;
++  Darwin*) darwin=true
++           if [ -z "$JAVA_HOME" ] ; then
++             JAVA_HOME=/Library/Java/Home
++           fi
++           ;;
+ esac
+ 
+ if [ -z "$FOP_HOME" ] ; then


Property changes on: trunk/dports/textproc/fop-0.20/files/patch-xalan.sh
___________________________________________________________________
Name: svn:eol-style
   + native

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070615/0cf1b0ce/attachment.html


More information about the macports-changes mailing list