# $Id: Portfile 52983 2009-06-27 02:14:56Z blair@macports.org $ PortSystem 1.0 name ice-java version 3.3.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. \ You must install the db46 port with the +java variant. homepage http://www.zeroc.com/ master_sites ${homepage}download/Ice/3.3/:ice dist_subdir ice-cpp distname Ice-${version} distfiles ${distname}${extract.suffix}:ice checksums Ice-${version}.tar.gz \ md5 1f37dfcec4662fcde030553fb447d064 \ sha1 08d0f32bdb7d909b4a531d45cccfa97bdde649aa \ rmd160 d64d52c35640cebe1145e62f57618473d17cbeb5 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} { }