Changeset 30958


Ignore:
Timestamp:
Nov 12, 2007, 10:58:58 AM (12 years ago)
Author:
mww@…
Message:

remove to-be-deprecated 'cd' command

Location:
trunk/dports/python
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/python/py-ao/Portfile

    r30249 r30958  
    3232        xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog README \
    3333                ${destroot}${prefix}/share/doc/${name}
    34         cd ${destroot}${prefix}/lib/python2.4/site-packages/
    35         file rename aomodule.so ao.so
     34        file rename ${destroot}${prefix}/lib/python2.4/site-packages/aomodule.so ${destroot}${prefix}/lib/python2.4/site-packages/ao.so
    3635}
  • trunk/dports/python/py-async/Portfile

    r30249 r30958  
    2323patch   {
    2424        file mkdir ${worksrcpath}/PyAsync
    25         cd ${worksrcpath}
    26         file rename dnsthread.py PyAsync
    27         file rename error_object.py PyAsync
    28         file rename name_services.py PyAsync
    29         file rename network_engine.py PyAsync
    30         system "touch ${worksrcpath}/PyAsync/__init__.py"
     25        file rename ${worksrcpath}/dnsthread.py ${worksrcpath}/PyAsync
     26        file rename ${worksrcpath}/error_object.py ${worksrcpath}/PyAsync
     27        file rename ${worksrcpath}/name_services.py ${worksrcpath}/PyAsync
     28        file rename ${worksrcpath}/network_engine.py ${worksrcpath}/PyAsync
     29        touch ${worksrcpath}/PyAsync/__init__.py
    3130        file copy ${filespath}/setup.py ${worksrcpath}
    3231        reinplace "s|VERSION|${version}|g" ${worksrcpath}/setup.py
  • trunk/dports/python/py-bsddb/Portfile

    r30184 r30958  
    3939
    4040post-patch      {
    41         cd ${worksrcpath}
    42         reinplace "s|__VERSION__|${version}|g" setup.py
    43         reinplace "s|__LIBDIR__|${libdir}|g" setup.py
    44         reinplace "s|__INCDIR__|${incdir}|g" setup.py
     41        reinplace "s|__VERSION__|${version}|g" ${worksrcpath}/setup.py
     42        reinplace "s|__LIBDIR__|${libdir}|g" ${worksrcpath}/setup.py
     43        reinplace "s|__INCDIR__|${incdir}|g" ${worksrcpath}/setup.py
    4544}
    4645
  • trunk/dports/python/py-ebay/Portfile

    r30249 r30958  
    2727        file copy ${filespath}/setup.py ${workpath}
    2828        file copy ${filespath}/__init__.py ${workpath}/eBay
    29         cd ${workpath}
    30         reinplace "s|__VERSION__|${version}|g" eBay/__init__.py setup.py
    31         reinplace "s|__DOC__|${description}|g" eBay/__init__.py
     29        reinplace "s|__VERSION__|${version}|g" ${workpath}/eBay/__init__.py ${workpath}/setup.py
     30        reinplace "s|__DOC__|${description}|g" ${workpath}/eBay/__init__.py
    3231}
    3332
  • trunk/dports/python/py-gdbm/Portfile

    r30184 r30958  
    2929
    3030patch {
    31         cd ${worksrcpath}
    32         reinplace "s|__VERSION__|${version}|g" setup.py
    33         reinplace "s|__PREFIX__|${prefix}|g" setup.py
     31        reinplace "s|__VERSION__|${version}|g" ${worksrcpath}/setup.py
     32        reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py
    3433}
    3534
  • trunk/dports/python/py-mad/Portfile

    r30249 r30958  
    3535        xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING NEWS README THANKS \
    3636                ${destroot}${prefix}/share/doc/${name}
    37         cd ${destroot}${prefix}/lib/python2.4/site-packages/
    38         file rename madmodule.so mad.so
     37        file rename ${destroot}${prefix}/lib/python2.4/site-packages/madmodule.so ${destroot}${prefix}/lib/python2.4/site-packages/mad.so
    3938}
  • trunk/dports/python/py-psycopg/Portfile

    r30249 r30958  
    3232
    3333post-configure {
    34         cd ${worksrcpath}
    3534        reinplace "s|PY_LIB_DIR = \$(prefix)|\
    36                 PY_LIB_DIR = ${destroot}${prefix}|g" Makefile
     35                PY_LIB_DIR = ${destroot}${prefix}|g" ${worksrcpath}/Makefile
    3736        reinplace "s|PY_MOD_DIR = \$(exec_prefix)|\
    38                 PY_MOD_DIR = ${destroot}${prefix}|g" Makefile
     37                PY_MOD_DIR = ${destroot}${prefix}|g" ${worksrcpath}/Makefile
    3938        reinplace "s|@echo 'Installing shared modules...'|\
    40                 install -m 755 -d \$(PY_MOD_DIR)|g" Makefile
     39                install -m 755 -d \$(PY_MOD_DIR)|g" ${worksrcpath}/Makefile
    4140}
    4241
     
    5958                threads.py usercast.py whereareyou.jpg work.py \
    6059                ${destroot}${prefix}/share/doc/${name}/examples
    61         cd ${destroot}${prefix}/lib/python2.4/site-packages
    62         file rename psycopgmodule.so psycopg.so
     60        file rename ${destroot}${prefix}/lib/python2.4/site-packages/psycopgmodule.so ${destroot}${prefix}/lib/python2.4/site-packages/psycopg.so
    6361}
  • trunk/dports/python/py-rt/Portfile

    r30249 r30958  
    2626
    2727patch {
    28         cd ${worksrcpath}
    29         reinplace "s|__VERSION__|${version}|g" setup.py
    30         reinplace "s| /usr/bin/env python2|${python.bin}|g" rt/bgp.py rt/isis.py
     28        reinplace "s|__VERSION__|${version}|g" ${worksrcpath}/setup.py
     29        reinplace "s| /usr/bin/env python2|${python.bin}|g" ${worksrcpath}/rt/bgp.py ${worksrcpath}/rt/isis.py
    3130}
    3231
  • trunk/dports/python/py-scientific/Portfile

    r28212 r30958  
    3939
    4040        post-destroot    {
    41                  cd ${worksrcpath}/Src/MPI
    42                  xinstall -m 0755 mpipython ${destroot}${prefix}/bin
     41                 xinstall -m 0755 -W ${worksrcpath}/Src/MPI mpipython ${destroot}${prefix}/bin
    4342        }
    4443}
  • trunk/dports/python/py-tlslite/Portfile

    r30249 r30958  
    2828        xinstall -m 644 ${worksrcpath}/readme.txt \
    2929                ${destroot}/${prefix}/share/doc/${name}
    30         cd ${destroot}${prefix}/bin
    31         reinplace "s|#! python|#!${python.bin}|g" tls.py tlsdb.py
     30        foreach f {tls.py tlsdb.py} {
     31                reinplace "s|#! python|#!${python.bin}|g" ${destroot}${prefix}/bin/${f}
     32        }
    3233}
    3334
  • trunk/dports/python/py25-scientific/Portfile

    r27693 r30958  
    3636
    3737        post-destroot    {
    38                  cd ${worksrcpath}/Src/MPI
    39                  xinstall -m 0755 mpipython ${destroot}${prefix}/bin
     38                 xinstall -m 0755 -W ${worksrcpath}/Src/MPI mpipython ${destroot}${prefix}/bin
    4039        }
    4140}
  • trunk/dports/python/py25-sqlite3/Portfile

    r30184 r30958  
    3131
    3232configure       {
    33         cd ${worksrcpath}
    34         reinplace "s|__VERSION__|${version}|g" setup.py
    35         reinplace "s|__LIBDIR__|${libdir}|g" setup.py
    36         reinplace "s|__INCDIR__|${incdir}|g" setup.py
     33        reinplace "s|__VERSION__|${version}|g" ${worksrcpath}/setup.py
     34        reinplace "s|__LIBDIR__|${libdir}|g" ${worksrcpath}/setup.py
     35        reinplace "s|__INCDIR__|${incdir}|g" ${worksrcpath}/setup.py
    3736}
    3837
Note: See TracChangeset for help on using the changeset viewer.