[109465] trunk/dports/java
easieste at macports.org
easieste at macports.org
Thu Aug 15 15:39:45 PDT 2013
Revision: 109465
https://trac.macports.org/changeset/109465
Author: easieste at macports.org
Date: 2013-08-15 15:39:45 -0700 (Thu, 15 Aug 2013)
Log Message:
-----------
maven-devel: track maven-3.1.0.
Maven 3.1.x replaces the Sonatype Aether connector with the new
Apache-engineered one. Should be a good thing over time, but will be
"bumpy" for tools that use Aether to introspect the distributed POM
graph (like lang/abcl).
Added Paths:
-----------
trunk/dports/java/maven-devel/
trunk/dports/java/maven-devel/Portfile
trunk/dports/java/maven-devel/files/
trunk/dports/java/maven-devel/files/maven-devel
trunk/dports/java/maven-devel/files/maven3
Added: trunk/dports/java/maven-devel/Portfile
===================================================================
--- trunk/dports/java/maven-devel/Portfile (rev 0)
+++ trunk/dports/java/maven-devel/Portfile 2013-08-15 22:39:45 UTC (rev 109465)
@@ -0,0 +1,101 @@
+# -*- 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
+# $Id: Portfile 103429 2013-02-25 17:32:16Z blair at macports.org $
+
+PortSystem 1.0
+PortGroup select 1.0
+
+name maven-devel
+version 3.1.0
+
+categories java devel
+license Apache-2
+maintainers easieste openmaintainer
+platforms darwin
+supported_archs noarch
+
+description A java-based build and project management environment.
+long_description \
+ Maven is a Java project management and project \
+ comprehension tool. Maven is based on the \
+ concept of a project object model (POM) in that \
+ all the artifacts produced by Maven are a result \
+ of consulting a well defined model for your \
+ project.Builds, documentation, source metrics, \
+ and source cross-references are all controlled by \
+ your POM. Maven 3 aims to ensure backward \
+ compatibility with Maven 2, improve usability, \
+ increase performance, allow safe embedding, and \
+ pave the way to implement many highly demanded \
+ features.
+
+homepage http://maven.apache.org/
+
+master_sites apache:maven/maven-3/${version}/binaries
+distname apache-maven-${version}-bin
+worksrcdir apache-maven-${version}
+
+checksums md5 e251cf1a584b4a5f13ae118abaacd08a \
+ sha1 af0867027f0907631c1f85ecf668f74c08f5d5e9 \
+ sha256 59088c62c14b996d597bbd55e720866b0e13e36daed8a46a81c01058ee74bd54
+
+depends_run port:maven_select
+
+use_configure no
+# hmm?
+universal_variant no
+
+select.group maven
+select.file ${filespath}/${name}
+
+# Source builds of maven are not possible. So, the default build is a binary
+# install of the jars.
+build {
+}
+
+destroot {
+ set mavendir ${destroot}${prefix}/share/java/${name}
+
+ # Create the target java directory exists
+ xinstall -m 755 -d ${mavendir}
+
+ # Copy over the needed elements of our directory tree
+ file copy \
+ ${worksrcpath}/bin \
+ ${worksrcpath}/boot \
+ ${worksrcpath}/conf \
+ ${worksrcpath}/lib \
+ ${mavendir}
+
+ # Remove extraneous bat files
+ foreach f [glob -directory ${mavendir}/bin *.bat] {
+ file delete $f
+ }
+
+ # Fix permissions on shell scripts
+ foreach f { maven install_repo.sh } {
+ if [file exists ${mavendir}/bin/$f] {
+ file attributes ${mavendir}/bin/$f -permissions +x
+ }
+ }
+
+ # Reduce the permissions on the distribution files.
+ file attributes ${mavendir}/conf -permissions 0755
+ file attributes ${mavendir}/conf/settings.xml -permissions 0644
+ foreach f [glob -directory ${mavendir}/boot *.jar] {
+ file attributes $f -permissions 0644
+ }
+ foreach f [glob -directory ${mavendir}/lib *.jar] {
+ file attributes $f -permissions 0644
+ }
+
+ # Symlink maven into the bin directory
+ system "cd ${destroot}${prefix}/bin && ln -s ../share/java/${name}/bin/mvn mvn3"
+}
+
+notes \
+"To make maven $version the default, please run
+\tsudo port select --set ${select.group} $name"
+
+livecheck.type regex
+livecheck.url ${homepage}download.html
+livecheck.regex apache-maven-(3\\.\[0-9.\]+)-bin\\.tar
Added: trunk/dports/java/maven-devel/files/maven-devel
===================================================================
--- trunk/dports/java/maven-devel/files/maven-devel (rev 0)
+++ trunk/dports/java/maven-devel/files/maven-devel 2013-08-15 22:39:45 UTC (rev 109465)
@@ -0,0 +1 @@
+bin/mvn3
Added: trunk/dports/java/maven-devel/files/maven3
===================================================================
--- trunk/dports/java/maven-devel/files/maven3 (rev 0)
+++ trunk/dports/java/maven-devel/files/maven3 2013-08-15 22:39:45 UTC (rev 109465)
@@ -0,0 +1 @@
+bin/mvn3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130815/f49a3dcd/attachment.html>
More information about the macports-changes
mailing list