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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name maven3 |
---|
7 | version 3.0 |
---|
8 | categories java devel |
---|
9 | maintainers jon.buffington.name:me |
---|
10 | platforms darwin |
---|
11 | |
---|
12 | description Software project management, build, reporting and comprehension tool. |
---|
13 | long_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 | |
---|
22 | homepage http://maven.apache.org/ |
---|
23 | |
---|
24 | master_sites apache:maven/binaries |
---|
25 | |
---|
26 | distname apache-maven-${version}-bin |
---|
27 | worksrcdir apache-maven-${version} |
---|
28 | |
---|
29 | checksums md5 505560ca377b990a965c4e4f8da42daa \ |
---|
30 | sha1 996f29b5a19e8145cb00926c68a0200dac554205 \ |
---|
31 | rmd160 eacd100b1ac8291d0ae32a5e10914596d1d9de77 |
---|
32 | |
---|
33 | livecheck.type md5 |
---|
34 | livecheck.url ${homepage}download.html |
---|
35 | livecheck.md5 82d43745cf2f2d1d939f1139a09d6654 |
---|
36 | |
---|
37 | depends_build bin:java:kaffe |
---|
38 | |
---|
39 | # The build is a binary install of the jars. |
---|
40 | build.cmd true |
---|
41 | universal_variant no |
---|
42 | use_configure no |
---|
43 | |
---|
44 | destroot { |
---|
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 | |
---|
59 | pre-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 | |
---|
78 | post-destroot { |
---|
79 | # Symlink the maven command into the bin directory. |
---|
80 | ln -s ${prefix}/share/java/${name}/bin/mvn ${destroot}${prefix}/bin |
---|
81 | } |
---|