# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $ PortSystem 1.0 name aspectj version 1.6.2 categories java lang devel platforms darwin maintainers mww 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/ \ http://sunsite.informatik.rwth-aachen.de:3080/eclipse/tools/aspectj/ \ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/eclipse/tools/aspectj/ checksums sha1 5312911e7db01c78f74dbb2b9d7820c55bfd095f 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.type regex livecheck.url ${homepage}/downloads.php livecheck.regex aspectj-(\[0-9\\.\]+)\\.jar