[38128] trunk/dports/java/spring-framework/Portfile

blair at macports.org blair at macports.org
Mon Jul 7 10:19:39 PDT 2008


Revision: 38128
          http://trac.macosforge.org/projects/macports/changeset/38128
Author:   blair at macports.org
Date:     2008-07-07 10:19:37 -0700 (Mon, 07 Jul 2008)
Log Message:
-----------
Push the jar files from the dist/ directory in the tarball down into a
new dist directory which gives space for a new lib/ directory from the
tarball.  Add a new with_libs variant which installs the libraries
used to run the sample applications.

Modified Paths:
--------------
    trunk/dports/java/spring-framework/Portfile

Modified: trunk/dports/java/spring-framework/Portfile
===================================================================
--- trunk/dports/java/spring-framework/Portfile	2008-07-07 16:16:03 UTC (rev 38127)
+++ trunk/dports/java/spring-framework/Portfile	2008-07-07 17:19:37 UTC (rev 38128)
@@ -4,6 +4,7 @@
 
 name			spring-framework
 version			2.5.5
+revision		1
 
 categories		java
 maintainers		jberry openmaintainer
@@ -31,16 +32,16 @@
 
 destroot {
 	# Ensure needed directories
-	xinstall -m 755 -d ${destroot}${prefix}/share/java \
+	xinstall -m 755 -d ${destroot}${prefix}/share/java/${name} \
 		${destroot}${prefix}/share/doc \
 		${destroot}${prefix}/share/examples
 
 	# Install the framework
 	file copy ${worksrcpath}/dist \
-		${destroot}${prefix}/share/java/${name}
+		${destroot}${prefix}/share/java/${name}/dist
 
 	# Add symlinks to jars
-	foreach f [glob -tails -directory ${destroot}${prefix}/share/java ${name}/*.jar] {
+	foreach f [glob -tails -directory ${destroot}${prefix}/share/java ${name}/dist/*.jar] {
 		system "cd ${destroot}${prefix}/share/java && ln -s ${f}"
 	}
 
@@ -53,6 +54,13 @@
 		${destroot}${prefix}/share/examples/${name}
 }
 
+variant with_libs description {Install libraries used for sample applications} {
+	post-destroot {
+		file copy ${worksrcpath}/lib \
+			${destroot}${prefix}/share/java/${name}/lib
+	}
+}
+
 livecheck.check		sourceforge
 livecheck.name		springframework
 livecheck.distname	springframework-2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080707/a4fbce84/attachment-0001.html 


More information about the macports-changes mailing list