source: trunk/dports/java/xmlgraphics-commons/Portfile

Last change on this file was 95899, checked in by jmr@…, 5 years ago

correct license formatting

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# -*- 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
2# $Id: Portfile 95899 2012-07-26 10:56:29Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                xmlgraphics-commons
7version             1.4
8platforms           darwin
9categories          java graphics
10maintainers         nomaintainer
11license             Apache-2
12supported_archs     noarch
13
14description         XML Graphics Commons
15
16long_description    Apache XML Graphics Commons is a library that consists of \
17                    several reusable components used by Apache Batik and \
18                    Apache FOP. Many of these components can easily be used \
19                    separately outside the domains of SVG and XSL-FO. You will \
20                    find components such as a PDF library, an RTF library, \
21                    Graphics2D implementations that let you generate PDF & \
22                    PostScript files, and much more.
23
24homepage            http://xmlgraphics.apache.org/commons
25master_sites        apache:xmlgraphics/commons/source/
26
27distname            ${name}-${version}-src
28worksrcdir          ${name}-${version}
29
30checksums           md5     d2b56a1671d2ca63480e38acd9629ea7 \
31                    sha1    096a179035c0ee12b9570627caccfa181db55b58 \
32                    rmd160  a690633f92abf34b314d339fa10ebf839af1cf4c
33
34depends_build       bin:ant:apache-ant
35
36depends_lib         port:junit \
37                    port:commons-io \
38                    port:commons-logging
39
40patchfiles          patch-build.xml.diff
41
42post-patch {
43    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/build.xml
44}
45
46use_configure       no
47
48build.cmd           ant
49build.target        all
50
51destroot {
52    xinstall -m 755 -d \
53        ${destroot}${prefix}/share/java \
54        ${destroot}${prefix}/share/doc/${name}
55
56    xinstall -m 644 \
57        ${worksrcpath}/build/${name}-${version}.jar \
58        ${destroot}${prefix}/share/java/
59
60    xinstall -m 644 -W ${worksrcpath} \
61        KEYS \
62        LICENSE \
63        NOTICE \
64        README \
65        ${destroot}${prefix}/share/doc/${name}
66   
67    ln -s ${name}-${version}.jar ${destroot}${prefix}/share/java/${name}.jar
68}
Note: See TracBrowser for help on using the repository browser.