[96777] trunk/dports/devel

blair at macports.org blair at macports.org
Sat Aug 18 23:09:15 PDT 2012


Revision: 96777
          https://trac.macports.org/changeset/96777
Author:   blair at macports.org
Date:     2012-08-18 23:09:13 -0700 (Sat, 18 Aug 2012)
Log Message:
-----------
ice-python2{6,7}: replaced_by py2{6,7}-zeroc-ice.

Modified Paths:
--------------
    trunk/dports/devel/ice-python26/Portfile
    trunk/dports/devel/ice-python27/Portfile

Removed Paths:
-------------
    trunk/dports/devel/ice-python26/files/
    trunk/dports/devel/ice-python27/files/

Modified: trunk/dports/devel/ice-python26/Portfile
===================================================================
--- trunk/dports/devel/ice-python26/Portfile	2012-08-19 05:52:01 UTC (rev 96776)
+++ trunk/dports/devel/ice-python26/Portfile	2012-08-19 06:09:13 UTC (rev 96777)
@@ -4,8 +4,8 @@
 
 name            ice-python26
 version         3.4.2
-revision        1
-set branch      [join [lrange [split ${version} .] 0 1] .]
+revision        2
+replaced_by     py26-zeroc-ice
 categories      devel python
 maintainers     blair
 license         GPL-2
@@ -31,93 +31,10 @@
     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
 
-depends_lib     port:python26 \
-                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
+pre-configure {
+    ui_error "Please install py26-zeroc-ice instead."
+    return -code error "obsolete port"
 }
-
-use_configure   no
-
-build.target    prefix="${prefix}" \
-                CC="${configure.cc}" \
-                CXX="${configure.cxx}" \
-                ICE_HOME="${prefix}" \
-                PYTHON_HOME="${prefix}/Library/Frameworks/Python.framework/Versions/2.6" \
-                PYTHON_VERSION=python2.6 \
-                OPTIMIZE="yes" \
-                all
-
-test.run        yes
-test.env        ICE_HOME=${prefix}
-test.cmd        ${prefix}/bin/python2.6
-test.target     allTests.py
-
-destroot.target prefix="${destroot}${prefix}" \
-                CC="${configure.cc}" \
-                CXX="${configure.cxx}" \
-                ICE_HOME="${prefix}" \
-                PYTHON_HOME="${prefix}/Library/Frameworks/Python.framework/Versions/2.6" \
-                PYTHON_VERSION=python2.6 \
-                OPTIMIZE="yes" \
-                install
-
-post-destroot {
-    set sharedir ${destroot}${prefix}/share
-    set docdir ${sharedir}/doc/${name}
-
-    set python_root ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.6
-    set python26_dir ${python_root}/lib/python2.6
-    set site_packages_dir ${python26_dir}/site-packages
-
-    delete ${destroot}${prefix}/slice
-
-    xinstall -m 755 -d ${docdir}
-
-    file mkdir ${python26_dir}
-    file rename ${destroot}${prefix}/python ${site_packages_dir}
-
-    set cmd "${prefix}/bin/python2.6 \
-            ${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/compileall.py \
-            ${site_packages_dir}"
-    ui_debug ${cmd}
-    system ${cmd}
-
-    set cmd "${prefix}/bin/python2.6 -O \
-            ${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/compileall.py \
-            ${site_packages_dir}"
-    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} {
-}

Modified: trunk/dports/devel/ice-python27/Portfile
===================================================================
--- trunk/dports/devel/ice-python27/Portfile	2012-08-19 05:52:01 UTC (rev 96776)
+++ trunk/dports/devel/ice-python27/Portfile	2012-08-19 06:09:13 UTC (rev 96777)
@@ -4,8 +4,8 @@
 
 name            ice-python27
 version         3.4.2
-revision        1
-set branch      [join [lrange [split ${version} .] 0 1] .]
+revision        2
+replaced_by     py27-zeroc-ice
 categories      devel python
 maintainers     blair
 license         GPL-2
@@ -31,93 +31,10 @@
     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
 
-depends_lib     port:python27 \
-                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
+pre-configure {
+    ui_error "Please install py27-zeroc-ice instead."
+    return -code error "obsolete port"
 }
-
-use_configure   no
-
-build.target    prefix="${prefix}" \
-                CC="${configure.cc}" \
-                CXX="${configure.cxx}" \
-                ICE_HOME="${prefix}" \
-                PYTHON_HOME="${prefix}/Library/Frameworks/Python.framework/Versions/2.7" \
-                PYTHON_VERSION=python2.7 \
-                OPTIMIZE="yes" \
-                all
-
-test.run        yes
-test.env        ICE_HOME=${prefix}
-test.cmd        ${prefix}/bin/python2.7
-test.target     allTests.py
-
-destroot.target prefix="${destroot}${prefix}" \
-                CC="${configure.cc}" \
-                CXX="${configure.cxx}" \
-                ICE_HOME="${prefix}" \
-                PYTHON_HOME="${prefix}/Library/Frameworks/Python.framework/Versions/2.7" \
-                PYTHON_VERSION=python2.7 \
-                OPTIMIZE="yes" \
-                install
-
-post-destroot {
-    set sharedir ${destroot}${prefix}/share
-    set docdir ${sharedir}/doc/${name}
-
-    set python_root ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.7
-    set python27_dir ${python_root}/lib/python2.7
-    set site_packages_dir ${python27_dir}/site-packages
-
-    delete ${destroot}${prefix}/slice
-
-    xinstall -m 755 -d ${docdir}
-
-    file mkdir ${python27_dir}
-    file rename ${destroot}${prefix}/python ${site_packages_dir}
-
-    set cmd "${prefix}/bin/python2.7 \
-            ${prefix}/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/compileall.py \
-            ${site_packages_dir}"
-    ui_debug ${cmd}
-    system ${cmd}
-
-    set cmd "${prefix}/bin/python2.7 -O \
-            ${prefix}/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/compileall.py \
-            ${site_packages_dir}"
-    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/20120818/88e89da3/attachment.html>


More information about the macports-changes mailing list