Ticket #11263: py-sip-4.5.2.diff

File py-sip-4.5.2.diff, 2.2 KB (added by pipping@…, 17 years ago)

converted to patch

  • files/find_modulepath.py

     
     1import distutils.sysconfig
     2print distutils.sysconfig.get_python_lib()
  • Portfile

     
    33PortSystem 1.0
    44
    55name                    py-sip
    6 version                 4.5
     6version                 4.5.2
    77revision                1
    88categories              python devel
    99maintainers             mww@opendarwin.org
     
    2121                http://www.gtlib.gatech.edu/pub/gentoo/distfiles/
    2222               
    2323distname                sip-${version}
    24 checksums               md5 8171a370e15b2bf7ed3a1b579c0e9ae1 \
    25                         sha1 873aa5e2d4ee9030d7903add7a8bf2b829e488cc \
    26                         rmd160 5db05e918ba905e8b3a326e2902de71c757bd916
     24checksums               md5 0fdb0cbdcbbe158009196437711eb8bd \
     25                        sha1 2ca7a3b61ce65dee128ac227f667fc72eb00bd5c \
     26                        rmd160 82efbb024e5a5be222173ca8c0e2629e7b909258
    2727dist_subdir             python
    2828
    29 depends_lib             port:python24
     29depends_lib             bin:python:python25
     30set sitepackages [exec python ${portpath}/${filesdir}/find_modulepath.py]
    3031
    3132patchfiles      patch-siputils.py
    3233
    33 configure.cmd   ${prefix}/bin/python2.4 configure.py
    34 configure.pre_args  -d ${prefix}/lib/python2.4/site-packages \
    35                                 -e ${prefix}/include/python2.4 \
     34configure.cmd   python configure.py
     35configure.pre_args  -d ${sitepackages} \
     36                                -e ${prefix}/include/sip \
    3637                                -v ${prefix}/share/sip \
    3738                                -p macx-g++
    3839configure.post_args     LFLAGS="-F${prefix}/Library/Frameworks -L${prefix}/lib"
    3940
    4041test.run        yes
    41 test.cmd        cd siplib && ${prefix}/bin/python2.4 -c 'import sip'
     42test.cmd        cd siplib && python -c 'import sip'
    4243
    4344post-destroot {
    4445        xinstall -m 755 -d ${destroot}/${prefix}/share/doc
    4546        file copy ${worksrcpath}/doc ${destroot}/${prefix}/share/doc/${name}
    4647        xinstall -m 644 -W ${worksrcpath} LICENSE NEWS README THANKS TODO \
    4748                ${destroot}${prefix}/share/doc/${name}
    48         system "${prefix}/bin/python2.4 ${prefix}/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/compileall.py ${destroot}${prefix}"
    49         system "${prefix}/bin/python2.4 -O ${prefix}/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/compileall.py ${destroot}${prefix}"
    5049}