source: trunk/dports/java/zeroc-ice34-java/Portfile

Last change on this file was 100528, checked in by blair@…, 5 years ago

zeroc-ice35-java: new port for Ice 3.5b; based off zeroc-ice34-java.

The unit test fails on my Mac, maybe because I have Oracle's JDK
installed. Committing this anyway the build compiles.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
1# $Id: Portfile 100528 2012-12-14 20:57:13Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            zeroc-ice34-java
6version         3.4.2
7revision        1
8set branch      [join [lrange [split ${version} .] 0 1] .]
9categories      java devel
10maintainers     blair
11conflicts       zeroc-ice33-java zeroc-ice35-java
12license         GPL-2
13description     Fast, object-oriented RPC for C++, Java, Python, Ruby, PHP
14
15long_description \
16    The Internet Communications Engine (Ice) is a modern alternative to \
17    object middleware such as CORBA or COM/DCOM/COM+, with support for \
18    C++, C#, Java, PHP, Python, Ruby and Visual Basic. \
19    Ice consists of the following packages. \
20    Slice: The Specification Language for Ice.  Slice establishes a \
21    contract between clients and servers, and is also used to describe \
22    persistent data. \
23    Slice Compilers: Slice specifications are compiled into various \
24    programming languages. Ice supports C++, Java, C#, Visual Basic, PHP, \
25    Python and Ruby.  Ice clients and servers work together, regardless \
26    of the programming language. \
27    Ice: The Ice core library manages all the communication tasks using a \
28    highly efficient protocol (including protocol compression and support \
29    for both TCP and UDP), provides a flexible thread pool for \
30    multi-threaded servers. \
31    This Port provides the Java runtime and bindings.
32
33homepage        http://www.zeroc.com/
34master_sites    ${homepage}download/Ice/${branch}/
35dist_subdir     zeroc-ice34
36distname        Ice-${version}
37checksums       md5 e97672eb4a63c6b8dd202d0773e19dc7 \
38                sha1 8c84d6e3b227f583d05e08251e07047e6c3a6b42 \
39                rmd160 7ce680a4eb5fa9d0bb6f8b8910e267dfc2373d75
40platforms       darwin
41
42depends_lib     port:db46-java \
43                port:zeroc-ice34
44depends_build   port:apache-ant \
45                port:jgoodies-common \
46                port:jgoodies-forms \
47                port:jgoodies-looks \
48                port:proguard
49
50use_configure   no
51
52set classpath ${prefix}/lib/db46/db.jar:${prefix}/share/java/jgoodies-common.jar:${prefix}/share/java/jgoodies-forms.jar:${prefix}/share/java/jgoodies-looks.jar:${prefix}/share/java/proguard.jar
53
54build.dir       ${worksrcpath}/java
55build.env       JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home CLASSPATH=${classpath} ANT_OPTS=-Xmx512m ICE_HOME=${prefix}
56build.cmd       ant
57build.target    clean all
58
59test.run        yes
60test.env        JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home CLASSPATH=${classpath} ANT_OPTS=-Xmx512m ICE_HOME=${prefix} DYLD_LIBRARY_PATH=${prefix}/lib/db46 USE_BIN_DIST=yes
61test.cmd        python
62test.target     allTests.py
63
64destroot {
65    set javadir ${destroot}${prefix}/share/java
66    set docdir ${destroot}${prefix}/share/doc/${name}
67
68    xinstall -d -m 755 ${javadir}
69    xinstall -d -m 755 ${docdir}
70
71    foreach f {ant-ice.jar Ice.jar IceGridGUI.jar} {
72        file copy ${build.dir}/lib/${f} ${javadir}/
73    }
74    file copy ${build.dir}/resources/IceGridAdmin ${docdir}/
75
76    foreach f {CHANGES ICE_LICENSE LICENSE RELEASE_NOTES} {
77        file copy ${worksrcpath}/${f} ${docdir}
78    }
79    file copy ${build.dir}/INSTALL ${docdir}
80
81    if {[variant_isset demo_source_code]} {
82        file copy ${build.dir}/demo ${docdir}/
83    }
84}
85
86variant demo_source_code description {Install demonstration Java code} {
87}
Note: See TracBrowser for help on using the repository browser.