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

Last change on this file since 72350 was 72350, checked in by blair@…, 7 years ago

maven2: Add myself as a maintainer.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 72350 2010-10-11 15:24:46Z blair@macports.org $
3
4PortSystem 1.0
5
6name            maven2
7version         2.2.1
8revision        2
9
10categories      java devel
11maintainers     blair kickstyle.net:gk5885
12platforms       darwin
13
14description     A java-based build and project management environment.
15long_description \
16                Maven is a Java project management and project \
17                comprehension tool.  Maven is based on the \
18                concept of a project object model (POM) in that \
19                all the artifacts produced by Maven are a result \
20                of consulting a well defined model for your \
21                project.Builds, documentation, source metrics, \
22                and source cross-references are all controlled by \
23                your POM.  Maven 2.0 is a complete rewrite of \
24                Maven 1.0 and as such is better organized, faster \
25                and easier to use.
26
27homepage        http://maven.apache.org/
28
29master_sites    apache:maven/binaries
30distname        apache-maven-${version}-bin
31worksrcdir      apache-maven-${version}
32use_bzip2       yes
33checksums       md5    c581a15cb0001d9b771ad6df7c8156f8 \
34                sha1   47ac0417a200cbc6d1b967d6b7c6ae1138e9e3e0 \
35                rmd160 25d523d3dc86cf4695b0e343cf0f6e58ea8a54e3
36
37depends_build   bin:java:kaffe
38
39use_configure   no
40universal_variant no
41
42# Source builds of maven are not possible. So, the default build is a binary
43# install of the jars.
44build.cmd       true
45
46destroot {
47        set mavendir ${destroot}${prefix}/share/java/${name}
48
49        # Create the target java directory exists
50        xinstall -m 755 -d ${mavendir}
51       
52        # Copy over the needed elements of our directory tree
53        file copy \
54                ${worksrcpath}/bin \
55                ${worksrcpath}/boot \
56                ${worksrcpath}/conf \
57                ${worksrcpath}/lib \
58                ${mavendir}
59               
60        # Remove extraneous bat files
61        foreach f [glob -directory ${mavendir}/bin *.bat] {
62                file delete $f
63        }
64       
65        # Fix permissions on shell scripts
66        foreach f { maven install_repo.sh } {
67                if [file exists ${mavendir}/bin/$f] {
68                        file attributes ${mavendir}/bin/$f -permissions +x
69                }
70        }
71
72        # Reduce the permissions on the distribution files.
73        file attributes ${mavendir}/conf -permissions 0755
74        file attributes ${mavendir}/conf/settings.xml -permissions 0644
75        foreach f [glob -directory ${mavendir}/lib *.jar] {
76                file attributes $f -permissions 0644
77        }
78       
79        # Symlink maven into the bin directory
80        system "cd ${destroot}${prefix}/bin && ln -s ../share/java/${name}/bin/mvn"
81        system "cd ${destroot}${prefix}/bin && ln -s ../share/java/${name}/bin/mvn mvn2"
82}
83
84livecheck.type  regex
85livecheck.url   ${homepage}download.html
86livecheck.regex apache-maven-(\[0-9.\]+)-bin\\.tar
Note: See TracBrowser for help on using the repository browser.