#25656: New port: maven3 ---------------------------------------+------------------------------------ Reporter: lists@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: ---------------------------------------+------------------------------------ Comment(by lists@…): The attached maven3 Portfile is based upon the maven2 Portfile. The contents are: {{{ # -*- 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$ PortSystem 1.0 name maven3 version 3.0-beta-1 categories java devel maintainers jon.buffington.name:me platforms darwin description A java-based build and project management environment. long_description Maven is a software project management and comprehension tool. Based on \ the concept of a Project Object Model (POM), Maven can manage a project's \ build, reporting and documentation from a central piece of information. homepage http://maven.apache.org/ master_sites apache:maven/binaries distname apache-maven-${version}-bin worksrcdir apache-maven-${version} checksums md5 82d43745cf2f2d1d939f1139a09d6654 \ sha1 639ada216287e1f2689e5e142f1e21aa7560d3d2 \ rmd160 0d8e9576a9b330bd759ec741b05011ad0f48ff5a depends_build bin:java:kaffe use_configure no universal_variant no build {} destroot { # Verify the target directory exists. xinstall -m 755 -d ${destroot}${prefix}/share/java/${name} # Copy the needed elements of the directory tree. file copy \ ${worksrcpath}/bin \ ${worksrcpath}/boot \ ${worksrcpath}/conf \ ${worksrcpath}/lib \ ${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 } } # Reduce the permissions on the conf directory and settings.xml file. file attributes ${destroot}${prefix}/share/java/${name}/conf -permissions 0755 file attributes ${destroot}${prefix}/share/java/${name}/conf/settings.xml -permissions 0644 # Symlink maven into the bin directory system "cd ${destroot}${prefix}/bin && ln -s ${prefix}/share/java/${name}/bin/mvn" } livecheck.type regex livecheck.url ${homepage}download.html livecheck.regex apache-maven-(\[0-9.\]+)-bin\\.tar }}} -- Ticket URL: <http://trac.macports.org/ticket/25656#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS