Ticket #14187: Portfile

File Portfile, 1.6 KB (added by endlesscake-code@…, 17 years ago)
Line 
1# $Id$
2
3PortSystem 1.0
4
5name                    py-sip
6version                 4.7.3
7categories              python devel
8maintainers             blair openmaintainer
9description             create Python bindings for C and C++ libraries
10long_description        SIP is a tool that makes it very easy to create \
11                                Python bindings for C and C++ libraries. \
12                                It was originally developed to create PyQt, \
13                                the Python bindings for the Qt toolkit, \
14                                but can be used to create bindings for any \
15                                C or C++ library.
16
17homepage        http://www.riverbankcomputing.co.uk/sip/
18master_sites    http://www.riverbankcomputing.com/Downloads/sip4/ \
19                http://gentoo.mirrors.easynews.com/linux/gentoo/distfiles/ \
20                http://gentoo.osuosl.org/distfiles/ \
21                http://www.gtlib.gatech.edu/pub/gentoo/distfiles/
22
23distname        sip-${version}
24checksums       md5 a792c58d4d211c65949dac6005eb652b \
25                sha1 dfde22ba283b774dbe54e7f494ae217f6e43f370 \
26                rmd160 7743de67ba947ef4730cf6c902d1047fb2741872
27dist_subdir     python
28
29depends_lib     port:python25
30
31patchfiles      patch-siputils.py
32
33configure.cmd   ${prefix}/bin/python2.5 configure.py
34configure.pre_args  -d ${prefix}/lib/python2.5/site-packages \
35                                -e ${prefix}/include/python2.5 \
36                                -v ${prefix}/share/sip \
37                                -p macx-g++
38configure.post_args     LFLAGS="-F/Library/Frameworks -L${prefix}/lib"
39
40test.run        yes
41test.cmd        cd siplib && ${prefix}/bin/python2.5 -c 'import sip'
42
43post-destroot {
44        xinstall -m 755 -d ${destroot}${prefix}/share/doc
45        file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
46        xinstall -m 644 -W ${worksrcpath} LICENSE NEWS README THANKS TODO \
47                ${destroot}${prefix}/share/doc/${name}
48}