[96787] trunk/dports/python/py-zeroc-ice

blair at macports.org blair at macports.org
Sun Aug 19 00:38:32 PDT 2012


Revision: 96787
          https://trac.macports.org/changeset/96787
Author:   blair at macports.org
Date:     2012-08-19 00:38:32 -0700 (Sun, 19 Aug 2012)
Log Message:
-----------
py-zeroc-ice: replaced_by py-zeroc-ice34.

Modified Paths:
--------------
    trunk/dports/python/py-zeroc-ice/Portfile

Removed Paths:
-------------
    trunk/dports/python/py-zeroc-ice/files/

Modified: trunk/dports/python/py-zeroc-ice/Portfile
===================================================================
--- trunk/dports/python/py-zeroc-ice/Portfile	2012-08-19 07:37:59 UTC (rev 96786)
+++ trunk/dports/python/py-zeroc-ice/Portfile	2012-08-19 07:38:32 UTC (rev 96787)
@@ -5,7 +5,7 @@
 
 name            py-zeroc-ice
 version         3.4.2
-set branch      [join [lrange [split ${version} .] 0 1] .]
+revision        1
 categories-append   devel
 maintainers     blair
 license         GPL-2
@@ -31,95 +31,15 @@
     Ice C++ runtime libraries.
 
 homepage        http://www.zeroc.com/
-master_sites    ${homepage}download/Ice/${branch}/
-dist_subdir     ice-cpp
-distname        Ice-${version}
-checksums       md5 e97672eb4a63c6b8dd202d0773e19dc7 \
-                sha1 8c84d6e3b227f583d05e08251e07047e6c3a6b42 \
-                rmd160 7ce680a4eb5fa9d0bb6f8b8910e267dfc2373d75
-patchfiles      patch-py.config.Make.rules.Darwin.diff
 platforms       darwin
+distfiles
 
 python.versions 26 27
 
 if {$subport != $name} {
-    depends_lib-append  port:ice-cpp
-
-    build.dir       ${worksrcpath}/py
-
-    post-patch {
-        reinplace "s/-O2/-g -O2/" ${build.dir}/config/Make.rules.Darwin
-
-        # Prevent name conflicts between libICE.* from xorg-libice and
-        # libIce.* from this port by renaming libIce.* to libZeroCIce.*.
-        reinplace "s/-lIce /-lZeroCIce /" \
-            ${build.dir}/config/Make.rules \
-            ${build.dir}/config/Make.rules.Darwin
+    replaced_by py${python.version}-zeroc-ice34
+    pre-configure {
+        ui_error "Please install py${python.version}-zeroc-ice34 instead."
+        return -code error "obsolete port"
     }
-
-    use_configure   no
-
-    build.cmd       make
-    build.target    prefix="${prefix}" \
-                    CC="${configure.cc}" \
-                    CXX="${configure.cxx}" \
-                    ICE_HOME="${prefix}" \
-                    PYTHON_HOME="${python.prefix}" \
-                    PYTHON_VERSION="python${python.branch}" \
-                    OPTIMIZE="yes" \
-                    all
-
-    test.run        yes
-    test.env        ICE_HOME=${prefix}
-    test.cmd        ${python.bin}
-    test.target     allTests.py
-
-    destroot.destdir
-    destroot.cmd    ${build.cmd}
-    destroot.target prefix="${destroot}${prefix}" \
-                    CC="${configure.cc}" \
-                    CXX="${configure.cxx}" \
-                    ICE_HOME="${prefix}" \
-                    PYTHON_HOME="${python.prefix}" \
-                    PYTHON_VERSION="python${python.branch}" \
-                    OPTIMIZE="yes" \
-                    install
-
-    post-destroot {
-        set sharedir ${destroot}${prefix}/share
-        set docdir ${sharedir}/doc/${subport}
-
-        delete ${destroot}${prefix}/slice
-
-        xinstall -m 755 -d ${docdir}
-
-        xinstall -m 755 -d [file dirname ${destroot}${python.pkgd}]
-        file rename ${destroot}${prefix}/python ${destroot}${python.pkgd}
-
-        set cmd "${python.bin} \
-                ${python.libdir}/compileall.py \
-                ${destroot}${python.pkgd}"
-        ui_debug ${cmd}
-        system ${cmd}
-
-        set cmd "${python.bin} -O \
-                 ${python.libdir}/compileall.py \
-                 ${destroot}${python.pkgd}"
-        ui_debug ${cmd}
-        system ${cmd}
-
-        file rename ${destroot}${prefix}/ICE_LICENSE ${docdir}
-        file rename ${destroot}${prefix}/LICENSE ${docdir}
-        foreach f {CHANGES RELEASE_NOTES} {
-            file copy ${worksrcpath}/${f} ${docdir}
-        }
-        file copy ${build.dir}/INSTALL ${docdir}
-
-        if {[variant_isset demo_source_code]} {
-            file copy ${build.dir}/demo ${docdir}
-        }
-    }
-
-    variant demo_source_code description {Install demonstration Python code} {
-    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120819/65632ca9/attachment-0001.html>


More information about the macports-changes mailing list