1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name struts |
---|
6 | version 1.2.4 |
---|
7 | |
---|
8 | categories java |
---|
9 | maintainers james@jberry.us |
---|
10 | platforms darwin |
---|
11 | |
---|
12 | description Apache Struts Framework. |
---|
13 | long_description Struts is a framework for writing Java web applications, \ |
---|
14 | based on the model-view-controller paradigm. |
---|
15 | homepage http://struts.apache.org/ |
---|
16 | |
---|
17 | distname jakarta-${name}-${version}-src |
---|
18 | master_sites apache:struts/source/ |
---|
19 | checksums md5 136539476afecd9fbd3a1f26255aef88 |
---|
20 | |
---|
21 | depends_build bin:ant:apache-ant |
---|
22 | depends_lib bin:java:kaffe \ |
---|
23 | lib:XXX:commons-beanutils \ |
---|
24 | lib:XXX:commons-collections \ |
---|
25 | lib:XXX:commons-digester \ |
---|
26 | lib:XXX:commons-fileupload \ |
---|
27 | lib:XXX:commons-lang \ |
---|
28 | lib:XXX:commons-logging \ |
---|
29 | lib:XXX:commons-validator \ |
---|
30 | lib:XXX:jakarta-oro \ |
---|
31 | lib:XXX:servlet23-api \ |
---|
32 | lib:XXX:antlr \ |
---|
33 | lib:XXX:jakarta-taglibs-standard-11 |
---|
34 | |
---|
35 | use_configure no |
---|
36 | |
---|
37 | set javaLibs ${prefix}/share/java |
---|
38 | |
---|
39 | post-extract { |
---|
40 | file mkdir ${worksrcpath}/contrib |
---|
41 | } |
---|
42 | |
---|
43 | build { |
---|
44 | # Build Struts |
---|
45 | system "cd ${worksrcpath} && \ |
---|
46 | CLASSPATH=${javaLibs}/commons-digester-rss.jar \ |
---|
47 | ant dist \ |
---|
48 | -Dcommons-beanutils.jar=${javaLibs}/commons-beanutils.jar \ |
---|
49 | -Dcommons-collections.jar=${javaLibs}/commons-collections.jar \ |
---|
50 | -Dcommons-digester.jar=${javaLibs}/commons-digester.jar \ |
---|
51 | -Dcommons-fileupload.jar=${javaLibs}/commons-fileupload.jar \ |
---|
52 | -Dcommons-lang.jar=${javaLibs}/commons-lang.jar \ |
---|
53 | -Dcommons-logging.jar=${javaLibs}/commons-logging.jar \ |
---|
54 | -Dcommons-validator.jar=${javaLibs}/commons-validator.jar \ |
---|
55 | -Djakarta-oro.jar=${javaLibs}/jakarta-oro.jar \ |
---|
56 | -Dservlet.jar=${javaLibs}/servlet23-api.jar \ |
---|
57 | -Dantlr.jar=${javaLibs}/antlr.jar \ |
---|
58 | " |
---|
59 | |
---|
60 | # Build Struts-EL |
---|
61 | system "cd ${worksrcpath}/contrib/struts-el && \ |
---|
62 | ant dist \ |
---|
63 | -Dservlet.jar=${javaLibs}/servlet23-api.jar \ |
---|
64 | -Djstl.home=${javaLibs}/jstl \ |
---|
65 | -Djstl.tld.dir=${javaLibs}/jstl/tld \ |
---|
66 | -Djstl.jar=${javaLibs}/jstl.jar \ |
---|
67 | -Djstl-standard.jar=${javaLibs}/standard.jar \ |
---|
68 | -Dcommons-beanutils.jar=${javaLibs}/commons-beanutils.jar \ |
---|
69 | " |
---|
70 | } |
---|
71 | |
---|
72 | destroot { |
---|
73 | xinstall -m 755 -d ${destroot}${prefix}/share/java |
---|
74 | file copy ${worksrcpath}/dist \ |
---|
75 | ${destroot}${prefix}/share/java/${name} |
---|
76 | xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}/contrib |
---|
77 | file copy ${worksrcpath}/contrib/struts-el/dist \ |
---|
78 | ${destroot}${prefix}/share/java/${name}/contrib/struts-el |
---|
79 | } |
---|