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

Last change on this file since 50984 was 50984, checked in by and.damore@…, 10 years ago

Maintainer email change, second batch, mail without @macports.org domain are put in domain:user form.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $
2
3PortSystem 1.0
4
5name                    maven2
6version                 2.1.0
7
8categories              java devel
9maintainers             kickstyle.net:gk5885
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 9268c9de2cccfd0d8fbcdbcfaf517a87 \
27                        sha1 7b18c2968b3c4e0c32aceb3203b776572c161fd3 \
28                        rmd160 fde285896606d8a380ad07656a6401f6d66b4f6b
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.