[22787] trunk/dports/java

source_changes at macosforge.org source_changes at macosforge.org
Wed Mar 14 04:27:53 PDT 2007


Revision: 22787
          http://trac.macosforge.org/projects/macports/changeset/22787
Author:   mww at macports.org
Date:     2007-03-14 04:27:52 -0700 (Wed, 14 Mar 2007)

Log Message:
-----------
new port aspectj

Added Paths:
-----------
    trunk/dports/java/aspectj/
    trunk/dports/java/aspectj/Portfile
    trunk/dports/java/aspectj/files/
    trunk/dports/java/aspectj/files/ajc.sh

Added: trunk/dports/java/aspectj/Portfile
===================================================================
--- trunk/dports/java/aspectj/Portfile	                        (rev 0)
+++ trunk/dports/java/aspectj/Portfile	2007-03-14 11:27:52 UTC (rev 22787)
@@ -0,0 +1,46 @@
+# $Id: $
+
+PortSystem 1.0
+
+name			aspectj
+version			1.5.3
+categories		java lang devel
+platforms		darwin
+maintainers		mww at macports.org
+description		seamless aspect-oriented extension to the Java language
+long_description	${description}
+
+homepage		http://www.eclipse.org/aspectj/
+master_sites	http://download.eclipse.org/tools/aspectj/ \
+				http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse/tools/aspectj/
+checksums		sha1 8b7cf4aad583c93de59e0ec41f74620b681926fe
+use_zip			yes
+extract.suffix	.jar
+
+pre-extract {
+	file mkdir ${worksrcpath}
+	file copy ${filespath}/ajc.sh ${worksrcpath}
+}
+extract.dir		${worksrcpath}
+
+configure {
+	reinplace "s|__LIBDIR__|${prefix}/share/java|g" ${worksrcpath}/ajc.sh
+}
+
+build			{}
+
+destroot {
+	xinstall -m 755 -d ${destroot}${prefix}/share/java \
+		${destroot}${prefix}/share/doc
+	file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
+	xinstall -m 644 -W ${worksrcpath} README-AspectJ.html LICENSE-AspectJ.html \
+		${destroot}${prefix}/share/doc/${name}
+	xinstall -m 644 -W ${worksrcpath}/lib aspectjlib.jar aspectjrt.jar \
+		aspectjtools.jar aspectjweaver.jar ${destroot}${prefix}/share/java
+	xinstall -m 755 ${worksrcpath}/ajc.sh ${destroot}${prefix}/bin/ajc
+}
+
+livecheck.check	regex
+livecheck.url	${homepage}/downloads.php
+livecheck.regex	aspectj-(\[0-9\\.\]+)\\.jar
+

Added: trunk/dports/java/aspectj/files/ajc.sh
===================================================================
--- trunk/dports/java/aspectj/files/ajc.sh	                        (rev 0)
+++ trunk/dports/java/aspectj/files/ajc.sh	2007-03-14 11:27:52 UTC (rev 22787)
@@ -0,0 +1,3 @@
+#!/bin/sh
+java -classpath __LIBDIR__/aspectjtools.jar:__LIBDIR__/aspectjrt.jar -Xmx64M org.aspectj.tools.ajc.Main "$@"
+

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070314/21acc8bb/attachment.html


More information about the macports-changes mailing list