[69953] trunk/dports/python

snc at macports.org snc at macports.org
Fri Jul 23 07:03:54 PDT 2010


Revision: 69953
          http://trac.macports.org/changeset/69953
Author:   snc at macports.org
Date:     2010-07-23 07:03:53 -0700 (Fri, 23 Jul 2010)
Log Message:
-----------
add py31-sip, #23956

Added Paths:
-----------
    trunk/dports/python/py31-sip/
    trunk/dports/python/py31-sip/Portfile

Copied: trunk/dports/python/py31-sip/Portfile (from rev 69952, trunk/dports/python/py26-sip/Portfile)
===================================================================
--- trunk/dports/python/py31-sip/Portfile	                        (rev 0)
+++ trunk/dports/python/py31-sip/Portfile	2010-07-23 14:03:53 UTC (rev 69953)
@@ -0,0 +1,70 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem      1.0
+
+name            py31-sip
+version         4.10.5
+categories      python devel
+maintainers     nomaintainer
+platforms       macosx
+
+description     create Python bindings for C and C++ libraries
+long_description \
+    SIP is a tool that makes it very easy to create \
+    Python bindings for C and C++ libraries. \
+    It was originally developed to create PyQt, \
+    the Python bindings for the Qt toolkit, \
+    but can be used to create bindings for any \
+    C or C++ library.
+
+homepage        http://www.riverbankcomputing.co.uk/software/sip/intro
+master_sites \
+    http://www.riverbankcomputing.com/static/Downloads/sip4/ \
+    http://gentoo.mirrors.easynews.com/linux/gentoo/distfiles/ \
+    http://gentoo.osuosl.org/distfiles/ \
+    http://www.gtlib.gatech.edu/pub/gentoo/distfiles/
+
+distname        sip-${version}
+checksums           md5     0a591ef6e59aa16e56822d3eb9fe21b8 \
+                    sha1    49660186cbc8cfd772029ab84446903ca85b397f \
+                    rmd160  035ae39ed11d74a7ad24f23dcb55ca0c384db5e6
+
+dist_subdir python
+
+set pyversion 3.1
+depends_lib-append port:python[strsed ${pyversion} {g/[.]//}]
+set pybin ${prefix}/bin/python${pyversion}
+
+configure.cmd ${pybin} configure.py
+
+pre-configure {
+    # Ensure correct compilers are used
+    reinplace "s| cc\$| ${configure.cc}|" \
+        ${worksrcpath}/specs/macx-g++
+    reinplace "s| c++\$| ${configure.cxx}|" \
+        ${worksrcpath}/specs/macx-g++
+}
+
+# By default, everything gets installed in the Python Frameworks directory
+configure.pre_args-delete  --prefix=${prefix}
+
+test.run    yes
+test.cmd    cd siplib && ${pybin} -c 'import sip'
+
+post-destroot {
+    ln -s ${frameworks_dir}/Python.framework/Versions/${pyversion}/bin/sip ${destroot}${prefix}/bin/sip-${pyversion}
+
+    # Install documentation
+    xinstall -m 755 -d ${destroot}${prefix}/share/doc
+    file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
+    xinstall -m 644 -W ${worksrcpath} LICENSE LICENSE-GPL2 LICENSE-GPL3 NEWS README \
+        ${destroot}${prefix}/share/doc/${name}
+
+    system "${prefix}/bin/python${pyversion} ${frameworks_dir}/Python.framework/Versions/${pyversion}/lib/python${pyversion}/compileall.py ${destroot}${prefix}"
+    system "${prefix}/bin/python${pyversion} -O ${frameworks_dir}/Python.framework/Versions/${pyversion}/lib/python${pyversion}/compileall.py ${destroot}${prefix}"
+}
+
+livecheck.type   regex
+livecheck.url    http://www.riverbankcomputing.co.uk/software/sip/download
+livecheck.regex  {sip-(\d+(?:\.\d+)*)\.}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100723/235777bd/attachment.html>


More information about the macports-changes mailing list