[30958] trunk/dports/python
source_changes at macosforge.org
source_changes at macosforge.org
Mon Nov 12 02:59:00 PST 2007
Revision: 30958
http://trac.macosforge.org/projects/macports/changeset/30958
Author: mww at macports.org
Date: 2007-11-12 02:58:58 -0800 (Mon, 12 Nov 2007)
Log Message:
-----------
remove to-be-deprecated 'cd' command
Modified Paths:
--------------
trunk/dports/python/py-ao/Portfile
trunk/dports/python/py-async/Portfile
trunk/dports/python/py-bsddb/Portfile
trunk/dports/python/py-ebay/Portfile
trunk/dports/python/py-gdbm/Portfile
trunk/dports/python/py-mad/Portfile
trunk/dports/python/py-psycopg/Portfile
trunk/dports/python/py-rt/Portfile
trunk/dports/python/py-scientific/Portfile
trunk/dports/python/py-tlslite/Portfile
trunk/dports/python/py25-scientific/Portfile
trunk/dports/python/py25-sqlite3/Portfile
Modified: trunk/dports/python/py-ao/Portfile
===================================================================
--- trunk/dports/python/py-ao/Portfile 2007-11-12 10:51:37 UTC (rev 30957)
+++ trunk/dports/python/py-ao/Portfile 2007-11-12 10:58:58 UTC (rev 30958)
@@ -31,6 +31,5 @@
post-destroot {
xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog README \
${destroot}${prefix}/share/doc/${name}
- cd ${destroot}${prefix}/lib/python2.4/site-packages/
- file rename aomodule.so ao.so
+ file rename ${destroot}${prefix}/lib/python2.4/site-packages/aomodule.so ${destroot}${prefix}/lib/python2.4/site-packages/ao.so
}
Modified: trunk/dports/python/py-async/Portfile
===================================================================
--- trunk/dports/python/py-async/Portfile 2007-11-12 10:51:37 UTC (rev 30957)
+++ trunk/dports/python/py-async/Portfile 2007-11-12 10:58:58 UTC (rev 30958)
@@ -22,12 +22,11 @@
patch {
file mkdir ${worksrcpath}/PyAsync
- cd ${worksrcpath}
- file rename dnsthread.py PyAsync
- file rename error_object.py PyAsync
- file rename name_services.py PyAsync
- file rename network_engine.py PyAsync
- system "touch ${worksrcpath}/PyAsync/__init__.py"
+ file rename ${worksrcpath}/dnsthread.py ${worksrcpath}/PyAsync
+ file rename ${worksrcpath}/error_object.py ${worksrcpath}/PyAsync
+ file rename ${worksrcpath}/name_services.py ${worksrcpath}/PyAsync
+ file rename ${worksrcpath}/network_engine.py ${worksrcpath}/PyAsync
+ touch ${worksrcpath}/PyAsync/__init__.py
file copy ${filespath}/setup.py ${worksrcpath}
reinplace "s|VERSION|${version}|g" ${worksrcpath}/setup.py
}
Modified: trunk/dports/python/py-bsddb/Portfile
===================================================================
--- trunk/dports/python/py-bsddb/Portfile 2007-11-12 10:51:37 UTC (rev 30957)
+++ trunk/dports/python/py-bsddb/Portfile 2007-11-12 10:58:58 UTC (rev 30958)
@@ -38,10 +38,9 @@
}
post-patch {
- cd ${worksrcpath}
- reinplace "s|__VERSION__|${version}|g" setup.py
- reinplace "s|__LIBDIR__|${libdir}|g" setup.py
- reinplace "s|__INCDIR__|${incdir}|g" setup.py
+ reinplace "s|__VERSION__|${version}|g" ${worksrcpath}/setup.py
+ reinplace "s|__LIBDIR__|${libdir}|g" ${worksrcpath}/setup.py
+ reinplace "s|__INCDIR__|${incdir}|g" ${worksrcpath}/setup.py
}
livecheck.check regex
Modified: trunk/dports/python/py-ebay/Portfile
===================================================================
--- trunk/dports/python/py-ebay/Portfile 2007-11-12 10:51:37 UTC (rev 30957)
+++ trunk/dports/python/py-ebay/Portfile 2007-11-12 10:58:58 UTC (rev 30958)
@@ -26,9 +26,8 @@
file rename ${workpath}/${distname} ${workpath}/eBay
file copy ${filespath}/setup.py ${workpath}
file copy ${filespath}/__init__.py ${workpath}/eBay
- cd ${workpath}
- reinplace "s|__VERSION__|${version}|g" eBay/__init__.py setup.py
- reinplace "s|__DOC__|${description}|g" eBay/__init__.py
+ reinplace "s|__VERSION__|${version}|g" ${workpath}/eBay/__init__.py ${workpath}/setup.py
+ reinplace "s|__DOC__|${description}|g" ${workpath}/eBay/__init__.py
}
post-destroot {
Modified: trunk/dports/python/py-gdbm/Portfile
===================================================================
--- trunk/dports/python/py-gdbm/Portfile 2007-11-12 10:51:37 UTC (rev 30957)
+++ trunk/dports/python/py-gdbm/Portfile 2007-11-12 10:58:58 UTC (rev 30958)
@@ -28,9 +28,8 @@
}
patch {
- cd ${worksrcpath}
- reinplace "s|__VERSION__|${version}|g" setup.py
- reinplace "s|__PREFIX__|${prefix}|g" setup.py
+ reinplace "s|__VERSION__|${version}|g" ${worksrcpath}/setup.py
+ reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py
}
livecheck.check regex
Modified: trunk/dports/python/py-mad/Portfile
===================================================================
--- trunk/dports/python/py-mad/Portfile 2007-11-12 10:51:37 UTC (rev 30957)
+++ trunk/dports/python/py-mad/Portfile 2007-11-12 10:58:58 UTC (rev 30958)
@@ -34,6 +34,5 @@
post-destroot {
xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING NEWS README THANKS \
${destroot}${prefix}/share/doc/${name}
- cd ${destroot}${prefix}/lib/python2.4/site-packages/
- file rename madmodule.so mad.so
+ file rename ${destroot}${prefix}/lib/python2.4/site-packages/madmodule.so ${destroot}${prefix}/lib/python2.4/site-packages/mad.so
}
Modified: trunk/dports/python/py-psycopg/Portfile
===================================================================
--- trunk/dports/python/py-psycopg/Portfile 2007-11-12 10:51:37 UTC (rev 30957)
+++ trunk/dports/python/py-psycopg/Portfile 2007-11-12 10:58:58 UTC (rev 30958)
@@ -31,13 +31,12 @@
--with-python=${prefix}/bin/python2.4
post-configure {
- cd ${worksrcpath}
reinplace "s|PY_LIB_DIR = \$(prefix)|\
- PY_LIB_DIR = ${destroot}${prefix}|g" Makefile
+ PY_LIB_DIR = ${destroot}${prefix}|g" ${worksrcpath}/Makefile
reinplace "s|PY_MOD_DIR = \$(exec_prefix)|\
- PY_MOD_DIR = ${destroot}${prefix}|g" Makefile
+ PY_MOD_DIR = ${destroot}${prefix}|g" ${worksrcpath}/Makefile
reinplace "s|@echo 'Installing shared modules...'|\
- install -m 755 -d \$(PY_MOD_DIR)|g" Makefile
+ install -m 755 -d \$(PY_MOD_DIR)|g" ${worksrcpath}/Makefile
}
build.target
@@ -58,6 +57,5 @@
dt.py first.py integrity.py notify.py oid.py somehackers.jpg \
threads.py usercast.py whereareyou.jpg work.py \
${destroot}${prefix}/share/doc/${name}/examples
- cd ${destroot}${prefix}/lib/python2.4/site-packages
- file rename psycopgmodule.so psycopg.so
+ file rename ${destroot}${prefix}/lib/python2.4/site-packages/psycopgmodule.so ${destroot}${prefix}/lib/python2.4/site-packages/psycopg.so
}
Modified: trunk/dports/python/py-rt/Portfile
===================================================================
--- trunk/dports/python/py-rt/Portfile 2007-11-12 10:51:37 UTC (rev 30957)
+++ trunk/dports/python/py-rt/Portfile 2007-11-12 10:58:58 UTC (rev 30958)
@@ -25,9 +25,8 @@
extract.dir ${worksrcpath}/rt
patch {
- cd ${worksrcpath}
- reinplace "s|__VERSION__|${version}|g" setup.py
- reinplace "s| /usr/bin/env python2|${python.bin}|g" rt/bgp.py rt/isis.py
+ reinplace "s|__VERSION__|${version}|g" ${worksrcpath}/setup.py
+ reinplace "s| /usr/bin/env python2|${python.bin}|g" ${worksrcpath}/rt/bgp.py ${worksrcpath}/rt/isis.py
}
post-destroot {
Modified: trunk/dports/python/py-scientific/Portfile
===================================================================
--- trunk/dports/python/py-scientific/Portfile 2007-11-12 10:51:37 UTC (rev 30957)
+++ trunk/dports/python/py-scientific/Portfile 2007-11-12 10:58:58 UTC (rev 30958)
@@ -38,7 +38,6 @@
}
post-destroot {
- cd ${worksrcpath}/Src/MPI
- xinstall -m 0755 mpipython ${destroot}${prefix}/bin
+ xinstall -m 0755 -W ${worksrcpath}/Src/MPI mpipython ${destroot}${prefix}/bin
}
}
Modified: trunk/dports/python/py-tlslite/Portfile
===================================================================
--- trunk/dports/python/py-tlslite/Portfile 2007-11-12 10:51:37 UTC (rev 30957)
+++ trunk/dports/python/py-tlslite/Portfile 2007-11-12 10:58:58 UTC (rev 30958)
@@ -27,7 +27,8 @@
file mkdir ${destroot}/${prefix}/share/doc/${name}
xinstall -m 644 ${worksrcpath}/readme.txt \
${destroot}/${prefix}/share/doc/${name}
- cd ${destroot}${prefix}/bin
- reinplace "s|#! python|#!${python.bin}|g" tls.py tlsdb.py
+ foreach f {tls.py tlsdb.py} {
+ reinplace "s|#! python|#!${python.bin}|g" ${destroot}${prefix}/bin/${f}
+ }
}
Modified: trunk/dports/python/py25-scientific/Portfile
===================================================================
--- trunk/dports/python/py25-scientific/Portfile 2007-11-12 10:51:37 UTC (rev 30957)
+++ trunk/dports/python/py25-scientific/Portfile 2007-11-12 10:58:58 UTC (rev 30958)
@@ -35,7 +35,6 @@
}
post-destroot {
- cd ${worksrcpath}/Src/MPI
- xinstall -m 0755 mpipython ${destroot}${prefix}/bin
+ xinstall -m 0755 -W ${worksrcpath}/Src/MPI mpipython ${destroot}${prefix}/bin
}
}
Modified: trunk/dports/python/py25-sqlite3/Portfile
===================================================================
--- trunk/dports/python/py25-sqlite3/Portfile 2007-11-12 10:51:37 UTC (rev 30957)
+++ trunk/dports/python/py25-sqlite3/Portfile 2007-11-12 10:58:58 UTC (rev 30958)
@@ -30,10 +30,9 @@
depends_lib-append port:sqlite3
configure {
- cd ${worksrcpath}
- reinplace "s|__VERSION__|${version}|g" setup.py
- reinplace "s|__LIBDIR__|${libdir}|g" setup.py
- reinplace "s|__INCDIR__|${incdir}|g" setup.py
+ reinplace "s|__VERSION__|${version}|g" ${worksrcpath}/setup.py
+ reinplace "s|__LIBDIR__|${libdir}|g" ${worksrcpath}/setup.py
+ reinplace "s|__INCDIR__|${incdir}|g" ${worksrcpath}/setup.py
}
livecheck.check regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071112/08710b9d/attachment-0001.html
More information about the macports-changes
mailing list