Skip to content
Browse files

New port maven2 by Greg Kick.

git-svn-id: d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
jdberry committed Mar 26, 2006
1 parent 0f98fac commit bf16dcb627121d322be33799e91740dd9e302f36
Showing with 61 additions and 0 deletions.
  1. +61 −0 java/maven2/Portfile
@@ -0,0 +1,61 @@
PortSystem 1.0

name maven2
version 2.0.2

categories java devel
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. \
Maven 2.0 is a complete rewrite of Maven 1.0 and as such is better organized, \
faster and easier to use.

master_sites apache:maven/binaries
distname maven-2.0.2
distfiles maven-2.0.2-bin.tar.bz2
checksums md5 e0d730b4f1056e2f9cbac3c9fe3a3c0d

depends_build bin:java:kaffe

use_configure no
use_bzip2 yes

# Source builds of maven are not possible. 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}/core \
${worksrcpath}/conf \

# 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 } {
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 ${prefix}/share/java/${name}/bin/mvn"

0 comments on commit bf16dcb

Please sign in to comment.
You can’t perform that action at this time.