source: trunk/dports/java/zeroc-ice33-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.1 KB
Line 
1# $Id: Portfile 100528 2012-12-14 20:57:13Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            zeroc-ice33-java
6version         3.3.1
7revision        1
8set branch      [join [lrange [split ${version} .] 0 1] .]
9categories      java devel
10maintainers     blair
11conflicts       zeroc-ice34-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-ice33
36distname        Ice-${version}
37checksums       md5 1f37dfcec4662fcde030553fb447d064 \
38                sha1 08d0f32bdb7d909b4a531d45cccfa97bdde649aa \
39                rmd160 d64d52c35640cebe1145e62f57618473d17cbeb5
40platforms       darwin
41
42depends_lib     port:db46-java \
43                port:zeroc-ice33
44depends_build   port:apache-ant \
45                port:jgoodies-forms \
46                port:jgoodies-looks \
47                port:proguard
48
49use_configure   no
50
51set classpath ${prefix}/lib/db46/db.jar:${prefix}/share/java/jgoodies-forms.jar:${prefix}/share/java/jgoodies-looks.jar:${prefix}/share/java/proguard.jar
52
53build.dir       ${worksrcpath}/java
54build.env       JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home CLASSPATH=${classpath} ICE_HOME=${prefix}
55build.cmd       ant
56build.target    clean all
57
58test.run        yes
59test.env        JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home CLASSPATH=${classpath} ICE_HOME=${prefix} DYLD_LIBRARY_PATH=${prefix}/lib/db46
60test.cmd        python
61test.target     allTests.py
62
63destroot {
64    set javadir ${destroot}${prefix}/share/java
65    set docdir ${destroot}${prefix}/share/doc/${name}
66
67    xinstall -d -m 755 ${javadir}
68    xinstall -d -m 755 ${docdir}
69
70    foreach f {ant-ice.jar Ice.jar IceGridGUI.jar} {
71        file copy ${build.dir}/lib/${f} ${javadir}/
72    }
73    file copy ${build.dir}/resources/IceGridAdmin ${docdir}/
74
75    foreach f {CHANGES ICE_LICENSE LICENSE RELEASE_NOTES} {
76        file copy ${worksrcpath}/${f} ${docdir}
77    }
78    file copy ${build.dir}/INSTALL ${docdir}
79
80    if {[variant_isset demo_source_code]} {
81        file copy ${build.dir}/demo ${docdir}/
82    }
83}
84
85variant demo_source_code description {Install demonstration Java code} {
86}
Note: See TracBrowser for help on using the repository browser.