Ticket #25656: Portfile.4

File Portfile.4, 2.8 KB (added by lists@…, 14 years ago)

Updated for the Maven 3.0 release.

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem 1.0
5
6name                maven3
7version             3.0
8categories          java devel
9maintainers         jon.buffington.name:me
10platforms           darwin
11
12description         Software project management, build, reporting and comprehension tool.
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 3 aims to ensure backward compatibility, improve usability, \
19                    increase performance, allow safe embedding, and pave the way to \
20                    implement many highly demanded features.
21
22homepage            http://maven.apache.org/
23
24master_sites        apache:maven/binaries
25
26distname            apache-maven-${version}-bin
27worksrcdir          apache-maven-${version}
28
29checksums           md5     505560ca377b990a965c4e4f8da42daa \
30                    sha1    996f29b5a19e8145cb00926c68a0200dac554205 \
31                    rmd160  eacd100b1ac8291d0ae32a5e10914596d1d9de77
32
33livecheck.type      md5
34livecheck.url       ${homepage}download.html
35livecheck.md5       82d43745cf2f2d1d939f1139a09d6654
36
37depends_build       bin:java:kaffe
38
39# The build is a binary install of the jars.
40build.cmd           true
41universal_variant   no
42use_configure       no
43
44destroot {
45    set mvndir ${destroot}${prefix}/share/java/${name}
46
47    # Ensure the target directory exists.
48    xinstall -m 755 -d ${mvndir}
49
50    # Copy the needed elements of the directory tree.
51    file copy \
52        ${worksrcpath}/bin \
53        ${worksrcpath}/boot \
54        ${worksrcpath}/conf \
55        ${worksrcpath}/lib \
56        ${mvndir}
57}
58
59pre-destroot {
60    # Remove the extraneous Windows bat files.
61    foreach f [glob -directory ${worksrcpath}/bin *.bat] {
62       file delete $f
63    }
64
65    # Reduce the permissions on the distribution files.
66    file attributes ${worksrcpath}/conf -permissions 0755
67    file attributes ${worksrcpath}/conf/settings.xml -permissions 0644
68
69    # Reduce the permissions on the JAR files.
70    foreach f [glob -directory ${worksrcpath}/boot *.jar] {
71        file attributes $f -permissions 0644
72    }
73    foreach f [glob -directory ${worksrcpath}/lib *.jar] {
74        file attributes $f -permissions 0644
75    }
76}
77
78post-destroot {
79    # Symlink the maven command into the bin directory.
80    ln -s ${prefix}/share/java/${name}/bin/mvn ${destroot}${prefix}/bin
81}