source: trunk/dports/lang/rhino/Portfile

Last change on this file was 95899, checked in by jmr@…, 5 years ago

correct license formatting

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 95899 2012-07-26 10:56:29Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                rhino
7version             1.7R2
8revision            1
9license             MPL-1.1 GPL-2
10categories          lang java devel
11platforms           darwin freebsd openbsd
12homepage            http://www.mozilla.org/rhino/
13supported_archs     noarch
14
15maintainers         ouarz.net:franck.cassedanne
16description         Mozilla JavaScript engine for Java
17
18long_description    Rhino is an open-source implementation of JavaScript \
19                    written entirely in Java. It is typically embedded into \
20                    Java applications to provide scripting to end users.
21
22master_sites        http://ftp.mozilla.org/pub/mozilla.org/js/ \
23                    http://ftp.mozilla.org/pub/mozilla.org/js/older-packages/
24
25distname            ${name}[string map {. _} $version]
26use_zip             yes
27
28depends_lib         bin:java:kaffe
29
30use_configure       no
31
32build               {}
33
34checksums           md5     40d0a9abec8169e42920214b37fa8e0e \
35                    sha1    3bb380cfb7f6febb87a64b2dee7fa308042f37e4 \
36                    rmd160  58ae321829ac701e442bfbfed3d6f87b2bb6ba4c
37
38livecheck.type      regex
39livecheck.url       http://www.mozilla.org/rhino/download.html
40livecheck.regex     {Rhino (\d+\.\d+(:?\D+\d))}
41
42test.run            yes
43test.cmd            java
44test.target         -jar js.jar
45
46destroot {
47    set javadir ${destroot}${prefix}/share/java/${name}
48    set docdir ${destroot}${prefix}/share/doc/${name}
49    set examplesdir ${destroot}${prefix}/share/examples/${name}
50
51    xinstall -m 755 -d ${javadir} ${docdir} ${examplesdir}
52    xinstall -m 644 -W ${worksrcpath} js.jar js-14.jar ${javadir}
53
54    xinstall -m 755 ${filespath}/${name} ${destroot}${prefix}/bin/${name}
55    reinplace "s|__PREFIX__|${prefix}|" ${destroot}${prefix}/bin/${name}
56
57    copy ${worksrcpath}/javadoc ${docdir}
58    copy ${worksrcpath}/examples ${examplesdir}
59}
Note: See TracBrowser for help on using the repository browser.