# $Id: Portfile 38492 2008-07-22 17:17:41Z blair@macports.org $ PortSystem 1.0 name ice-java version 3.3.0 revision 1 categories devel java maintainers blair 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 http://www.zeroc.com/download/Ice/3.3/:ice \ http://www.zeroc.com/download/Protobuf/0.1/:ice-protobuf dist_subdir ice-cpp distname Ice-${version} distfiles ${distname}${extract.suffix}:ice patchfiles protobuf-patch-0.1.0.gz:ice-protobuf checksums Ice-${version}.tar.gz \ md5 0500306d9cdbc0fbb553fbb529de557a \ sha1 b599c3a4d1d3006b868bf2cbcd8e2a2d4575fb22 \ rmd160 e85b37c93f12d9ae97c6b7b2f64f506fa051e4f8 \ protobuf-patch-0.1.0.gz \ md5 d5ac6485fd89c540fc9e3912f9595d58 \ sha1sum 0f9d2e2c1c1601695339b4f621e18f40563e3fa0 \ rmd160 9494f3f763c473b1ed0742eda49ae9dde18bea01 platforms darwin depends_lib port:db46 \ port:ice-cpp depends_build port:apache-ant \ port:jgoodies-forms \ port:jgoodies-looks \ port:proguard use_configure no set classpath ${prefix}/lib/db46/db.jar:${prefix}/share/java/forms.jar:${prefix}/share/java/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} ICE_HOME=${prefix} build.cmd ant build.target clean all test.run yes test.dir ${worksrcpath}/java test.env CLASSPATH=${classpath} DYLD_LIBRARY_PATH=${prefix}/lib/db46 ICE_HOME=${prefix} test.cmd python test.target allTests.py destroot { set ice-java ${workpath}/Ice-${version}/java 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 ${ice-java}/lib/${f} ${javadir}/ } file copy ${ice-java}/resources/IceGridAdmin ${docdir}/ foreach f {CHANGES ICE_LICENSE LICENSE RELEASE_NOTES} { file copy ${worksrcpath}/${f} ${docdir} } file copy ${worksrcpath}/java/INSTALL ${docdir} if {[variant_isset demo_source_code]} { file copy ${ice-java}/demo ${docdir}/ } } variant demo_source_code description {Install demonstration Java code} { }