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

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

maven2: the universal variant is not applicable to this port

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 33907 2008-02-07 06:13:06Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    maven2
6version                 2.0.8
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 b049976be0daf0f4b55c0a7b24bec7b7
27
28depends_build           bin:java:kaffe
29
30use_configure           no
31universal_variant       no
32use_bzip2               yes
33
34# Source builds of maven are not possible. So, the default build is a binary
35# install of the jars.
36build.cmd               true
37
38destroot {
39        # Create the target java directory exists
40        xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}
41       
42        # Copy over the needed elements of our directory tree
43        file copy \
44                ${worksrcpath}/bin \
45                ${worksrcpath}/boot \
46                ${worksrcpath}/conf \
47                ${worksrcpath}/lib \
48                ${destroot}${prefix}/share/java/${name}
49               
50        # Remove extraneous bat files
51        foreach f [glob -directory ${destroot}${prefix}/share/java/${name}/bin *.bat] {
52                file delete $f
53        }
54       
55        # Fix permissions on shell scripts
56        foreach f { maven install_repo.sh } {
57                if [file exists ${destroot}${prefix}/share/java/${name}/bin/$f] {
58                        file attributes ${destroot}${prefix}/share/java/${name}/bin/$f -permissions +x
59                }
60        }
61       
62        # Symlink maven into the bin directory
63        system "cd ${destroot}${prefix}/bin && ln -s ${prefix}/share/java/${name}/bin/mvn"
64}
65
66livecheck.check         regex
67livecheck.url           ${homepage}download.html
68livecheck.regex         apache-maven-(\[0-9.\]+)-bin\\.tar
Note: See TracBrowser for help on using the repository browser.