source: trunk/dports/java/zeroc-ice35-java/Portfile @ 100528

Last change on this file since 100528 was 100528, checked in by blair@…, 8 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 blair@macports.org $
2
3PortSystem 1.0
4
5name            zeroc-ice35-java
6set real_version 3.5b
7version         0.0.${real_version}
8#set branch      [join [lrange [split ${real_version} .] 0 1] .]
9set branch      3.5
10categories      java devel
11maintainers     blair
12conflicts       zeroc-ice33-java zeroc-ice34-java
13license         GPL-2
14description     Fast, object-oriented RPC for C++, Java, Python, Ruby, PHP
15
16long_description \
17    The Internet Communications Engine (Ice) is a modern alternative to \
18    object middleware such as CORBA or COM/DCOM/COM+, with support for \
19    C++, C#, Java, PHP, Python, Ruby and Visual Basic. \
20    Ice consists of the following packages. \
21    Slice: The Specification Language for Ice.  Slice establishes a \
22    contract between clients and servers, and is also used to describe \
23    persistent data. \
24    Slice Compilers: Slice specifications are compiled into various \
25    programming languages. Ice supports C++, Java, C#, Visual Basic, PHP, \
26    Python and Ruby.  Ice clients and servers work together, regardless \
27    of the programming language. \
28    Ice: The Ice core library manages all the communication tasks using a \
29    highly efficient protocol (including protocol compression and support \
30    for both TCP and UDP), provides a flexible thread pool for \
31    multi-threaded servers. \
32    This Port provides the Java runtime and bindings.
33
34homepage        http://www.zeroc.com/
35master_sites    ${homepage}download/Ice/${branch}/
36dist_subdir     zeroc-ice35
37distname        Ice-${real_version}
38checksums       sha1 1c40ca1152055ed824cec01bb4e25d7733812854 \
39                sha256 223e48213b1a5f087c760a2937d54d2878d78dc0b50cc506806ade57609fb083
40platforms       darwin
41
42depends_lib     port:db46-java \
43                port:zeroc-ice35
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.