Changeset 96809


Ignore:
Timestamp:
Aug 19, 2012, 4:13:44 PM (5 years ago)
Author:
blair@…
Message:

ice33-cpp: replaced_by zeroc-ice33.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/ice33-cpp/Portfile

    r96796 r96809  
    55name            ice33-cpp
    66version         3.3.1
     7revision        1
     8replaced_by     zeroc-ice33
    79categories      devel
    810maintainers     blair
    9 conflicts       zeroc-ice34
    1011license         GPL-2
    1112description     Fast, object-oriented RPC for C++, Java, Python, Ruby, PHP
     
    3233
    3334homepage        http://www.zeroc.com/
    34 master_sites    ${homepage}download/Ice/3.3/
     35platforms       darwin
     36distfiles
    3537
    36 set ice_dist    Ice-${version}${extract.suffix}
    37 
    38 dist_subdir     ice-cpp
    39 distname        Ice-${version}
    40 distfiles       ${ice_dist}
    41 patchfiles      patch-ice.cpp.config.Make.rules.diff \
    42                 patch-ice.cpp.config.Make.rules.Darwin.diff \
    43                 patch-ice.cpp.src.IceSSL.Instance.cpp.diff \
    44                 patch-ice.cpp.src.slice2html.Gen.diff \
    45                 patch-ice.cpp.src.Slice.Preprocessor.cpp.diff
    46 checksums       ${ice_dist} \
    47                     md5 1f37dfcec4662fcde030553fb447d064 \
    48                     sha1 08d0f32bdb7d909b4a531d45cccfa97bdde649aa \
    49                     rmd160 d64d52c35640cebe1145e62f57618473d17cbeb5
    50 platforms       darwin
    51 
    52 depends_lib     port:libiconv \
    53                 port:db46 \
    54                 port:expat \
    55                 port:openssl \
    56                 port:readline \
    57                 port:mcpp
    58 
    59 patch {
    60     set cmd "cd ${workpath}/Ice-${version} && patch -p0 < ${filespath}/patch-ice.cpp.config.Make.rules.diff"
    61     ui_debug ${cmd}
    62     system ${cmd}
    63 
    64     set cmd "cd ${workpath}/Ice-${version} && patch -p0 < ${filespath}/patch-ice.cpp.config.Make.rules.Darwin.diff"
    65     ui_debug ${cmd}
    66     system ${cmd}
    67 
    68     set cmd "cd ${workpath}/Ice-${version} && patch -p1 < ${filespath}/patch-ice.cpp.src.IceSSL.Instance.cpp.diff"
    69     ui_debug ${cmd}
    70     system ${cmd}
    71 
    72     set cmd "cd ${workpath}/Ice-${version} && patch -p1 < ${filespath}/patch-ice.cpp.src.slice2html.Gen.diff"
    73     ui_debug ${cmd}
    74     system ${cmd}
    75 
    76     set cmd "cd ${workpath}/Ice-${version} && patch -p1 < ${filespath}/patch-ice.cpp.src.Slice.Preprocessor.cpp.diff"
    77     ui_debug ${cmd}
    78     system ${cmd}
    79 
    80     reinplace "s/-O2/-g -O2/" \
    81         ${workpath}/Ice-${version}/cpp/config/Make.rules.Darwin
    82 
    83     # It appears that the 10.4 and 10.5 installed versions of
    84     # ${prefix}/include/iconv.h have different definitions of
    85     # the inbuf parameter to iconv(), one is 'const char* * inbuf'
    86     # and the other is 'char* * inbuf'.  The Ice compile will
    87     # fail if the wrong #define is choosen by Ice.
    88     set fl [open ${prefix}/include/iconv.h]
    89     set data [read $fl]
    90     close $fl
    91     foreach line [split $data \n] {
    92         if {[string match "extern size_t iconv*const*" $line]} {
    93             reinplace "s/_LIBICONV_VERSION < 0x010B/1/" ${workpath}/Ice-${version}/cpp/include/Ice/IconvStringConverter.h
    94             break
    95         }
    96     }
    97 
    98     # Prevent name conflicts between libICE.* from xorg-libice and
    99     # libIce.* from this port by renaming libIce.* to libZeroCIce.*.
    100     reinplace "s/,Ice/,ZeroCIce/" \
    101         ${workpath}/Ice-${version}/cpp/src/Ice/Makefile
    102     reinplace "s/-lIce /-lZeroCIce /" \
    103         ${workpath}/Ice-${version}/cpp/config/Make.rules.Darwin
    104     foreach f [exec find ${workpath}/Ice-${version}/cpp -name Makefile] {
    105         reinplace "s/-lIce /-lZeroCIce /" ${f}
    106     }
     38pre-configure {
     39    ui_error "Please install zeroc-ice33 instead."
     40    return -code error "obsolete port"
    10741}
    108 
    109 use_configure   no
    110 
    111 # Work around invalid C++ code by compiling with llvm-gcc-4.2 instead
    112 # of clang.  See
    113 # http://www.zeroc.com/forums/bug-reports/4965-slice2cpp-output-does-not-compile-standards-conformant-compiler.html
    114 if {${configure.compiler} == "clang"} {
    115     configure.compiler llvm-gcc-4.2
    116 }
    117 
    118 build {
    119     set jobsargs ""
    120     if {${build.jobs} > 1} {
    121         set jobsargs " -j${build.jobs}"
    122     }
    123     set cmd "cd ${workpath}/Ice-${version}/cpp && make${jobsargs} prefix='${prefix}' embedded_runpath_prefix='${prefix}' CC='${configure.cc}' CXX='${configure.cxx}' OPTIMIZE='yes' BZIP2_HOME='${prefix}' DB_HOME='${prefix}' EXPAT_HOME='${prefix}' OPENSSL_HOME='${prefix}' READLINE_HOME='${prefix}' USE_READLINE=yes MCPP_HOME='${prefix}' LDPLATFORMFLAGS= all && cd doc && make${jobsargs}"
    124     ui_debug ${cmd}
    125     system ${cmd}
    126 }
    127 
    128 test.dir        ${worksrcpath}/cpp
    129 test.run        yes
    130 test.target     test
    131 
    132 destroot.dir    ${worksrcpath}/cpp
    133 destroot.target prefix="${destroot}${prefix}" \
    134                 embedded_runpath_prefix="${prefix}" \
    135                 create_runpath_symlink=no \
    136                 OPTIMIZE="yes" \
    137                 BZIP2_HOME="${prefix}" \
    138                 DB_HOME="${prefix}" \
    139                 EXPAT_HOME="${prefix}" \
    140                 OPENSSL_HOME="${prefix}" \
    141                 READLINE_HOME="${prefix}" \
    142                 USE_READLINE=yes \
    143                 MCPP_HOME="${prefix}" \
    144                 install
    145 
    146 post-destroot {
    147     set cppdir ${workpath}/Ice-${version}/cpp
    148     set sharedir ${destroot}${prefix}/share
    149     set docdir ${sharedir}/doc/${name}
    150 
    151     xinstall -m 755 -d ${sharedir}/ice
    152     file rename ${destroot}${prefix}/config ${sharedir}/ice
    153     file rename ${destroot}${prefix}/slice ${sharedir}/slice
    154 
    155     xinstall -m 755 -d ${docdir}
    156     file rename ${destroot}${prefix}/ICE_LICENSE ${docdir}
    157     file rename ${destroot}${prefix}/LICENSE ${docdir}
    158     file copy ${cppdir}/doc/reference ${docdir}
    159 
    160     foreach f {CHANGES RELEASE_NOTES} {
    161         file copy ${workpath}/Ice-${version}/${f} ${docdir}
    162     }
    163 
    164     if {[variant_isset demo_source_code]} {
    165         system "cd ${cppdir}/demo && make clean"
    166         file copy ${cppdir}/demo $docdir
    167     }
    168 }
    169 
    170 variant demo_source_code description {Install demonstration C++ code} {
    171 }
Note: See TracChangeset for help on using the changeset viewer.