source: trunk/dports/java/maven1/Portfile @ 83997

Last change on this file since 83997 was 83997, checked in by jmr@…, 9 years ago

maven: rename to maven1 and update to 1.1 (#26822, #26832)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 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 83997 2011-09-14 20:16:44Z jmr@macports.org $
3
4PortSystem 1.0
5
6name                maven1
7version             1.1
8
9categories          java devel
10maintainers         yahoo.com:jendave
11platforms           darwin
12
13description         A java-based build and project management environment.
14long_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.
19
20homepage            http://maven.apache.org/
21
22master_sites        apache:maven/binaries
23distname            maven-${version}
24checksums           md5    ec2b0ad8c78ba52497f63ee7f613b526 \
25                    sha1   d9174675f0e846a225278949869fa2d979fa7f3b \
26                    rmd160 82ef869218ac42d9132fc74316f0e8a5edcf9431
27
28depends_build       bin:java:kaffe \
29                    bin:ant:apache-ant
30
31use_configure       no
32
33# Source builds of maven are not possible. So, the default build is a binary
34# install of the jars.
35build.cmd           true
36
37destroot {
38    set mavendir ${destroot}${prefix}/share/java/${name}
39    # Create the target java directory exists
40    xinstall -m 755 -d ${mavendir}
41
42    # Copy over the needed elements of our directory tree
43    file copy \
44        ${worksrcpath}/bin \
45        ${worksrcpath}/lib \
46        ${worksrcpath}/plugins \
47        ${worksrcpath}/maven-project-3.xsd \
48        ${mavendir}
49
50    # Remove extraneous bat files
51    foreach f [glob -directory ${mavendir}/bin *.bat] {
52        file delete $f
53    }
54
55    # Fix permissions on shell scripts
56    foreach f { maven install_repo.sh } {
57        if [file exists ${mavendir}/bin/$f] {
58            file attributes ${mavendir}/bin/$f -permissions +x
59        }
60    }
61
62    # Reduce the permissions on the distribution files.
63    foreach f [glob -directory ${mavendir}/lib *.jar] {
64        file attributes $f -permissions 0644
65    }
66
67    # Symlink maven executable to mvn in maven1 directory
68    system "cd ${mavendir}/bin && ln -s maven mvn"
69
70    # Symlink maven into the bin directory
71    system "cd ${destroot}${prefix}/bin && ln -s ../share/java/${name}/bin/mvn mvn1"
72}
73
74livecheck.type  regex
75livecheck.regex {Get Maven (\d+(?:\.\d+)*)}
Note: See TracBrowser for help on using the repository browser.