source: trunk/dports/python/py-sip/Portfile @ 32257

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

All openmaintainer ports: ${prefix} already begins with a slash,
so there's no reason to put a slash before the ${prefix} variable
when using it.

See r32256 for the equivalent change for nomaintainer ports.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 32257 2007-12-23 09:39:21Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    py-sip
6version                 4.6
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 2f57b65de36e85067b3bdf5830315460 \
25                sha1 604fef1204942146091df32f0e2276c5ab77a71c \
26                rmd160 3453108db9d07cdd4ab894f0e9f2f9bf4ba139c8
27dist_subdir     python
28
29depends_lib     port:python24
30
31patchfiles      patch-siputils.py
32
33configure.cmd   ${prefix}/bin/python2.4 configure.py
34configure.pre_args  -d ${prefix}/lib/python2.4/site-packages \
35                                -e ${prefix}/include/python2.4 \
36                                -v ${prefix}/share/sip \
37                                -p macx-g++
38configure.post_args     LFLAGS="-F${prefix}/Library/Frameworks -L${prefix}/lib"
39
40test.run        yes
41test.cmd        cd siplib && ${prefix}/bin/python2.4 -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        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}
Note: See TracBrowser for help on using the repository browser.