source: trunk/dports/java/jgoodies-forms/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-forms
5version                 1.6.0
6categories              java
7platforms               darwin
8maintainers             blair
9
10description             Framework to lay out and implement Swing panels.
11long_description        The JGoodies Forms framework helps you lay out and \
12                        implement elegant Swing panels quickly and \
13                        consistently.  It makes simple things easy and the \
14                        hard stuff possible, the good design easy and the \
15                        bad difficult.
16homepage                http://www.jgoodies.com/freeware/forms/
17
18master_sites            http://www.jgoodies.com/download/libraries/forms/
19distname                ${name}-1_6_0
20checksums               sha1 a78396323a1866d5eeb48bcf3b22a3d8696a8f30 \
21                        sha256 5d38b462de4cee37d00a3fa656247bb530dc9c2d83068827e0c1d258933a1b29
22use_zip                 yes
23
24depends_lib             bin:java:kaffe \
25                        port:jgoodies-common
26
27use_configure           no
28
29worksrcdir              ${name}-${version}
30
31if {${os.platform} eq "darwin" && ${os.major} < 10} {
32    pre-fetch {
33        ui_error "${name} ${version} requires OS X 10.6 or greater for Java 6."
34        return -code error "incompatible OS X version"
35    }
36}
37
38build.cmd               true
39
40destroot {
41        set javadir ${destroot}${prefix}/share/java
42        set docdir ${destroot}${prefix}/share/doc/${name}
43
44        xinstall -d -m 755 ${javadir}
45        xinstall -d -m 755 ${docdir}
46
47        file copy ${worksrcpath}/${name}-${version}.jar ${javadir}/${name}.jar
48        foreach f {LICENSE.txt README.html RELEASE-NOTES.txt docs} {
49                file copy ${worksrcpath}/${f} ${docdir}/
50        }
51}
Note: See TracBrowser for help on using the repository browser.