source: trunk/dports/java/jakarta-taglibs-string/Portfile @ 99090

Last change on this file since 99090 was 99090, checked in by ryandesign@…, 8 years ago

jakarta-taglibs-string: remove unused master_sites directive

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# $Id: Portfile 99090 2012-10-26 01:10:33Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                            jakarta-taglibs-string
6version                         1.1.0
7
8categories                      java
9maintainers                     nomaintainer
10platforms                       darwin
11
12description                     Jakarta Strings Taglib -- taglib for manipulating Java strings
13long_description        The String taglibrary provides a host of tags for manipulating \
14                                        java.lang.Strings. The style is that the String to act upon is \
15                                        the body of the tag, and attributes are used as parameters for \
16                                        the manipulation.
17homepage                        http://jakarta.apache.org/taglibs/doc/string-doc/intro.html
18                               
19checksums                       md5 db5dc75c89e794f794be92d10df6be1b
20
21depends_build           bin:ant:apache-ant
22depends_lib                     bin:java:kaffe \
23                                        port:servlet24-api \
24                                        port:commons-lang
25
26fetch.type                      cvs
27cvs.root                        :pserver:anoncvs@cvs.apache.org:/home/cvspublic
28cvs.module                      jakarta-taglibs/string
29cvs.args                        -d ${distname} 
30cvs.tag                         string-1-1_POSTRELEASE
31
32post-fetch {
33        # Fetch the common doc directory -- ugly, ugly cvs hacks stolen from portfetch.tcl
34        # We fetch this from cvs head, since we don't have much choice, and it's just for doc anyway
35        system -notty "cd ${workpath} && echo | /usr/bin/env ${cvs.env} cvs ${cvs.pre_args} login"
36        system "cd ${workpath} && /usr/bin/env ${cvs.env} cvs -d ${cvs.root} co -d src jakarta-taglibs/src"
37       
38        # Copy in the common stuff needed by the build
39        file copy ${filespath}/common.xml \
40                ${filespath}/common.properties \
41                ${filespath}/LICENSE \
42                ${workpath}
43               
44        # Create the dist directory
45        file mkdir ${workpath}/dist ${workpath}/build
46       
47        # Create some files that we don't have
48        system "cd ${workpath} && touch NOTICE"
49}
50                               
51use_configure           no
52
53build.cmd                       ant
54build.target            dist
55build.env                       CLASSPATH=${prefix}/share/java/jsp2-api.jar
56build.args                      -Ddist.dir=${workpath}/dist \
57                                        -Dbuild.dir=${workpath}/build \
58                                        -Dcommons-lang.jar=${prefix}/share/java/commons-lang.jar \
59                                        -Dservlet.jar=${prefix}/share/java/servlet24-api.jar
60
61destroot {
62        set dist ${workpath}/dist/string
63       
64        # Ensure needed directories
65        xinstall -m 755 -d \
66                ${destroot}${prefix}/share/java \
67                ${destroot}${prefix}/share/doc/${name} \
68                ${destroot}${prefix}/share/examples/${name}
69               
70        # Install jars
71        xinstall -m 644 ${dist}/taglibs-string.jar \
72                ${destroot}${prefix}/share/java
73               
74        # Install docs
75        system "cd ${destroot}${prefix}/share/doc/${name} && /usr/bin/env jar fx ${dist}/string-doc.war"
76               
77        # Install examples
78        system "cd ${destroot}${prefix}/share/examples/${name} && /usr/bin/env jar fx ${dist}/string-examples.war"
79}
Note: See TracBrowser for help on using the repository browser.