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

Last change on this file since 72252 was 72252, checked in by jberry@…, 10 years ago

Drop maintainership of my recently ill-maintained java ports. I may still look in on them from time to time, but this feels better than to just ignore thme. Free to a good home.

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