source: trunk/dports/java/jgoodies-common/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.5 KB
Line 
1# $Id: Portfile 114325 2013-12-05 09:20:31Z ryandesign@macports.org $
2
3PortSystem 1.0
4name                    jgoodies-common
5version                 1.4.0
6categories              java
7platforms               darwin
8maintainers             blair
9
10description             Helper classes for other jgoodies-* packages
11long_description        The JGoodies Common library provides convenience \
12                        code for other JGoodies libraries and applications.
13homepage                http://www.jgoodies.com/downloads/libraries.html
14
15master_sites            http://www.jgoodies.com/download/libraries/common/
16distname                ${name}-1_4_0
17checksums               sha1 f3e8f55997a6ac9c1130590e7a23125f0dbc8d77 \
18                        sha256 3653468448825fb47c926c0729b49bfa693fe9d64b518b5f608a1c2e594c5569
19use_zip                 yes
20
21depends_lib             bin:java:kaffe
22
23use_configure           no
24
25worksrcdir              ${name}-${version}
26
27if {${os.platform} eq "darwin" && ${os.major} < 10} {
28    pre-fetch {
29        ui_error "${name} ${version} requires OS X 10.6 or greater for Java 6."
30        return -code error "incompatible OS X version"
31    }
32}
33
34build.cmd               true
35
36destroot {
37        set javadir ${destroot}${prefix}/share/java
38        set docdir ${destroot}${prefix}/share/doc/${name}
39
40        xinstall -d -m 755 ${javadir}
41        xinstall -d -m 755 ${docdir}
42
43        file copy ${worksrcpath}/${name}-${version}.jar ${javadir}/${name}.jar
44        foreach f {LICENSE.txt README.html RELEASE-NOTES.txt docs} {
45                file copy ${worksrcpath}/${f} ${docdir}/
46        }
47}
Note: See TracBrowser for help on using the repository browser.