source: trunk/dports/java/jakarta-taglibs-standard-11/Portfile @ 8647

Last change on this file since 8647 was 8647, checked in by mww, 15 years ago

Bug: 2293
Submitted by: james@…
Reviewed by: mww@

new port java/jakarta-taglibs-standard-11

  • Property svn:eol-style set to native
File size: 2.1 KB
Line 
1# $Id: Portfile,v 1.1 2004/10/07 16:42:18 mww Exp $
2
3PortSystem 1.0
4
5name                            jakarta-taglibs-standard-11
6version                         1.1.1
7
8categories                      java
9maintainers                     james@jberry.us
10platforms                       darwin
11
12description                     Jakarta JSP Standard Tag Library (JSTL) v1.1
13long_description        A version of the JSP Standard Tag Library (JSTL) adhering \
14                                        to the JSP JSTL 1.1 specification. Requires a JSP 2.0 \
15                                        compatible web container, such as Tomcat5.
16homepage                        http://jakarta.apache.org/taglibs/doc/standard-doc/
17
18distname                        jakarta-taglibs-standard-${version}-src
19master_sites            apache:jakarta/taglibs/standard/source/
20checksums                       md5 3960eb703e5f02b09cb1d7b14c4b9029
21
22depends_build           bin:ant:apache-ant
23depends_lib                     bin:java:kaffe \
24                                        lib:XXX:junit \
25                                        lib:XXX:servlet24-api
26
27use_configure           no
28
29worksrcdir                      ${distname}/standard
30
31build.cmd                       ant
32build.target            dist
33build.args                      -Dbuild.dir=${worksrcpath}/build \
34                                        -Ddist.dir=${worksrcpath}/dist \
35                                        -Djunit.jar=${prefix}/share/java/junit.jar \
36                                        -Dservlet24.jar=${prefix}/share/java/servlet24-api.jar \
37                                        -Djsp20.jar=${prefix}/share/java/jsp2-api.jar
38
39post-patch {
40        # The following line is incorrect for Mac OS Java only, so we replace it
41        # with the correct value in that environment. Our presence check for
42        # Mac OS is to look for the specific file in the JavaVM framework.
43        #
44        # This isn't perfect: what if the user is running kaffe under Mac OS X,
45        # (which they shouldn't be, but...)?
46        #
47        # Note also that the entire line (in build.xml) may apparently be deleted
48        # if a JDK greater than v1.4.2 or greater is used: |/lib/rt.jar|d
49       
50        if [file exists "/System/Library/Frameworks/JavaVM.framework/Classes/classes.jar"] {
51                reinplace s|/lib/rt.jar|/../Classes/classes.jar| ${worksrcpath}/build.xml
52        }
53}
54
55destroot {
56        xinstall -m 755 -d ${destroot}${prefix}/share/java \
57                ${destroot}${prefix}/share/doc
58       
59        file copy ${worksrcpath}/dist/standard ${destroot}${prefix}/share/java/jstl
60        system "cd ${destroot}${prefix}/share/java/ && ln -fs jstl/lib/jstl.jar jstl/lib/standard.jar ."
61       
62        file copy ${worksrcpath}/dist/doc/doc ${destroot}${prefix}/share/doc/${name}
63}
Note: See TracBrowser for help on using the repository browser.