source: trunk/dports/java/aspectj/Portfile

Last change on this file was 57375, checked in by ryandesign@…, 8 years ago

Change deprecated livecheck.check to livecheck.type
See http://lists.macosforge.org/pipermail/macports-dev/2009-August/009699.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    aspectj
6version                 1.6.2
7categories              java lang devel
8platforms               darwin
9maintainers             mww
10description             seamless aspect-oriented extension to the Java language
11long_description        ${description}
12
13homepage                http://www.eclipse.org/aspectj/
14master_sites    http://download.eclipse.org/tools/aspectj/ \
15                                http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse/tools/aspectj/ \
16                                http://sunsite.informatik.rwth-aachen.de:3080/eclipse/tools/aspectj/ \
17                                ftp://ftp.wh2.tu-dresden.de/pub/mirrors/eclipse/tools/aspectj/
18checksums               sha1 5312911e7db01c78f74dbb2b9d7820c55bfd095f
19use_zip                 yes
20extract.suffix  .jar
21
22pre-extract {
23        file mkdir ${worksrcpath}
24        file copy ${filespath}/ajc.sh ${worksrcpath}
25}
26extract.dir             ${worksrcpath}
27
28configure {
29        reinplace "s|__LIBDIR__|${prefix}/share/java|g" ${worksrcpath}/ajc.sh
30}
31
32build                   {}
33
34destroot {
35        xinstall -m 755 -d ${destroot}${prefix}/share/java \
36                ${destroot}${prefix}/share/doc
37        file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
38        xinstall -m 644 -W ${worksrcpath} README-AspectJ.html LICENSE-AspectJ.html \
39                ${destroot}${prefix}/share/doc/${name}
40        xinstall -m 644 -W ${worksrcpath}/lib aspectjlib.jar aspectjrt.jar \
41                aspectjtools.jar aspectjweaver.jar ${destroot}${prefix}/share/java
42        xinstall -m 755 ${worksrcpath}/ajc.sh ${destroot}${prefix}/bin/ajc
43}
44
45livecheck.type  regex
46livecheck.url   ${homepage}/downloads.php
47livecheck.regex aspectj-(\[0-9\\.\]+)\\.jar
48
Note: See TracBrowser for help on using the repository browser.