Changeset 63036


Ignore:
Timestamp:
Jan 24, 2010, 10:43:40 AM (10 years ago)
Author:
jmr@…
Message:

add python.link_binaries option to python26 portgroup, adapt ports accordingly

Location:
trunk/dports
Files:
44 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/python26-1.0.tcl

    r44906 r63036  
    5858        xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}/examples
    5959}
     60
     61options         python.link_binaries
     62default python.link_binaries yes
     63post-destroot {
     64    if {${python.link_binaries}} {
     65        foreach bin [glob -nocomplain -tails -directory "${destroot}${python.prefix}/bin" *] {
     66            if {[catch {file type "${destroot}${prefix}/bin/${bin}-${python.branch}"}]} {
     67                ln -s "${python.prefix}/bin/${bin}" "${destroot}${prefix}/bin/${bin}-${python.branch}"
     68            }
     69        }
     70    }
     71}
  • trunk/dports/net/py26-scapy/Portfile

    r61881 r63036  
    3939
    4040post-destroot {
    41         ln -s ${python.prefix}/bin/scapy \
    42               ${destroot}${prefix}/bin/scapy-${python.branch}
    43         ln -s ${python.prefix}/bin/UTscapy \
    44               ${destroot}${prefix}/bin/UTscapy-${python.branch}
    4541        ln -s ${python.prefix}/share/man/man1/scapy.1.gz \
    4642              ${destroot}${prefix}/share/man/man1/scapy-${python.branch}.1.gz
  • trunk/dports/python/py26-bpython/Portfile

    r59614 r63036  
    2727
    2828post-destroot {
    29     ln -s ${python.prefix}/bin/bpython ${destroot}${prefix}/bin/bpython
    3029    set sharedoc ${destroot}${prefix}/share/bpython2.6
    3130    xinstall -d ${sharedoc}
  • trunk/dports/python/py26-cheetah/Portfile

    r60270 r63036  
    2828        xinstall -m 644 -W ${worksrcpath} CHANGES LICENSE TODO \
    2929                ${destroot}${prefix}/share/doc/${name}
    30         ln -s ${python.prefix}/bin/cheetah ${destroot}${prefix}/bin/cheetah-2.6
    31         ln -s ${python.prefix}/bin/cheetah-compile \
    32                 ${destroot}${prefix}/bin/cheetah-compile-2.6
    3330}
    3431
  • trunk/dports/python/py26-chm2pdf/Portfile

    r57306 r63036  
    2424                    port:py26-chm \
    2525                    port:htmldoc
    26                    
    27 post-destroot {
    28   ln -s ${python.prefix}/bin/chm2pdf ${destroot}${prefix}/bin/chm2pdf
    29 }                   
  • trunk/dports/python/py26-clonedigger/Portfile

    r57375 r63036  
    2020                    rmd160 deaf039ca347181959fe54da1b88f6e932b15340
    2121
    22 post-destroot {
    23     ln -s ${python.prefix}/bin/clonedigger \
    24         ${destroot}${prefix}/bin/clonedigger-${python.branch}
    25 }
    26 
    2722livecheck.type      regex
    2823livecheck.url       http://pypi.python.org/pypi/clonedigger
    2924livecheck.regex     "clonedigger-(.+?).tar.gz"
    30 
  • trunk/dports/python/py26-couchdb/Portfile

    r59655 r63036  
    3333                    port:py26-setuptools
    3434
    35 post-destroot {
    36     foreach f {couchdb-dump couchdb-load couchdb-replicate couchpy} {
    37         ln -s ${python.prefix}/bin/${f} ${destroot}${prefix}/bin/${f}
    38     }
    39 }
    40 
    4135livecheck.type      regex
    4236livecheck.url       http://pypi.python.org/pypi/CouchDB
  • trunk/dports/python/py26-cython/Portfile

    r61311 r63036  
    3131    xinstall -m 644 -W ${worksrcpath} INSTALL.txt README.txt\
    3232        ToDo.txt USAGE.txt ${destroot}${prefix}/share/doc/${name}
    33     ln -s ${python.prefix}/bin/cython \
    34         ${destroot}${prefix}/bin/cython-${python.branch}
    3533}
    3634
  • trunk/dports/python/py26-django/Portfile

    r59400 r63036  
    3838}
    3939
     40# we want *-2.6.py not *.py-2.6
     41python.link_binaries no
    4042post-destroot   {
    4143    xinstall -m 644 -W ${worksrcpath} AUTHORS INSTALL LICENSE README \
  • trunk/dports/python/py26-docutils/Portfile

    r49974 r63036  
    2626                    rmd160  3e8dfd2923528bbeac0ca33ccfe6f576c74f1886
    2727
     28# we want *-2.6.py not *.py-2.6
     29python.link_binaries no
    2830post-destroot {
    2931    foreach f {rst2html rst2latex rst2newlatex rst2pseudoxml rst2s5 rst2xml rstpep2html} {
  • trunk/dports/python/py26-epydoc/Portfile

    r49633 r63036  
    3030        xinstall -m 644 -W ${worksrcpath} LICENSE.txt README.txt \
    3131                ${destroot}${prefix}/share/doc/${name}
    32         foreach binfile {apirst2html.py epydoc epydocgui} {
    33                 ui_msg "see ${binfile}"
    34                 ln -s ${python.prefix}/bin/${binfile} \
    35                         ${destroot}${prefix}/bin/${binfile}-${python.branch}
    36         }
    3732}
    38 
  • trunk/dports/python/py26-fabric/Portfile

    r60348 r63036  
    3333                    port:py26-paramiko
    3434
    35 post-destroot {
    36     ln -s ${python.prefix}/bin/fab \
    37         ${destroot}${prefix}/bin/fab-${python.branch}
    38 }
    39 
    4035livecheck.type      regex
    4136livecheck.url       http://pypi.python.org/pypi/Fabric
  • trunk/dports/python/py26-freebase/Portfile

    r60279 r63036  
    2929   xinstall -m 644 -W ${worksrcpath} README \
    3030      ${destroot}${prefix}/share/doc/${name}
    31    foreach binfile {fb_restore fb_save_base fb_save_type fcl} {
    32       ln -s ${python.prefix}/bin/${binfile} ${destroot}${prefix}/bin/${binfile}-${python.branch}
    33    }
    3431}
    3532
  • trunk/dports/python/py26-gtk/Portfile

    r59093 r63036  
    5858    system "ln -s ${python_prefix}/share/${my_name} ${destroot}${prefix}/share/${my_name}26"
    5959    system "ln -s ${python_prefix}/share/gtk-doc/html/${my_name} ${destroot}${prefix}/share/gtk-doc/html/${my_name}26"
    60 
    61     foreach bin [glob -directory ${destroot}${python_prefix}/bin -tails *] {
    62         ln -s ${python_prefix}/bin/${bin} ${destroot}${prefix}/bin/${bin}-2.6
    63     }
    6460}
    6561
  • trunk/dports/python/py26-hgsvn/Portfile

    r57375 r63036  
    2626        xinstall -m 644 -W ${worksrcpath} AUTHORS.txt COPYING.txt README.txt TODO.txt  \
    2727                ${destroot}${prefix}/share/doc/${name}
    28         foreach bin [glob -tails -directory ${destroot}${python.prefix}/bin *] {
    29                 ln -s ${python.prefix}/bin/${bin} ${destroot}${prefix}/bin/${bin}
    30         }
    3128}
    3229
  • trunk/dports/python/py26-imdb/Portfile

    r48481 r63036  
    2222                    rmd160  6243c0ddb0084e3d31bf217c04d6382386d83b83
    2323
     24python.link_binaries no
    2425post-destroot {
    2526   eval move [glob ${destroot}${python.prefix}/doc/*] \
  • trunk/dports/python/py26-impressive/Portfile

    r50980 r63036  
    3939build {}
    4040
     41python.link_binaries no
    4142destroot {
    4243    xinstall -d ${destroot}${prefix}/bin
  • trunk/dports/python/py26-ipython/Portfile

    r57375 r63036  
    3030
    3131post-destroot {
    32     foreach f [glob -tails -directory ${destroot}${python.prefix}/bin *] {
    33         ln -s ${python.prefix}/bin/${f} ${destroot}${prefix}/bin/${f}${python.branch}
    34     }
    3532    foreach f {ipython pycolor} {
    3633        ln -s ${python.prefix}/share/man/man1/${f}.1.gz ${destroot}${prefix}/share/man/man1/${f}${python.branch}.1.gz
  • trunk/dports/python/py26-kid/Portfile

    r57375 r63036  
    2121depends_build-append    port:py26-setuptools
    2222
    23 post-destroot {
    24     ln -s ${python.prefix}/bin/kid ${destroot}${prefix}/bin/kid-2.6
    25     ln -s ${python.prefix}/bin/kidc ${destroot}${prefix}/bin/kidc-2.6
    26 }
    27 
    2823test.run                yes
    2924
  • trunk/dports/python/py26-lint/Portfile

    r57431 r63036  
    4141        ${destroot}${prefix}/share/doc/${name}
    4242    file delete ${destroot}${python.pkgd}/logilab/__init__.py
    43     foreach binfile {epylint pylint pylint-gui pyreverse symilar} {
    44         ln -s ${python.prefix}/bin/${binfile} ${destroot}${prefix}/bin/${binfile}-${python.branch}
    45     }
    4643}
    47 
  • trunk/dports/python/py26-logilab-common/Portfile

    r57427 r63036  
    2525   xinstall -m 644 -W ${worksrcpath} ChangeLog README \
    2626      ${destroot}${prefix}/share/doc/${name}
    27 
    28    # alter the install name of pytest to include version name
    29    ln -s ${python.prefix}/bin/pytest ${destroot}${prefix}/bin/pytest2.6
    3027}
    3128
  • trunk/dports/python/py26-macholib/Portfile

    r60871 r63036  
    3232                rmd160  fa408bc5f1f3f58c0ff3ab43eb56f644bd6b83fa
    3333
    34 post-destroot {
    35     foreach bin [glob -tails -directory "${destroot}${python.prefix}/bin" *] {
    36         ln -s ${python.prefix}/bin/${bin} ${destroot}${prefix}/bin/${bin}-2.6
    37     }
    38 }
    39 
    4034livecheck.type  regex
    4135livecheck.url   http://pypi.python.org/pypi/macholib/
  • trunk/dports/python/py26-mako/Portfile

    r60460 r63036  
    3636                    sha1    b3e4d48c30b5a2d273959e3921de428772f2acb4 \
    3737                    rmd160  53341654526e5636d3eb3c5472bf53446d82dfad
    38 
    39 post-destroot {
    40     foreach bin [glob -tails -directory ${destroot}${python.prefix}/bin *] {
    41         ln -s ${python.prefix}/bin/${bin} ${destroot}${prefix}/bin/${bin}${python.branch}
    42     }
    43 }
  • trunk/dports/python/py26-markdown/Portfile

    r59537 r63036  
    2020                    rmd160  fd3b0d634a8e066c48de8bab6141662e21d935a7
    2121
    22 post-destroot {
    23     ln -s ${python.prefix}/bin/markdown \
    24         ${destroot}${prefix}/bin/markdown-${python.branch}
    25 }
    26 
    2722livecheck.type      regex
    2823livecheck.url       http://pypi.python.org/pypi/Markdown
  • trunk/dports/python/py26-nose/Portfile

    r58650 r63036  
    4040
    4141post-destroot {
    42     set branch 2.6
    43     set framewpath ${frameworks_dir}/Python.framework
    44     set framewdir  ${framewpath}/Versions/${branch}
    45 
    46     ln -s ${framewdir}/share/man/man1/nosetests.1 ${destroot}${prefix}/share/man/man1/nosetests${branch}.1
    47     ln -s ${python.prefix}/bin/nosetests  ${destroot}${prefix}/bin/nosetests-${branch}
     42    ln -s ${python.prefix}/share/man/man1/nosetests.1 ${destroot}${prefix}/share/man/man1/nosetests${python.branch}.1
    4843
    4944    xinstall -m 644 -W ${worksrcpath} \
  • trunk/dports/python/py26-numpy/Portfile

    r62626 r63036  
    5151}
    5252
    53 post-destroot {
    54     set branch 2.6
    55     ln -s ${python.prefix}/bin/f2py ${destroot}${prefix}/bin/f2py-${branch}
    56 }
    57 
    5853variant no_gcc43 description {Do not use the gcc43 compiler (disables fortran code)} {
    5954    depends_lib-delete port:gcc43
  • trunk/dports/python/py26-pastescript/Portfile

    r50071 r63036  
    2828                copy $f ${destroot}${prefix}/share/doc/${name}/[file tail $f]
    2929        }
    30         ln -s ${python.prefix}/bin/paster ${destroot}${prefix}/bin/paster-2.6
    3130}
  • trunk/dports/python/py26-paver/Portfile

    r57375 r63036  
    3636    xinstall -m 644 -W ${worksrcpath} LICENSE.txt README.txt \
    3737        ${destroot}${prefix}/share/doc/${name}
    38    
    39     # To avoid conflict between py/py25/py26-paver
    40     ln -s ${python.prefix}/bin/paver \
    41         ${destroot}${prefix}/bin/paver-${python.branch}
    4238}
    4339
  • trunk/dports/python/py26-pip/Portfile

    r60710 r63036  
    2929        requirement-format.txt license.txt configuration.txt \
    3030        ${destroot}${prefix}/share/doc/${name}
    31     ln -s ${python.prefix}/bin/pip ${destroot}${prefix}/bin/pip-2.6
    3231}
    3332
  • trunk/dports/python/py26-py/Portfile

    r61904 r63036  
    2020                  rmd160 c48c67421545b2181eaff75e8d05cbcebf4ead1c
    2121distname          py-${version}
    22 
    23 post-destroot {
    24     foreach f [glob -tails -directory ${destroot}${python.prefix}/bin *] {
    25         ln -s ${python.prefix}/bin/${f} ${destroot}${prefix}/bin/${f}${python.branch}
    26     }
    27 }
  • trunk/dports/python/py26-pycallgraph/Portfile

    r61423 r63036  
    2727
    2828post-destroot {
    29     ln -s ${frameworks_dir}/Python.framework/Versions/${python.branch}/bin/${my_name} \
    30         ${destroot}${prefix}/bin/${my_name}-${python.branch}
    3129    set docdir ${prefix}/share/doc/${name}
    3230    xinstall -d ${destroot}${docdir}/html
  • trunk/dports/python/py26-pyflakes/Portfile

    r61528 r63036  
    2424depends_lib-append  port:py26-setuptools
    2525
    26 post-destroot {
    27     ln -s ${python.prefix}/bin/pyflakes ${destroot}${prefix}/bin/pyflakes-2.6
    28 }
    29 
    3026livecheck.type      regex
    3127livecheck.url       http://pypi.python.org/pypi/pyflakes/
  • trunk/dports/python/py26-rdflib/Portfile

    r49656 r63036  
    3030
    3131post-destroot {
    32         ln -s ${python.prefix}/bin/rdfpipe \
    33                 ${destroot}${prefix}/bin/rdfpipe-${python.branch}
    3432        xinstall -m 644 -W ${worksrcpath} CHANGELOG LICENSE \
    3533                README ${destroot}${prefix}/share/doc/${name}
  • trunk/dports/python/py26-robotframework-ride/Portfile

    r61597 r63036  
    2828                    rmd160  4c143c825fb92d32333e17fac180545409773f33
    2929
    30 set framewpath ${frameworks_dir}/Python.framework
    31 set framewdir  ${framewpath}/Versions/2.6
    32 
     30python.link_binaries no
    3331post-destroot {
    34     xinstall ${destroot}/${framewdir}/bin/ride.py ${destroot}/${prefix}/bin/ride.py
     32    ln -s ${python.prefix}/bin/ride.py ${destroot}${prefix}/bin/ride-${python.branch}.py
    3533}
    3634livecheck.type     regex
  • trunk/dports/python/py26-robotframework/Portfile

    r59889 r63036  
    2727                    rmd160  859dd7c3b97d43c099a13c13b268745828cdfaed
    2828
    29 set framewpath ${frameworks_dir}/Python.framework
    30 set framewdir  ${framewpath}/Versions/2.6
    31 
    3229post-destroot           {
    33     reinplace "s;${destroot};;" ${destroot}/${framewdir}/bin/pybot
    34     reinplace "s;${destroot};;" ${destroot}/${framewdir}/bin/jybot
    35     reinplace "s;${destroot};;" ${destroot}/${framewdir}/bin/rebot
    36 
    37     xinstall ${destroot}/${framewdir}/bin/pybot ${destroot}/${prefix}/bin/pybot
    38     xinstall ${destroot}/${framewdir}/bin/pybot ${destroot}/${prefix}/bin/jybot
    39     xinstall ${destroot}/${framewdir}/bin/pybot ${destroot}/${prefix}/bin/rebot
     30    reinplace "s;${destroot};;" ${destroot}${python.prefix}/bin/pybot
     31    reinplace "s;${destroot};;" ${destroot}${python.prefix}/bin/jybot
     32    reinplace "s;${destroot};;" ${destroot}${python.prefix}/bin/rebot
    4033}
    4134
  • trunk/dports/python/py26-scientific/Portfile

    r59361 r63036  
    3232                NETCDF_PREFIX=${prefix}
    3333
    34 post-destroot {
    35     foreach bin [glob -tails -directory ${destroot}${python.prefix}/bin *] {
    36         ln -s ${python.prefix}/bin/${bin} ${destroot}${prefix}/bin/${bin}${python.branch}
    37     }
    38 }
    39 
    4034platform macosx {
    4135    post-extract {
     
    6054    post-destroot {
    6155        xinstall ${worksrcpath}/Src/MPI/mpipython ${destroot}${python.prefix}/bin
    62         ln -s ${python.prefix}/bin/mpipython ${destroot}${prefix}/bin/mpipython${python.branch}
     56        ln -s ${python.prefix}/bin/mpipython ${destroot}${prefix}/bin/mpipython-${python.branch}
    6357    }
    6458}
  • trunk/dports/python/py26-setuptools/Portfile

    r60067 r63036  
    2727                                        rmd160  7af8f39e5e74d96d10cc0d00b15a26462d66f42c
    2828
     29python.link_binaries no
    2930post-destroot {
    3031        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
  • trunk/dports/python/py26-sphinx/Portfile

    r62674 r63036  
    3333                    port:py26-setuptools
    3434
    35 post-destroot {
    36     foreach bin [glob -tails -directory ${destroot}${python.prefix}/bin *] {
    37         ln -s ${python.prefix}/bin/${bin} ${destroot}${prefix}/bin/${bin}${python.branch}
    38     }
    39 }
    40 
    4135livecheck.type      regex
    4236livecheck.regex     {<p>Current version: <b>([0-9.]+)</b></p>}
  • trunk/dports/python/py26-sqlalchemy-migrate/Portfile

    r44908 r63036  
    2525depends_lib       port:py26-setuptools
    2626distname          sqlalchemy-migrate-${version}
    27 
    28 post-destroot {
    29     foreach bin [glob -tails -directory ${destroot}${python.prefix}/bin *] {
    30         ln -s ${python.prefix}/bin/${bin} ${destroot}${prefix}/bin/${bin}${python.branch}
    31     }
    32 }
  • trunk/dports/python/py26-sympy/Portfile

    r62562 r63036  
    2828
    2929post-destroot {
    30     ln -s ${python.prefix}/bin/isympy \
    31           ${destroot}${prefix}/bin/isympy${python.branch}
    3230    ln -s ${python.prefix}/share/man/man1/isympy.1 \
    3331          ${destroot}${prefix}/share/man/man1/isympy${python.branch}.1
  • trunk/dports/python/py26-twisted/Portfile

    r57375 r63036  
    2828depends_lib-append  port:py26-zopeinterface
    2929
    30 post-destroot {
    31     set branch 2.6
    32    
    33     foreach bin [glob -tails -directory ${destroot}${python.prefix}/bin *] {
    34         ln -s ${python.prefix}/bin/${bin} ${destroot}${prefix}/bin/${bin}-${branch}
    35         }
    36 }
    37 
    3830livecheck.type   regex
    3931livecheck.url    http://twistedmatrix.com/trac/wiki/Downloads
  • trunk/dports/python/py26-virtualenv/Portfile

    r60711 r63036  
    2626        copy $f ${destroot}${prefix}/share/doc/${name}/[file tail $f]
    2727    }
    28     foreach bin [glob -tails -directory ${destroot}${python.prefix}/bin *] {
    29         ln -s ${python.prefix}/bin/${bin} ${destroot}${prefix}/bin/${bin}${python.branch}
    30     }
    3128}
    3229
  • trunk/dports/python/py26-virtualenvwrapper/Portfile

    r58295 r63036  
    2626depends_lib-append  port:py26-setuptools\
    2727                    port:py26-virtualenv
    28 
    29 post-destroot   {
    30         ln -s ${python.prefix}/bin/virtualenvwrapper_bashrc \
    31             ${destroot}${prefix}/bin/virtualenvwrapper_bashrc-${python.branch}
    32 }
  • trunk/dports/python/py26-xattr/Portfile

    r58160 r63036  
    2424depends_lib-append  port:py26-setuptools
    2525
    26 post-destroot {
    27    foreach binfile [glob -tails -directory ${destroot}${python.prefix}/bin *] {
    28       ln -s ${python.prefix}/bin/${binfile} \
    29          ${destroot}${prefix}/bin/${binfile}
    30    }
    31 }
    32 
    3326livecheck.type      regex
    3427livecheck.url       http://svn.red-bean.com/bob/xattr/releases/
    3528livecheck.regex     xattr-(\[0-9.\]+)
    36 
Note: See TracChangeset for help on using the changeset viewer.