[96816] trunk/dports/python/py-zeroc-ice33/Portfile

blair at macports.org blair at macports.org
Sun Aug 19 09:57:41 PDT 2012


Revision: 96816
          https://trac.macports.org/changeset/96816
Author:   blair at macports.org
Date:     2012-08-19 09:57:41 -0700 (Sun, 19 Aug 2012)
Log Message:
-----------
py-zeroc-ice33: minimize differences with py-zeroc-ice34.

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

Modified: trunk/dports/python/py-zeroc-ice33/Portfile
===================================================================
--- trunk/dports/python/py-zeroc-ice33/Portfile	2012-08-19 16:53:26 UTC (rev 96815)
+++ trunk/dports/python/py-zeroc-ice33/Portfile	2012-08-19 16:57:41 UTC (rev 96816)
@@ -67,20 +67,20 @@
         configure.compiler llvm-gcc-4.2
     }
 
+    build.dir       ${worksrcpath}/py
+
     post-patch {
-        reinplace "s/-O2/-g -O2/" \
-            ${workpath}/Ice-${version}/py/config/Make.rules.Darwin
+        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 /" \
-            ${workpath}/Ice-${version}/py/config/Make.rules \
-            ${workpath}/Ice-${version}/py/config/Make.rules.Darwin
+            ${build.dir}/config/Make.rules \
+            ${build.dir}/config/Make.rules.Darwin
     }
 
     use_configure   no
 
-    build.dir       ${worksrcpath}/py
     build.cmd       make
     build.target    prefix="${prefix}" \
                     CC="${configure.cc}" \
@@ -92,7 +92,6 @@
                     all
 
     test.run        yes
-    test.dir        ${worksrcpath}/py
     test.env        ICE_HOME=${prefix}
     test.cmd        ${python.bin}
     test.target     allTests.py
@@ -136,10 +135,10 @@
         foreach f {CHANGES RELEASE_NOTES} {
             file copy ${worksrcpath}/${f} ${docdir}
         }
-        file copy ${worksrcpath}/py/INSTALL ${docdir}
+        file copy ${build.dir}/INSTALL ${docdir}
 
         if {[variant_isset demo_source_code]} {
-            file copy ${worksrcpath}/py/demo ${docdir}
+            file copy ${build.dir}/demo ${docdir}
         }
     }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120819/6ee839db/attachment.html>


More information about the macports-changes mailing list