[72309] trunk/dports/java/maven2/Portfile
blair at macports.org
blair at macports.org
Sun Oct 10 07:26:01 PDT 2010
Revision: 72309
http://trac.macports.org/changeset/72309
Author: blair at macports.org
Date: 2010-10-10 07:25:58 -0700 (Sun, 10 Oct 2010)
Log Message:
-----------
Set and use ${mavendir} to make the port shorter and easier to read.
Modified Paths:
--------------
trunk/dports/java/maven2/Portfile
Modified: trunk/dports/java/maven2/Portfile
===================================================================
--- trunk/dports/java/maven2/Portfile 2010-10-10 14:21:09 UTC (rev 72308)
+++ trunk/dports/java/maven2/Portfile 2010-10-10 14:25:58 UTC (rev 72309)
@@ -44,8 +44,10 @@
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 \
@@ -53,24 +55,24 @@
${worksrcpath}/boot \
${worksrcpath}/conf \
${worksrcpath}/lib \
- ${destroot}${prefix}/share/java/${name}
+ ${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
}
}
# Reduce the permissions on the distribution files.
- file attributes ${destroot}${prefix}/share/java/${name}/conf -permissions 0755
- file attributes ${destroot}${prefix}/share/java/${name}/conf/settings.xml -permissions 0644
- foreach f [glob -directory ${destroot}${prefix}/share/java/${name}/lib *.jar] {
+ file attributes ${mavendir}/conf -permissions 0755
+ file attributes ${mavendir}/conf/settings.xml -permissions 0644
+ foreach f [glob -directory ${mavendir}/lib *.jar] {
file attributes $f -permissions 0644
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101010/2cf456e2/attachment.html>
More information about the macports-changes
mailing list