source: trunk/dports/java/maven2/Portfile @ 36611

Last change on this file since 36611 was 36611, checked in by ryandesign@…, 12 years ago

maven2: update to 2.0.9; closes #15214

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 36611 2008-05-07 22:16:02Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    maven2
6version                 2.0.9
7
8categories              java devel
9maintainers             gk5885@kickstyle.net
10platforms               darwin
11
12description             A java-based build and project management environment.
13long_description        Maven is a Java project management and project comprehension \
14                                tool. Maven is based on the concept of a project object model (POM) \
15                                in that all the artifacts produced by Maven are a result of consulting \
16                                a well defined model for your project. Builds, documentation, source \
17                                metrics, and source  cross-references are all controlled by your POM.  \
18                                Maven 2.0 is a complete rewrite of Maven 1.0 and as such is better organized, \
19                                faster and easier to use.
20homepage                http://maven.apache.org/
21
22master_sites            apache:maven/binaries
23distname                apache-maven-${version}-bin
24worksrcdir              apache-maven-${version}
25use_bzip2               yes
26checksums               md5 77435fd52cc6bd8d4aee9a9242bae1df \
27                        sha1 1890a33aac8f23c2a97f4858a1eb0edc13b898e9 \
28                        rmd160 5687ddb796c17533e42c08ef5ac53a3fa4fa26c2
29
30depends_build           bin:java:kaffe
31
32use_configure           no
33universal_variant       no
34use_bzip2               yes
35
36# Source builds of maven are not possible. So, the default build is a binary
37# install of the jars.
38build.cmd               true
39
40destroot {
41        # Create the target java directory exists
42        xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}
43       
44        # Copy over the needed elements of our directory tree
45        file copy \
46                ${worksrcpath}/bin \
47                ${worksrcpath}/boot \
48                ${worksrcpath}/conf \
49                ${worksrcpath}/lib \
50                ${destroot}${prefix}/share/java/${name}
51               
52        # Remove extraneous bat files
53        foreach f [glob -directory ${destroot}${prefix}/share/java/${name}/bin *.bat] {
54                file delete $f
55        }
56       
57        # Fix permissions on shell scripts
58        foreach f { maven install_repo.sh } {
59                if [file exists ${destroot}${prefix}/share/java/${name}/bin/$f] {
60                        file attributes ${destroot}${prefix}/share/java/${name}/bin/$f -permissions +x
61                }
62        }
63       
64        # Symlink maven into the bin directory
65        system "cd ${destroot}${prefix}/bin && ln -s ${prefix}/share/java/${name}/bin/mvn"
66}
67
68livecheck.check         regex
69livecheck.url           ${homepage}download.html
70livecheck.regex         apache-maven-(\[0-9.\]+)-bin\\.tar
Note: See TracBrowser for help on using the repository browser.