Ticket #11263: py-sip-4.5.2.diff
File py-sip-4.5.2.diff, 2.2 KB (added by pipping@…, 18 years ago) |
---|
-
files/find_modulepath.py
1 import distutils.sysconfig 2 print distutils.sysconfig.get_python_lib() -
Portfile
3 3 PortSystem 1.0 4 4 5 5 name py-sip 6 version 4.5 6 version 4.5.2 7 7 revision 1 8 8 categories python devel 9 9 maintainers mww@opendarwin.org … … 21 21 http://www.gtlib.gatech.edu/pub/gentoo/distfiles/ 22 22 23 23 distname sip-${version} 24 checksums md5 8171a370e15b2bf7ed3a1b579c0e9ae1\25 sha1 873aa5e2d4ee9030d7903add7a8bf2b829e488cc \26 rmd160 5db05e918ba905e8b3a326e2902de71c757bd91624 checksums md5 0fdb0cbdcbbe158009196437711eb8bd \ 25 sha1 2ca7a3b61ce65dee128ac227f667fc72eb00bd5c \ 26 rmd160 82efbb024e5a5be222173ca8c0e2629e7b909258 27 27 dist_subdir python 28 28 29 depends_lib port:python24 29 depends_lib bin:python:python25 30 set sitepackages [exec python ${portpath}/${filesdir}/find_modulepath.py] 30 31 31 32 patchfiles patch-siputils.py 32 33 33 configure.cmd ${prefix}/bin/python2.4configure.py34 configure.pre_args -d ${ prefix}/lib/python2.4/site-packages\35 -e ${prefix}/include/ python2.4\34 configure.cmd python configure.py 35 configure.pre_args -d ${sitepackages} \ 36 -e ${prefix}/include/sip \ 36 37 -v ${prefix}/share/sip \ 37 38 -p macx-g++ 38 39 configure.post_args LFLAGS="-F${prefix}/Library/Frameworks -L${prefix}/lib" 39 40 40 41 test.run yes 41 test.cmd cd siplib && ${prefix}/bin/python2.4-c 'import sip'42 test.cmd cd siplib && python -c 'import sip' 42 43 43 44 post-destroot { 44 45 xinstall -m 755 -d ${destroot}/${prefix}/share/doc 45 46 file copy ${worksrcpath}/doc ${destroot}/${prefix}/share/doc/${name} 46 47 xinstall -m 644 -W ${worksrcpath} LICENSE NEWS README THANKS TODO \ 47 48 ${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}"50 49 }