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

Last change on this file since 98853 was 98853, checked in by ryandesign@…, 8 years ago

maven1: disable livecheck; change maintainer (#35809)

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