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

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

jakarta-taglibs-standard-11: update master_sites (#36079)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1# $Id: Portfile 98954 2012-10-22 10:59:00Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                            jakarta-taglibs-standard-11
6version                         1.1.2
7revision                        1
8
9categories                      java
10license                         Apache-2
11maintainers                     nomaintainer
12platforms                       darwin
13
14description                     Jakarta JSP Standard Tag Library (JSTL) v1.1
15long_description        A version of the JSP Standard Tag Library (JSTL) adhering \
16                                        to the JSP JSTL 1.1 specification. Requires a JSP 2.0 \
17                                        compatible web container, such as Tomcat5.
18homepage                        http://tomcat.apache.org/taglibs/standard/
19
20distname                        jakarta-taglibs-standard-${version}-src
21master_sites            http://archive.apache.org/dist/jakarta/taglibs/standard/source/
22checksums                       md5 42a65b8bd2dede333e4fdfa029f557c2
23
24depends_build           bin:ant:apache-ant
25depends_lib                     bin:java:kaffe \
26                                        port:junit \
27                                        port:servlet24-api \
28                                        port:xalanj
29
30use_configure           no
31
32worksrcdir                      ${distname}/standard
33
34build.cmd                       ant
35build.target            dist
36build.args                      -Dbuild.dir=${worksrcpath}/build \
37                                        -Ddist.dir=${worksrcpath}/dist \
38                                        -Djunit.jar=${prefix}/share/java/junit.jar \
39                                        -Dservlet24.jar=${prefix}/share/java/servlet24-api.jar \
40                                        -Djsp20.jar=${prefix}/share/java/jsp2-api.jar \
41                                        -Dxalan.jar=${prefix}/share/java/xalan.jar
42                                       
43variant debug {
44        build.args-append       -Dcompile.debug=true
45}
46
47post-patch {
48        # The following line is incorrect for Mac OS Java only, so we replace it
49        # with the correct value in that environment. Our presence check for
50        # Mac OS is to look for the specific file in the JavaVM framework.
51        #
52        # This isn't perfect: what if the user is running kaffe under Mac OS X,
53        # (which they shouldn't be, but...)?
54        #
55        # Note also that the entire line (in build.xml) may apparently be deleted
56        # if a JDK greater than v1.4.2 or greater is used: |/lib/rt.jar|d
57       
58        if [file exists "/System/Library/Frameworks/JavaVM.framework/Classes/classes.jar"] {
59                reinplace s|/lib/rt.jar|/../Classes/classes.jar| ${worksrcpath}/build.xml
60        }
61}
62
63destroot {
64        # Ensure needed directories
65        xinstall -d \
66                ${destroot}${prefix}/share/java \
67                ${destroot}${prefix}/share/doc \
68                ${destroot}${prefix}/share/examples
69       
70        # Install the jars
71        xinstall -m 644 \
72                ${worksrcpath}/dist/standard/lib/jstl.jar \
73                ${worksrcpath}/dist/standard/lib/standard.jar \
74                ${destroot}${prefix}/share/java
75               
76        # Install the docs
77        file copy ${worksrcpath}/dist/doc/doc/standard-doc \
78                ${destroot}${prefix}/share/doc/${name} 
79        file copy ${worksrcpath}/dist/standard/javadoc \
80                ${destroot}${prefix}/share/doc/${name} 
81               
82        # Install the examples
83        file copy \
84                ${worksrcpath}/examples \
85                ${destroot}${prefix}/share/examples/${name}     
86}
87
88platform darwin {
89        if {${os.major} >= 10} {
90                patchfiles-append patch-JDK-1.6.diff
91        }
92}
93
94livecheck.type  regex
95livecheck.url   http://apache.crihan.fr/dist/jakarta/taglibs/standard/source/
96livecheck.regex {standard-(1\.1(?:\.\d+)*)}
Note: See TracBrowser for help on using the repository browser.