source: trunk/dports/java/maven-devel/Portfile @ 109477

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

maven-devel: replace with copy of maven3 and then rsync orig maven-devel over.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.2 KB
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: Portfile 109477 2013-08-16 01:13:13Z blair@macports.org $
3
4PortSystem 1.0
5PortGroup select 1.0
6
7name            maven-devel
8version         3.1.0
9
10categories      java devel
11license         Apache-2
12maintainers     easieste openmaintainer
13platforms       darwin
14supported_archs noarch
15
16description     A java-based build and project management environment.
17long_description \
18                Maven is a Java project management and project \
19                comprehension tool.  Maven is based on the \
20                concept of a project object model (POM) in that \
21                all the artifacts produced by Maven are a result \
22                of consulting a well defined model for your \
23                project.Builds, documentation, source metrics, \
24                and source cross-references are all controlled by \
25                your POM.  Maven 3 aims to ensure backward \
26                compatibility with Maven 2, improve usability, \
27                increase performance, allow safe embedding, and \
28                pave the way to implement many highly demanded \
29                features.
30
31homepage        http://maven.apache.org/
32
33master_sites    apache:maven/maven-3/${version}/binaries
34distname        apache-maven-${version}-bin
35worksrcdir      apache-maven-${version}
36
37checksums       md5     e251cf1a584b4a5f13ae118abaacd08a \
38                sha1    af0867027f0907631c1f85ecf668f74c08f5d5e9 \
39                sha256  59088c62c14b996d597bbd55e720866b0e13e36daed8a46a81c01058ee74bd54
40
41depends_run     port:maven_select
42
43use_configure     no
44# hmm? 
45universal_variant no
46
47select.group    maven
48select.file     ${filespath}/${name}
49
50# Source builds of maven are not possible. So, the default build is a binary
51# install of the jars.
52build {
53}
54
55destroot {
56    set mavendir ${destroot}${prefix}/share/java/${name}
57
58    # Create the target java directory exists
59    xinstall -m 755 -d ${mavendir}
60
61    # Copy over the needed elements of our directory tree
62    file copy \
63        ${worksrcpath}/bin \
64        ${worksrcpath}/boot \
65        ${worksrcpath}/conf \
66        ${worksrcpath}/lib \
67        ${mavendir}
68
69    # Remove extraneous bat files
70    foreach f [glob -directory ${mavendir}/bin *.bat] {
71        file delete $f
72    }
73
74    # Fix permissions on shell scripts
75    foreach f { maven install_repo.sh } {
76        if [file exists ${mavendir}/bin/$f] {
77            file attributes ${mavendir}/bin/$f -permissions +x
78        }
79    }
80
81    # Reduce the permissions on the distribution files.
82    file attributes ${mavendir}/conf -permissions 0755
83    file attributes ${mavendir}/conf/settings.xml -permissions 0644
84    foreach f [glob -directory ${mavendir}/boot *.jar] {
85        file attributes $f -permissions 0644
86    }
87    foreach f [glob -directory ${mavendir}/lib *.jar] {
88        file attributes $f -permissions 0644
89    }
90
91    # Symlink maven into the bin directory
92    system "cd ${destroot}${prefix}/bin && ln -s ../share/java/${name}/bin/mvn mvn3"
93}
94
95notes \
96"To make maven $version the default, please run
97\tsudo port select --set ${select.group} $name"
98
99livecheck.type  regex
100livecheck.url   ${homepage}download.html
101livecheck.regex apache-maven-(3\\.\[0-9.\]+)-bin\\.tar
Note: See TracBrowser for help on using the repository browser.