source: trunk/dports/python/py25-sip/Portfile @ 37929

Last change on this file since 37929 was 37929, checked in by ryandesign@…, 12 years ago

Set svn:keywords to Id on all portfiles per current guidelines

  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 37929 2008-06-29 22:28:34Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    py25-sip
6version                 4.7.6
7platforms               macosx
8categories              python devel
9maintainers             saispo@macports.org
10description             create Python bindings for C and C++ libraries
11long_description        SIP is a tool that makes it very easy to create \
12                                Python bindings for C and C++ libraries. \
13                                It was originally developed to create PyQt, \
14                                the Python bindings for the Qt toolkit, \
15                                but can be used to create bindings for any \
16                                C or C++ library.
17
18homepage        http://www.riverbankcomputing.co.uk/sip/
19master_sites    http://www.riverbankcomputing.com/static/Downloads/sip4/ \
20                http://gentoo.mirrors.easynews.com/linux/gentoo/distfiles/ \
21                http://gentoo.osuosl.org/distfiles/ \
22                http://www.gtlib.gatech.edu/pub/gentoo/distfiles/
23
24distname        sip-${version}
25checksums       md5 f49e93046fe438a8fb4c2ed481aa3951 \
26                sha1 8ae089513744c394e502e258b428780260e39cda \
27                rmd160 bc3b9668afc9f3c4e475ccd9a89d1b270ad5d0ba
28dist_subdir     python
29
30depends_lib     port:python25
31
32patchfiles      patch-siputils.py.diff
33
34configure.cmd   ${prefix}/bin/python2.5 configure.py
35configure.pre_args  -d ${prefix}/lib/python2.5/site-packages \
36                                -e ${prefix}/include/python2.5 \
37                                -v ${prefix}/share/sip \
38                                -p macx-g++
39configure.post_args     LFLAGS="-F${prefix}/Library/Frameworks -L${prefix}/lib"
40
41test.run        yes
42test.cmd        cd siplib && ${prefix}/bin/python2.5 -c 'import sip'
43
44post-destroot {
45        xinstall -m 755 -d ${destroot}${prefix}/share/doc
46        file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
47        xinstall -m 644 -W ${worksrcpath} LICENSE NEWS README TODO \
48                ${destroot}${prefix}/share/doc/${name}
49        system "${prefix}/bin/python2.5 ${prefix}/lib/python2.5/compileall.py ${destroot}${prefix}"
50        system "${prefix}/bin/python2.5 -O ${prefix}/lib/python2.5/compileall.py ${destroot}${prefix}"
51}
Note: See TracBrowser for help on using the repository browser.