source: trunk/dports/java/zeroc-ice35-java/Portfile

Last change on this file was 112083, checked in by blair@…, 4 years ago

zeroc-ice35-java: new upstream 3.5.1 release.

Ice 3.5.1 removed 'INSTALL', so don't try to copy it.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.7 KB
Line 
1# $Id: Portfile 112083 2013-10-11 07:51:49Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            zeroc-ice35-java
6version         3.5.1
7set branch      [join [lrange [split ${version} .] 0 1] .]
8categories      java devel
9maintainers     blair
10conflicts       zeroc-ice33-java zeroc-ice34-java
11license         GPL-2
12description     Fast, object-oriented RPC for C++, Java, Python, Ruby, PHP
13
14long_description \
15    The Internet Communications Engine (Ice) is a modern alternative to \
16    object middleware such as CORBA or COM/DCOM/COM+, with support for \
17    C++, C#, Java, PHP, Python, Ruby and Visual Basic. \
18    Ice consists of the following packages. \
19    Slice: The Specification Language for Ice.  Slice establishes a \
20    contract between clients and servers, and is also used to describe \
21    persistent data. \
22    Slice Compilers: Slice specifications are compiled into various \
23    programming languages. Ice supports C++, Java, C#, Visual Basic, PHP, \
24    Python and Ruby.  Ice clients and servers work together, regardless \
25    of the programming language. \
26    Ice: The Ice core library manages all the communication tasks using a \
27    highly efficient protocol (including protocol compression and support \
28    for both TCP and UDP), provides a flexible thread pool for \
29    multi-threaded servers. \
30    This Port provides the Java runtime and bindings.
31
32homepage        http://www.zeroc.com/
33master_sites    ${homepage}download/Ice/${branch}/
34dist_subdir     zeroc-ice35
35distname        Ice-${version}
36checksums       sha1   63599ea22a1e9638a49356682c9e516b7c2c454f \
37                sha256 989e51194c6adadbd156da3288e37bad847b93b3b876502e83033b70493af392
38
39platforms       darwin
40
41depends_lib     port:db46-java \
42                port:zeroc-ice35
43depends_build   port:apache-ant \
44                port:jgoodies-common \
45                port:jgoodies-forms \
46                port:jgoodies-looks \
47                port:proguard
48
49post-patch {
50    # Prevent core dumps from mixing Mac OS X's libstdc++.6.dylib
51    # on older operating systems, e.g. 10.5.8, with MacPorts'
52    # libstdc++.6.dylib from newer libgcc's, e.g. 4.8.1, through
53    # the use of DYLD_LIBRARY_PATH being set to $prefix, use
54    # DYLD_FALLBACK_LIBRARY_PATH instead.  This also have the ant
55    # slice task set DYLD_FALLBACK_LIBRARY_PATH instead of DYLD_LIBRARY_PATH.
56    system "find ${worksrcpath} -type f -print0 | xargs -0 grep -Z -l DYLD_LIBRARY_PATH | xargs -0 perl -w -p -i -e 's/DYLD_LIBRARY_PATH/DYLD_FALLBACK_LIBRARY_PATH/g'"
57}
58
59use_configure   no
60
61set 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
62
63build.dir       ${worksrcpath}/java
64build.env       JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home CLASSPATH=${classpath} ANT_OPTS="-Djava.awt.headless=true -Xmx512m" ICE_HOME=${prefix}
65build.cmd       ant
66build.target    clean all
67
68test.run        yes
69test.env        JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home CLASSPATH=${classpath} ANT_OPTS="-Xmx512m -Djava.awt.headless=true" ICE_HOME=${prefix} DYLD_LIBRARY_PATH=${prefix}/lib/db46 USE_BIN_DIST=yes
70test.cmd        python
71test.target     allTests.py --debug --env
72
73destroot {
74    set javadir ${destroot}${prefix}/share/java
75    set docdir ${destroot}${prefix}/share/doc/${name}
76
77    xinstall -d -m 755 ${javadir}
78    xinstall -d -m 755 ${docdir}
79
80    foreach f [glob ${build.dir}/lib/*.jar] {
81        file copy ${f} ${javadir}/
82    }
83
84    foreach f {CHANGES ICE_LICENSE LICENSE RELEASE_NOTES} {
85        file copy ${worksrcpath}/${f} ${docdir}
86    }
87
88    if {[variant_isset demo_source_code]} {
89        file copy ${build.dir}/demo ${docdir}/
90    }
91}
92
93variant demo_source_code description {Install demonstration Java code} {
94}
Note: See TracBrowser for help on using the repository browser.