1 | # $Id: Portfile,v 1.1 2004/10/06 14:27:24 mww Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name jakarta-taglibs-standard-11 |
---|
6 | version 1.1.1 |
---|
7 | |
---|
8 | categories java |
---|
9 | maintainers james@jberry.us |
---|
10 | platforms darwin |
---|
11 | |
---|
12 | description Jakarta JSP Standard Tag Library (JSTL) v1.1 |
---|
13 | long_description A version of the JSP Standard Tag Library (JSTL) adhering \ |
---|
14 | to the JSP JSTL 1.1 specification. Requires \ |
---|
15 | a JSP 2.0 compatible web container, such as Tomcat5. |
---|
16 | homepage http://jakarta.apache.org/taglibs/doc/standard-doc/ |
---|
17 | |
---|
18 | distname jakarta-taglibs-standard-${version}-src |
---|
19 | master_sites apache:jakarta/taglibs/standard/source/ |
---|
20 | checksums md5 3960eb703e5f02b09cb1d7b14c4b9029 |
---|
21 | |
---|
22 | depends_build bin:ant:apache-ant |
---|
23 | depends_lib bin:java:kaffe \ |
---|
24 | lib:XXX:junit \ |
---|
25 | lib:XXX:servlet24-api |
---|
26 | |
---|
27 | use_configure no |
---|
28 | |
---|
29 | worksrcdir ${distname}/standard |
---|
30 | |
---|
31 | build.cmd ant |
---|
32 | build.target dist |
---|
33 | build.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 | |
---|
39 | post-extract { |
---|
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 | |
---|
55 | destroot { |
---|
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 | } |
---|
64 | |
---|