[71878] trunk/dports/java

ryandesign at macports.org ryandesign at macports.org
Sat Sep 25 16:44:03 PDT 2010


Revision: 71878
          http://trac.macports.org/changeset/71878
Author:   ryandesign at macports.org
Date:     2010-09-25 16:43:59 -0700 (Sat, 25 Sep 2010)
Log Message:
-----------
xmlgraphics-commons: new port, version 1.4; see #26629

Added Paths:
-----------
    trunk/dports/java/xmlgraphics-commons/
    trunk/dports/java/xmlgraphics-commons/Portfile
    trunk/dports/java/xmlgraphics-commons/files/
    trunk/dports/java/xmlgraphics-commons/files/patch-build.xml.diff

Added: trunk/dports/java/xmlgraphics-commons/Portfile
===================================================================
--- trunk/dports/java/xmlgraphics-commons/Portfile	                        (rev 0)
+++ trunk/dports/java/xmlgraphics-commons/Portfile	2010-09-25 23:43:59 UTC (rev 71878)
@@ -0,0 +1,68 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+
+name                xmlgraphics-commons
+version             1.4
+platforms           darwin
+categories          java graphics
+maintainers         nomaintainer
+license             Apache-2.0
+supported_archs     noarch
+
+description         XML Graphics Commons
+
+long_description    Apache XML Graphics Commons is a library that consists of \
+                    several reusable components used by Apache Batik and \
+                    Apache FOP. Many of these components can easily be used \
+                    separately outside the domains of SVG and XSL-FO. You will \
+                    find components such as a PDF library, an RTF library, \
+                    Graphics2D implementations that let you generate PDF & \
+                    PostScript files, and much more.
+
+homepage            http://xmlgraphics.apache.org/commons
+master_sites        apache:xmlgraphics/commons/source/
+
+distname            ${name}-${version}-src
+worksrcdir          ${name}-${version}
+
+checksums           md5     d2b56a1671d2ca63480e38acd9629ea7 \
+                    sha1    096a179035c0ee12b9570627caccfa181db55b58 \
+                    rmd160  a690633f92abf34b314d339fa10ebf839af1cf4c
+
+depends_build       bin:ant:apache-ant
+
+depends_lib         port:junit \
+                    port:commons-io \
+                    port:commons-logging
+
+patchfiles          patch-build.xml.diff
+
+post-patch {
+    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/build.xml
+}
+
+use_configure       no
+
+build.cmd           ant
+build.target        all
+
+destroot {
+    xinstall -m 755 -d \
+        ${destroot}${prefix}/share/java \
+        ${destroot}${prefix}/share/doc/${name}
+
+    xinstall -m 644 \
+        ${worksrcpath}/build/${name}-${version}.jar \
+        ${destroot}${prefix}/share/java/
+
+    xinstall -m 644 -W ${worksrcpath} \
+        KEYS \
+        LICENSE \
+        NOTICE \
+        README \
+        ${destroot}${prefix}/share/doc/${name}
+    
+    ln -s ${name}-${version}.jar ${destroot}${prefix}/share/java/${name}.jar
+}


Property changes on: trunk/dports/java/xmlgraphics-commons/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/java/xmlgraphics-commons/files/patch-build.xml.diff
===================================================================
--- trunk/dports/java/xmlgraphics-commons/files/patch-build.xml.diff	                        (rev 0)
+++ trunk/dports/java/xmlgraphics-commons/files/patch-build.xml.diff	2010-09-25 23:43:59 UTC (rev 71878)
@@ -0,0 +1,11 @@
+--- build.xml.orig	2010-07-02 07:04:26.000000000 -0500
++++ build.xml	2010-09-25 18:39:50.000000000 -0500
+@@ -43,7 +43,7 @@
+   <property name="src.dir" value="${basedir}/src"/>
+   <property name="src.java.dir" value="${src.dir}/java"/>
+   <property name="src.res.dir" value="${src.dir}/resources"/>
+-  <property name="lib.dir" value="${basedir}/lib"/>
++  <property name="lib.dir" value="@PREFIX@/share/java"/>
+ 
+   <property name="build.dir" value="${basedir}/build"/>
+   <property name="build.classes.dir" value="${build.dir}/classes"/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100925/96eab2d9/attachment.html>


More information about the macports-changes mailing list