13 | | description A java-based build and project management environment. |
14 | | long_description Maven is a Java project management and project comprehension \ |
15 | | tool. Maven is based on the concept of a project object model (POM) \ |
16 | | in that all the artifacts produced by Maven are a result of consulting \ |
17 | | a well defined model for your project. Builds, documentation, source \ |
18 | | metrics, and source cross-references are all controlled by your POM. |
| 15 | description stub package, use the maven1 port instead. |
| 16 | long_description ${description} |
22 | | master_sites apache:maven/binaries |
23 | | checksums md5 81a6b4393e550635efe19e95cea38718 |
24 | | |
25 | | depends_build bin:java:kaffe \ |
26 | | bin:ant:apache-ant |
27 | | |
28 | | patchfiles patch-maven |
29 | | |
30 | | use_configure no |
31 | | use_bzip2 yes |
32 | | |
33 | | # Source builds of maven are not possible, except using the cvs head as in the |
34 | | # devel variant below, because there is no available source archive or correctly |
35 | | # tagged source for the project. So the default build is a binary install of the |
36 | | # jars. |
37 | | build.cmd true |
38 | | |
39 | | destroot { |
40 | | # Create the target java directory exists |
41 | | xinstall -m 755 -d ${destroot}${prefix}/share/java/${name} |
42 | | |
43 | | # Copy over the needed elements of our directory tree |
44 | | file copy \ |
45 | | ${worksrcpath}/bin \ |
46 | | ${worksrcpath}/lib \ |
47 | | ${worksrcpath}/plugins \ |
48 | | ${worksrcpath}/maven-navigation-1.0.xsd \ |
49 | | ${destroot}${prefix}/share/java/${name} |
50 | | |
51 | | # Remove extraneous bat files |
52 | | foreach f [glob -directory ${destroot}${prefix}/share/java/${name}/bin *.bat] { |
53 | | file delete $f |
54 | | } |
55 | | |
56 | | # Fix permissions on shell scripts |
57 | | foreach f { maven install_repo.sh } { |
58 | | if [file exists ${destroot}${prefix}/share/java/${name}/bin/$f] { |
59 | | file attributes ${destroot}${prefix}/share/java/${name}/bin/$f -permissions +x |
60 | | } |
61 | | } |
62 | | |
63 | | # Symlink maven into the bin directory |
64 | | system "cd ${destroot}${prefix}/bin && ln -s ../share/java/${name}/bin/${name}" |
| 21 | pre-fetch { |
| 22 | ui_msg "$name is a stub, use maven1 instead." |
| 23 | return -code error "$name cannot be installed" |