[83997] trunk/dports/java

jmr at macports.org jmr at macports.org
Wed Sep 14 13:16:46 PDT 2011


Revision: 83997
          http://trac.macports.org/changeset/83997
Author:   jmr at macports.org
Date:     2011-09-14 13:16:44 -0700 (Wed, 14 Sep 2011)
Log Message:
-----------
maven: rename to maven1 and update to 1.1 (#26822, #26832)

Modified Paths:
--------------
    trunk/dports/java/maven/Portfile
    trunk/dports/java/maven1/Portfile

Added Paths:
-----------
    trunk/dports/java/maven1/

Removed Paths:
-------------
    trunk/dports/java/maven/files/
    trunk/dports/java/maven1/files/

Modified: trunk/dports/java/maven/Portfile
===================================================================
--- trunk/dports/java/maven/Portfile	2011-09-14 19:50:42 UTC (rev 83996)
+++ trunk/dports/java/maven/Portfile	2011-09-14 20:16:44 UTC (rev 83997)
@@ -4,78 +4,26 @@
 PortSystem 1.0
 
 name                maven
+replaced_by         maven1
 version             1.0.2
+revision            1
 
 categories          java devel
-maintainers         yahoo.com:jendave
+maintainers         nomaintainer
 platforms           darwin
 
-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.
+description         stub port, use maven1 instead
+long_description    ${description}
 
 homepage            http://maven.apache.org/
 
-master_sites        apache:maven/binaries
-checksums           md5 81a6b4393e550635efe19e95cea38718
-
-depends_build       bin:java:kaffe \
-                    bin:ant:apache-ant
-
-patchfiles          patch-maven
-
+distfiles
+archive_sites
 use_configure       no
-use_bzip2           yes
 
-# Source builds of maven are not possible, except using the cvs head as in the
-# devel variant below, because there is no available source archive or correctly
-# tagged source for the project. So the default build is a binary install of the
-# jars.
-build.cmd           true
-
-destroot {
-    # Create the target java directory exists
-    xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}
-
-    # Copy over the needed elements of our directory tree
-    file copy \
-        ${worksrcpath}/bin \
-        ${worksrcpath}/lib \
-        ${worksrcpath}/plugins \
-        ${worksrcpath}/maven-navigation-1.0.xsd \
-        ${destroot}${prefix}/share/java/${name}
-
-    # Remove extraneous bat files
-    foreach f [glob -directory ${destroot}${prefix}/share/java/${name}/bin *.bat] {
-        file delete $f
-    }
-
-    # Fix permissions on shell scripts
-    foreach f { maven install_repo.sh } {
-        if [file exists ${destroot}${prefix}/share/java/${name}/bin/$f] {
-            file attributes ${destroot}${prefix}/share/java/${name}/bin/$f -permissions +x
-        }
-    }
-
-    # Symlink maven into the bin directory
-    system "cd ${destroot}${prefix}/bin && ln -s ../share/java/${name}/bin/${name}"
+pre-configure {
+    ui_error "$name is a stub, use $replaced_by instead."
+    return -code error "obsolete port"
 }
 
-# The devel variant builds from source using cvs head
-variant devel {
-    worksrcdir      ${name}
-
-    fetch.type      cvs
-    cvs.root        :pserver:anoncvs at cvs.apache.org:/home/cvspublic
-    cvs.module      maven maven-plugins
-
-    build.env       MAVEN_HOME=${worksrcpath}
-    build.cmd       ant
-    build.pre_args  -f build-bootstrap.xml
-}
-
-livecheck.type  regex
-livecheck.regex {Get Maven (\d+(?:\.\d+)*)}
+livecheck.type  none

Modified: trunk/dports/java/maven1/Portfile
===================================================================
--- trunk/dports/java/maven/Portfile	2011-09-14 17:55:07 UTC (rev 83994)
+++ trunk/dports/java/maven1/Portfile	2011-09-14 20:16:44 UTC (rev 83997)
@@ -3,8 +3,8 @@
 
 PortSystem 1.0
 
-name                maven
-version             1.0.2
+name                maven1
+version             1.1
 
 categories          java devel
 maintainers         yahoo.com:jendave
@@ -20,61 +20,55 @@
 homepage            http://maven.apache.org/
 
 master_sites        apache:maven/binaries
-checksums           md5 81a6b4393e550635efe19e95cea38718
+distname            maven-${version}
+checksums           md5    ec2b0ad8c78ba52497f63ee7f613b526 \
+                    sha1   d9174675f0e846a225278949869fa2d979fa7f3b \
+                    rmd160 82ef869218ac42d9132fc74316f0e8a5edcf9431
 
 depends_build       bin:java:kaffe \
                     bin:ant:apache-ant
 
-patchfiles          patch-maven
-
 use_configure       no
-use_bzip2           yes
 
-# Source builds of maven are not possible, except using the cvs head as in the
-# devel variant below, because there is no available source archive or correctly
-# tagged source for the project. So the default build is a binary install of the
-# jars.
+# Source builds of maven are not possible. So, the default build is a binary
+# install of the jars.
 build.cmd           true
 
 destroot {
+    set mavendir ${destroot}${prefix}/share/java/${name}
     # Create the target java directory exists
-    xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}
+    xinstall -m 755 -d ${mavendir}
 
     # Copy over the needed elements of our directory tree
     file copy \
         ${worksrcpath}/bin \
         ${worksrcpath}/lib \
         ${worksrcpath}/plugins \
-        ${worksrcpath}/maven-navigation-1.0.xsd \
-        ${destroot}${prefix}/share/java/${name}
+        ${worksrcpath}/maven-project-3.xsd \
+        ${mavendir}
 
     # Remove extraneous bat files
-    foreach f [glob -directory ${destroot}${prefix}/share/java/${name}/bin *.bat] {
+    foreach f [glob -directory ${mavendir}/bin *.bat] {
         file delete $f
     }
 
     # Fix permissions on shell scripts
     foreach f { maven install_repo.sh } {
-        if [file exists ${destroot}${prefix}/share/java/${name}/bin/$f] {
-            file attributes ${destroot}${prefix}/share/java/${name}/bin/$f -permissions +x
+        if [file exists ${mavendir}/bin/$f] {
+            file attributes ${mavendir}/bin/$f -permissions +x
         }
     }
 
-    # Symlink maven into the bin directory
-    system "cd ${destroot}${prefix}/bin && ln -s ../share/java/${name}/bin/${name}"
-}
+    # Reduce the permissions on the distribution files.
+    foreach f [glob -directory ${mavendir}/lib *.jar] {
+        file attributes $f -permissions 0644
+    }
 
-# The devel variant builds from source using cvs head
-variant devel {
-    worksrcdir      ${name}
+    # Symlink maven executable to mvn in maven1 directory
+    system "cd ${mavendir}/bin && ln -s maven mvn"
 
-    fetch.type      cvs
-    cvs.root        :pserver:anoncvs at cvs.apache.org:/home/cvspublic
-    cvs.module      maven maven-plugins
-
-    build.env       MAVEN_HOME=${worksrcpath}
-    build.cmd       ant
-    build.pre_args  -f build-bootstrap.xml
+    # Symlink maven into the bin directory
+    system "cd ${destroot}${prefix}/bin && ln -s ../share/java/${name}/bin/mvn mvn1"
 }
 
 livecheck.type  regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110914/cf2821ba/attachment.html>


More information about the macports-changes mailing list