# $Id: Portfile 100528 2012-12-14 20:57:13Z blair@macports.org $ PortSystem 1.0 name zeroc-ice34-java version 3.4.2 revision 1 set branch [join [lrange [split ${version} .] 0 1] .] categories java devel maintainers blair conflicts zeroc-ice33-java zeroc-ice35-java license GPL-2 description Fast, object-oriented RPC for C++, Java, Python, Ruby, PHP long_description \ The Internet Communications Engine (Ice) is a modern alternative to \ object middleware such as CORBA or COM/DCOM/COM+, with support for \ C++, C#, Java, PHP, Python, Ruby and Visual Basic. \ Ice consists of the following packages. \ Slice: The Specification Language for Ice. Slice establishes a \ contract between clients and servers, and is also used to describe \ persistent data. \ Slice Compilers: Slice specifications are compiled into various \ programming languages. Ice supports C++, Java, C#, Visual Basic, PHP, \ Python and Ruby. Ice clients and servers work together, regardless \ of the programming language. \ Ice: The Ice core library manages all the communication tasks using a \ highly efficient protocol (including protocol compression and support \ for both TCP and UDP), provides a flexible thread pool for \ multi-threaded servers. \ This Port provides the Java runtime and bindings. homepage http://www.zeroc.com/ master_sites ${homepage}download/Ice/${branch}/ dist_subdir zeroc-ice34 distname Ice-${version} checksums md5 e97672eb4a63c6b8dd202d0773e19dc7 \ sha1 8c84d6e3b227f583d05e08251e07047e6c3a6b42 \ rmd160 7ce680a4eb5fa9d0bb6f8b8910e267dfc2373d75 platforms darwin depends_lib port:db46-java \ port:zeroc-ice34 depends_build port:apache-ant \ port:jgoodies-common \ port:jgoodies-forms \ port:jgoodies-looks \ port:proguard use_configure no set 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 build.dir ${worksrcpath}/java build.env JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home CLASSPATH=${classpath} ANT_OPTS=-Xmx512m ICE_HOME=${prefix} build.cmd ant build.target clean all test.run yes test.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 test.cmd python test.target allTests.py destroot { set javadir ${destroot}${prefix}/share/java set docdir ${destroot}${prefix}/share/doc/${name} xinstall -d -m 755 ${javadir} xinstall -d -m 755 ${docdir} foreach f {ant-ice.jar Ice.jar IceGridGUI.jar} { file copy ${build.dir}/lib/${f} ${javadir}/ } file copy ${build.dir}/resources/IceGridAdmin ${docdir}/ foreach f {CHANGES ICE_LICENSE LICENSE RELEASE_NOTES} { file copy ${worksrcpath}/${f} ${docdir} } file copy ${build.dir}/INSTALL ${docdir} if {[variant_isset demo_source_code]} { file copy ${build.dir}/demo ${docdir}/ } } variant demo_source_code description {Install demonstration Java code} { }