[107375] trunk/dports/python

michaelld at macports.org michaelld at macports.org
Wed Jun 26 07:47:21 PDT 2013


Revision: 107375
          https://trac.macports.org/changeset/107375
Author:   michaelld at macports.org
Date:     2013-06-26 07:47:21 -0700 (Wed, 26 Jun 2013)
Log Message:
-----------
pu*-qscintilla:
* merge into a single Portfile with subports;
* add all Python versions, default to 2.7;
* update to 2.7.2 to match qscintilla port;
* fix to work with Qsci 2.7 interface.

Modified Paths:
--------------
    trunk/dports/python/py-qscintilla/Portfile

Added Paths:
-----------
    trunk/dports/python/py-qscintilla/

Removed Paths:
-------------
    trunk/dports/python/py26-qscintilla/
    trunk/dports/python/py27-qscintilla/

Modified: trunk/dports/python/py-qscintilla/Portfile
===================================================================
--- trunk/dports/python/py27-qscintilla/Portfile	2013-06-25 15:01:55 UTC (rev 107304)
+++ trunk/dports/python/py-qscintilla/Portfile	2013-06-26 14:47:21 UTC (rev 107375)
@@ -1,3 +1,4 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 
 PortSystem          1.0
@@ -2,55 +3,62 @@
 PortGroup           qt4 1.0
-#
-# PortGroup           python27 1.0
-#
-# We do not use the 'PortGroup' sugar since this python module is built
-# quite differently than standard python extension modules.
+PortGroup           python 1.0
 
+name                py-qscintilla
+
 # WARNING: The version of these python bindings must match the version
 #          number of the installed qscintilla port, or configure/building
 #          will fail with strange error messages.
+version             2.7.2
 
-name                py27-qscintilla
-version             2.4.6
 categories          python devel
 license             {GPL-2 GPL-3}
-maintainers         nomaintainer
+maintainers         michaelld openmaintainer
 description         Python bindings for QScintilla
 homepage            http://www.riverbankcomputing.com/software/qscintilla/
 platforms           darwin
 
-long_description	Python bindings for QScintilla, \
+long_description    Python bindings for QScintilla, \
                     a port to Qt of Neil Hodgson's Scintilla C++ editor control.
 
-#
-# NOTE: the version of this port must be kept in sync with the 'qscintilla' port,
-#       since it contains the 'main' software distribution!
-#
-
 dist_subdir         qscintilla
 distname            QScintilla-gpl-${version}
-master_sites        http://www.riverbankcomputing.com/static/Downloads/QScintilla2/ \
-                    http://gentoo.mirrors.easynews.com/linux/gentoo/distfiles/ \
-                    http://www.gtlib.gatech.edu/pub/gentoo/distfiles/ \
-                    http://gentoo.osuosl.org/distfiles/
+master_sites        sourceforge:pyqt
 
-checksums           md5     424a89736b900e6ca5bc6d929cdafaf8 \
-                    sha1    0527feedf74186a02ca0757d71be0c790149f674 \
-                    rmd160  b48880e3e0fa0d285f04bf7ceb509f509d684929
+checksums           md5     0fbfb06078f206a241a62c94861cce21 \
+                    sha1    2a11fb6be2c3005bc6502f929a0a339d4303af9b \
+                    rmd160  09552e7c41695822e7eebf86781901c7de90e521
 
-depends_lib         port:qscintilla port:python27 port:py27-pyqt4
+depends_lib-append  port:qscintilla
 
-universal_variant   no
+python.versions     24 25 26 27 31 32 33
+python.default_version 27
 
-configure.dir       ${worksrcpath}/Python
-configure.cmd       "${prefix}/bin/python2.7 configure.py; echo"
+if {$subport != $name} {
 
-build.dir           ${worksrcpath}/Python
-build.cmd           ${build.cmd}
+   depends_lib-append  port:py${python.version}-pyqt4
+   
+   universal_variant   no
+   use_configure       yes
 
-destroot.dir        ${worksrcpath}/Python
-destroot.cmd        ${build.cmd} install
+   set python_ver_dot [join [split ${python.version} ""] "."]
 
+   configure.pre_args
+   configure.dir       ${worksrcpath}/Python
+   configure.cmd       ${python.bin} configure.py \
+       --sip=${prefix}/bin/sip-${python_ver_dot} \
+       --pyqt-sipdir=${prefix}/share/py${python.version}-sip/PyQt4 \
+       --apidir=${qt_data_dir}/qsci
+
+   build.dir           ${worksrcpath}/Python
+   build.cmd           make
+   build.target
+
+   destroot.dir        ${worksrcpath}/Python
+   destroot.cmd        ${build.cmd}
+   destroot.destdir
+
+}
+
 livecheck.type      regex
-livecheck.url       ${master_sites}
-livecheck.regex     QScintilla-gpl-\(\\d+.\\d+.\\d+\).tar.gz
+livecheck.url       ${homepage}download
+livecheck.regex     >QScintilla-gpl-\(\\d+.\\d+.\\d+\).tar.gz<
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130626/09590a7b/attachment.html>


More information about the macports-changes mailing list