source: trunk/dports/devel/ice-java/Portfile @ 38492

Last change on this file since 38492 was 38492, checked in by blair@…, 11 years ago

Add Google Protocol Buffer's support to Ice.

http://www.zeroc.com/labs/protobuf/

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
1# $Id: Portfile 38492 2008-07-22 17:17:41Z blair@macports.org $
2
3PortSystem 1.0
4
5name            ice-java
6version         3.3.0
7revision        1
8categories      devel java
9maintainers     blair
10description     Fast, object-oriented RPC for C++, Java, Python, Ruby, PHP
11
12long_description \
13        The Internet Communications Engine (Ice) is a modern alternative to \
14        object middleware such as CORBA or COM/DCOM/COM+, with support for \
15        C++, C#, Java, PHP, Python, Ruby and Visual Basic. \
16        Ice consists of the following packages. \
17        Slice: The Specification Language for Ice.  Slice establishes a \
18        contract between clients and servers, and is also used to describe \
19        persistent data. \
20        Slice Compilers: Slice specifications are compiled into various \
21        programming languages. Ice supports C++, Java, C#, Visual Basic, PHP, \
22        Python and Ruby.  Ice clients and servers work together, regardless \
23        of the programming language. \
24        Ice: The Ice core library manages all the communication tasks using a \
25        highly efficient protocol (including protocol compression and support \
26        for both TCP and UDP), provides a flexible thread pool for \
27        multi-threaded servers. \
28        This Port provides the Java runtime and bindings.
29
30homepage        http://www.zeroc.com/
31master_sites    http://www.zeroc.com/download/Ice/3.3/:ice \
32                http://www.zeroc.com/download/Protobuf/0.1/:ice-protobuf
33dist_subdir     ice-cpp
34distname        Ice-${version}
35distfiles       ${distname}${extract.suffix}:ice
36patchfiles      protobuf-patch-0.1.0.gz:ice-protobuf
37checksums       Ice-${version}.tar.gz \
38                        md5 0500306d9cdbc0fbb553fbb529de557a \
39                        sha1 b599c3a4d1d3006b868bf2cbcd8e2a2d4575fb22 \
40                        rmd160 e85b37c93f12d9ae97c6b7b2f64f506fa051e4f8 \
41                protobuf-patch-0.1.0.gz \
42                        md5 d5ac6485fd89c540fc9e3912f9595d58 \
43                        sha1sum 0f9d2e2c1c1601695339b4f621e18f40563e3fa0 \
44                        rmd160 9494f3f763c473b1ed0742eda49ae9dde18bea01
45platforms       darwin
46
47depends_lib     port:db46 \
48                port:ice-cpp
49depends_build   port:apache-ant \
50                port:jgoodies-forms \
51                port:jgoodies-looks \
52                port:proguard
53
54use_configure   no
55
56set classpath ${prefix}/lib/db46/db.jar:${prefix}/share/java/forms.jar:${prefix}/share/java/looks.jar:${prefix}/share/java/proguard.jar
57
58build.dir       ${worksrcpath}/java
59build.env       JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home CLASSPATH=${classpath} ICE_HOME=${prefix}
60build.cmd       ant
61build.target    clean all
62
63test.run        yes
64test.dir        ${worksrcpath}/java
65test.env        CLASSPATH=${classpath} DYLD_LIBRARY_PATH=${prefix}/lib/db46 ICE_HOME=${prefix}
66test.cmd        python
67test.target     allTests.py
68
69destroot {
70        set ice-java ${workpath}/Ice-${version}/java
71        set javadir ${destroot}${prefix}/share/java
72        set docdir ${destroot}${prefix}/share/doc/${name}
73
74        xinstall -d -m 755 ${javadir}
75        xinstall -d -m 755 ${docdir}
76
77        foreach f {ant-ice.jar Ice.jar IceGridGUI.jar} {
78                file copy ${ice-java}/lib/${f} ${javadir}/
79        }
80        file copy ${ice-java}/resources/IceGridAdmin ${docdir}/
81
82        foreach f {CHANGES ICE_LICENSE LICENSE RELEASE_NOTES} {
83                file copy ${worksrcpath}/${f} ${docdir}
84        }
85        file copy ${worksrcpath}/java/INSTALL ${docdir}
86
87        if {[variant_isset demo_source_code]} {
88                file copy ${ice-java}/demo ${docdir}/
89        }
90}
91
92variant demo_source_code description {Install demonstration Java code} {
93}
Note: See TracBrowser for help on using the repository browser.