a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 22970 2007-03-20 22:55:33Z eridius@macports.org $
PortSystem 1.0
name aspectj
version 1.5.3
categories java lang devel
platforms darwin
maintainers mww@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