Changeset 96790


Ignore:
Timestamp:
Aug 19, 2012, 7:46:18 AM (5 years ago)
Author:
blair@…
Message:

ice-cpp: replaced_by zeroc-ice34.

File:
1 edited

Legend:

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

    r96599 r96790  
    1 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    21# $Id$
    32
     
    65name            ice-cpp
    76version         3.4.2
    8 revision        2
    9 set branch      [join [lrange [split ${version} .] 0 1] .]
     7revision        3
     8replaced_by     zeroc-ice34
    109categories      devel
    1110maintainers     blair
     
    3433
    3534homepage        http://www.zeroc.com/
    36 master_sites    ${homepage}download/Ice/${branch}/
     35platforms       darwin
     36distfiles
    3737
    38 distname        Ice-${version}
    39 checksums       md5 e97672eb4a63c6b8dd202d0773e19dc7 \
    40                 sha1 8c84d6e3b227f583d05e08251e07047e6c3a6b42 \
    41                 rmd160 7ce680a4eb5fa9d0bb6f8b8910e267dfc2373d75
    42 patchfiles      patch-ice.cpp.config.Make.rules.diff \
    43                 patch-ice.cpp.config.Make.rules.Darwin.diff \
    44                 patch-ice.cpp.allTests.py.diff \
    45                 patch-ice.cpp.demo.IceGrid.secure.README.diff \
    46                 patch-ice.cpp.demo.IceGrid.secure.application.xml.diff \
    47                 patch-ice.cpp.demo.IceGrid.secure.config.admin.diff \
    48                 patch-ice.cpp.demo.IceGrid.secure.config.client.diff \
    49                 patch-ice.cpp.demo.IceGrid.secure.config.master.diff \
    50                 patch-ice.cpp.demo.IceGrid.secure.config.node.diff \
    51                 patch-ice.cpp.demo.IceGrid.secure.config.registry.diff \
    52                 patch-ice.cpp.demo.IceGrid.secure.config.slave.diff \
    53                 patch-ice.cpp.demo.IceGrid.secure.makecerts.py.diff \
    54                 patch-ice.cpp.include.Freeze.Map.h.diff \
    55                 patch-ice.cpp.include.Ice.Buffer.h.diff \
    56                 patch-ice.cpp.include.Ice.ConnectionIF.h.diff \
    57                 patch-ice.cpp.include.Ice.IconvStringConverter.h.diff \
    58                 patch-ice.cpp.include.Ice.IncomingAsyncF.h.diff \
    59                 patch-ice.cpp.include.Ice.LocalObjectF.h.diff \
    60                 patch-ice.cpp.include.Ice.ObjectF.h.diff \
    61                 patch-ice.cpp.include.Ice.OutgoingAsyncF.h.diff \
    62                 patch-ice.cpp.include.Ice.Proxy.h.diff \
    63                 patch-ice.cpp.include.Ice.ProxyF.h.diff \
    64                 patch-ice.cpp.include.Ice.Stream.h.diff \
    65                 patch-ice.cpp.include.Ice.StreamF.h.diff \
    66                 patch-ice.cpp.include.IceUtil.Mutex.h.diff \
    67                 patch-ice.cpp.src.Freeze.MapDb.cpp.diff \
    68                 patch-ice.cpp.src.Freeze.MapI.cpp.diff \
    69                 patch-ice.cpp.src.Freeze.SharedDbEnv.cpp.diff \
    70                 patch-ice.cpp.src.Glacier2.Blobject.cpp.diff \
    71                 patch-ice.cpp.src.Glacier2.Blobject.h.diff \
    72                 patch-ice.cpp.src.Glacier2.RequestQueue.cpp.diff \
    73                 patch-ice.cpp.src.Glacier2.RequestQueue.h.diff \
    74                 patch-ice.cpp.src.Glacier2.RouterI.cpp.diff \
    75                 patch-ice.cpp.src.Ice.ConnectionI.cpp.diff \
    76                 patch-ice.cpp.src.Ice.IncomingAsync.cpp.diff \
    77                 patch-ice.cpp.src.Ice.LocalObject.cpp.diff \
    78                 patch-ice.cpp.src.Ice.Network.cpp.diff \
    79                 patch-ice.cpp.src.Ice.Object.cpp.diff \
    80                 patch-ice.cpp.src.Ice.OutgoingAsync.cpp.diff \
    81                 patch-ice.cpp.src.Ice.PropertyNames.cpp.diff \
    82                 patch-ice.cpp.src.Ice.PropertyNames.h.diff \
    83                 patch-ice.cpp.src.Ice.ProxyFactory.cpp.diff \
    84                 patch-ice.cpp.src.Ice.Service.cpp.diff \
    85                 patch-ice.cpp.src.Ice.Stream.cpp.diff \
    86                 patch-ice.cpp.src.IceGrid.AdminCallbackRouter.cpp.diff \
    87                 patch-ice.cpp.src.IceGrid.DescriptorHelper.cpp.diff \
    88                 patch-ice.cpp.src.IceGrid.Internal.ice.diff \
    89                 patch-ice.cpp.src.IceGrid.InternalRegistryI.cpp.diff \
    90                 patch-ice.cpp.src.IceGrid.InternalRegistryI.h.diff \
    91                 patch-ice.cpp.src.IceGrid.NodeSessionManager.cpp.diff \
    92                 patch-ice.cpp.src.IceGrid.ReplicaCache.cpp.diff \
    93                 patch-ice.cpp.src.IceGrid.ReplicaSessionManager.cpp.diff \
    94                 patch-ice.cpp.src.IceGrid.SessionI.h.diff \
    95                 patch-ice.cpp.src.IceSSL.Instance.cpp.diff \
    96                 patch-ice.cpp.src.IceSSL.InstanceF.h.diff \
    97                 patch-ice.cpp.src.IceSSL.TrustManager.cpp.diff \
    98                 patch-ice.cpp.src.IceSSL.TrustManagerF.h.diff \
    99                 patch-ice.cpp.src.IceSSL.Util.cpp.diff \
    100                 patch-ice.cpp.src.IceSSL.UtilF.h.diff \
    101                 patch-ice.cpp.src.IceStorm.NodeI.cpp.diff \
    102                 patch-ice.cpp.src.IceUtil.Cond.cpp.diff \
    103                 patch-ice.cpp.src.IceUtil.CountDownLatch.cpp.diff \
    104                 patch-ice.cpp.src.IceUtil.CtrlCHandler.cpp.diff \
    105                 patch-ice.cpp.src.IceUtil.FileUtil.cpp.diff \
    106                 patch-ice.cpp.src.IceUtil.RecMutex.cpp.diff \
    107                 patch-ice.cpp.src.Slice.CPlusPlusUtil.cpp.diff \
    108                 patch-ice.cpp.src.Slice.FileTracker.cpp.diff \
    109                 patch-ice.cpp.src.slice2cpp.Gen.cpp.diff \
    110                 patch-ice.cpp.src.slice2cs.Gen.cpp.diff \
    111                 patch-ice.cpp.src.slice2java.Gen.cpp.diff \
    112                 patch-ice.cpp.test.Glacier2.ssl.Server.cpp.diff \
    113                 patch-ice.cpp.test.Ice.background.EndpointI.h.diff \
    114                 patch-ice.cpp.test.Ice.custom.AllTests.cpp.diff \
    115                 patch-ice.cpp.test.Ice.info.AllTests.cpp.diff \
    116                 patch-ice.cpp.test.Ice.properties.run.py.diff \
    117                 patch-ice.cpp.test.IceUtil.unicode.Client.cpp.diff \
    118                 patch-ice.cpp.test.Slice.keyword.Client.cpp.diff \
    119                 patch-ice.cpp.test.include.TestCommon.h.diff \
    120                 patch-ice.scripts.TestUtil.py.diff
    121 
    122 patch.pre_args  -p1
    123 platforms       darwin
    124 
    125 depends_lib     port:libiconv \
    126                 port:db46 \
    127                 port:expat \
    128                 port:openssl \
    129                 port:readline \
    130                 port:mcpp
    131 
    132 build.dir       ${worksrcpath}/cpp
    133 
    134 post-patch {
    135     reinplace "s/-O2/-g -O2/" ${build.dir}/config/Make.rules.Darwin
    136 
    137     # It appears that the 10.4 and 10.5 installed versions of
    138     # ${prefix}/include/iconv.h have different definitions of
    139     # the inbuf parameter to iconv(), one is 'const char* * inbuf'
    140     # and the other is 'char* * inbuf'.  The Ice compile will
    141     # fail if the wrong #define is choosen by Ice.
    142     set fl [open ${prefix}/include/iconv.h]
    143     set data [read $fl]
    144     close $fl
    145     foreach line [split $data \n] {
    146         if {[string match "extern size_t iconv*const*" $line]} {
    147             reinplace "s/_LIBICONV_VERSION < 0x010B/1/" ${build.dir}/include/Ice/IconvStringConverter.h
    148             break
    149         }
    150     }
    151 
    152     # Prevent name conflicts between libICE.* from xorg-libice and
    153     # libIce.* from this port by renaming libIce.* to libZeroCIce.*.
    154     reinplace "s/,Ice/,ZeroCIce/" ${build.dir}/src/Ice/Makefile
    155     reinplace "s/-lIce /-lZeroCIce /" ${build.dir}/config/Make.rules.Darwin
    156     foreach f [exec find ${build.dir} -name Makefile] {
    157         reinplace "s/-lIce /-lZeroCIce /" ${f}
    158     }
     38pre-configure {
     39    ui_error "Please install zeroc-ice34 instead."
     40    return -code error "obsolete port"
    15941}
    160 
    161 use_configure   no
    162 
    163 build {
    164     set jobsargs ""
    165     if {${build.jobs} > 1} {
    166         set jobsargs " -j${build.jobs}"
    167     }
    168 
    169     set cmd "cd ${build.dir} && 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"
    170     ui_debug ${cmd}
    171     system ${cmd}
    172 }
    173 
    174 test.run        yes
    175 test.target     test
    176 
    177 destroot.target prefix="${destroot}${prefix}" \
    178                 embedded_runpath_prefix="${prefix}" \
    179                 OPTIMIZE="yes" \
    180                 BZIP2_HOME="${prefix}" \
    181                 DB_HOME="${prefix}" \
    182                 EXPAT_HOME="${prefix}" \
    183                 OPENSSL_HOME="${prefix}" \
    184                 READLINE_HOME="${prefix}" \
    185                 USE_READLINE=yes \
    186                 MCPP_HOME="${prefix}" \
    187                 install
    188 
    189 post-destroot {
    190     set sharedir ${destroot}${prefix}/share
    191     set docdir ${sharedir}/doc/${name}
    192 
    193     xinstall -m 755 -d ${sharedir}/ice
    194     file rename ${destroot}${prefix}/config ${sharedir}/ice
    195     file rename ${destroot}${prefix}/slice ${sharedir}/slice
    196 
    197     xinstall -m 755 -d ${docdir}
    198     file rename ${destroot}${prefix}/ICE_LICENSE ${docdir}
    199     file rename ${destroot}${prefix}/LICENSE ${docdir}
    200     file copy ${build.dir}/doc/reference ${docdir}
    201 
    202     foreach f {CHANGES RELEASE_NOTES} {
    203         file copy ${worksrcpath}/${f} ${docdir}
    204     }
    205 
    206     if {[variant_isset demo_source_code]} {
    207         system "cd ${build.dir}/demo && make clean"
    208         file copy ${build.dir}/demo $docdir
    209     }
    210 }
    211 
    212 variant demo_source_code description {Install demonstration C++ code} {
    213 }
Note: See TracChangeset for help on using the changeset viewer.