source: trunk/dports/java/jgoodies-looks/Portfile

Last change on this file was 114325, checked in by ryandesign@…, 4 years ago

use eq and ne instead of == and != when comparing ${os.platform} and ${os.subplatform}

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 114325 2013-12-05 09:20:31Z ryandesign@macports.org $
2
3PortSystem 1.0
4name                    jgoodies-looks
5version                 2.5.2
6categories              java
7platforms               darwin
8maintainers             blair
9
10description             High-fidelity Windows and multi-platform appearance.
11long_description        The JGoodies look and feels make your Swing \
12                        applications and applets look better.  They have been \
13                        optimized for readability, precise micro-design and \
14                        usability.
15homepage                http://www.jgoodies.com/freeware/looks/
16
17master_sites            http://www.jgoodies.com/download/libraries/looks/
18distname                ${name}-2_5_2
19checksums               sha1 3c18092020e78989c054fac4870046eff8f29c73 \
20                        sha256 edd0670c972715c0951094bdeac88047c8836097aea1e78c720d2fe78e8dbbbd
21use_zip                 yes
22
23depends_lib             bin:java:kaffe \
24                        port:jgoodies-common
25
26use_configure           no
27
28worksrcdir              ${name}-${version}
29
30if {${os.platform} eq "darwin" && ${os.major} < 10} {
31    pre-fetch {
32        ui_error "${name} ${version} requires OS X 10.6 or greater for Java 6."
33        return -code error "incompatible OS X version"
34    }
35}
36
37build.cmd               true
38
39destroot {
40        set javadir ${destroot}${prefix}/share/java
41        set docdir ${destroot}${prefix}/share/doc/${name}
42
43        xinstall -d -m 755 ${javadir}
44        xinstall -d -m 755 ${docdir}
45
46        file copy ${worksrcpath}/${name}-${version}.jar ${javadir}/${name}.jar
47        foreach f {LICENSE.txt README.html RELEASE-NOTES.txt docs} {
48                file copy ${worksrcpath}/${f} ${docdir}/
49        }
50}
Note: See TracBrowser for help on using the repository browser.