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

Last change on this file since 58443 was 58443, checked in by macsforever2000@…, 8 years ago

Update to version 4.9.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 58443 2009-09-28 20:40:13Z macsforever2000@macports.org $
2
3PortSystem 1.0
4
5name                    py25-sip
6version                 4.9
7platforms               macosx
8categories              python devel
9maintainers             saispo openmaintainer
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/software/sip/intro
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     caf83cde684dbf7aeeb9c4447d54b98d \
26                    sha1    5c9e0aa55d664e2a35295b031df950d0a4fe9529 \
27                    rmd160  71b181093d9410a282de73f3c8235e2f330442e7
28dist_subdir     python
29
30depends_lib     port:python25
31
32configure.cmd   ${prefix}/bin/python2.5 configure.py
33configure.pre_args  -d ${prefix}/lib/python2.5/site-packages \
34                                -e ${prefix}/include/python2.5 \
35                                -v ${prefix}/share/sip \
36                                -p macx-g++
37configure.post_args     LFLAGS="-F${prefix}/Library/Frameworks -L${prefix}/lib"
38
39test.run        yes
40test.cmd        cd siplib && ${prefix}/bin/python2.5 -c 'import sip'
41
42post-destroot {
43        xinstall -m 755 -d ${destroot}${prefix}/share/doc
44        file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
45        xinstall -m 644 -W ${worksrcpath} LICENSE NEWS README \
46                ${destroot}${prefix}/share/doc/${name}
47        system "${prefix}/bin/python2.5 ${prefix}/lib/python2.5/compileall.py ${destroot}${prefix}"
48        system "${prefix}/bin/python2.5 -O ${prefix}/lib/python2.5/compileall.py ${destroot}${prefix}"
49}
Note: See TracBrowser for help on using the repository browser.