source: trunk/dports/python/py-qscintilla/Portfile

Last change on this file was 150903, checked in by michaelld@…, 14 months ago

Qsci: update to 2.9.3.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# -*- 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
2# $Id: Portfile 150903 2016-08-01 19:05:11Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           qt4 1.0
6PortGroup           python 1.0
7
8name                py-qscintilla
9
10# NOTE: The version of these python bindings must match that of the
11# installed devel/qscintilla port, or configure/building will fail
12# with strange error messages.
13
14version             2.9.3
15checksums           rmd160 18c5ae739a3d62e55bf35b98a3ab893cb278e3e6 \
16                    sha256 98aab93d73b05635867c2fc757acb383b5856a0b416e3fd7659f1879996ddb7e
17
18categories          python devel
19license             {GPL-2 GPL-3}
20maintainers         michaelld openmaintainer
21description         Python bindings for QScintilla
22homepage            http://www.riverbankcomputing.com/software/qscintilla/
23platforms           darwin
24
25long_description    Python bindings for QScintilla, \
26                    a port to Qt of Neil Hodgson's Scintilla C++ editor control.
27
28dist_subdir         qscintilla
29distname            QScintilla_gpl-${version}
30master_sites        sourceforge:pyqt
31
32python.versions     27 34 35
33python.default_version 27
34
35if {${name} ne ${subport}} {
36
37   depends_lib-append  port:qscintilla
38
39   # Can use either py*-pyqt4 or py*-pyqt4-devel.
40   depends_lib-append  path:share/py${python.version}-sip/PyQt4:py${python.version}-pyqt4
41
42   patchfiles-append   patch-Python-configure.py.diff
43
44   use_configure       yes
45
46   pre-configure {
47       foreach arch ${qt_arch_types} {
48           configure.args-append --use-arch=$arch
49       }
50   }
51
52   set python_ver_dot [join [split ${python.version} ""] "."]
53
54   configure.pre_args
55   configure.dir       ${worksrcpath}/Python
56   configure.cmd       ${python.bin} configure.py
57   configure.args-append \
58       --sip=${prefix}/bin/sip-${python_ver_dot} \
59       --pyqt-sipdir=${prefix}/share/py${python.version}-sip/PyQt4 \
60       --apidir=${qt_data_dir}/qsci
61
62   # --disable-dependency-tracking is not recognized.
63   configure.universal_args-delete --disable-dependency-tracking
64
65   build.dir           ${worksrcpath}/Python
66   build.cmd           make
67   build.target
68
69   destroot.dir        ${worksrcpath}/Python
70   destroot.cmd        ${build.cmd}
71   destroot.destdir
72
73   post-destroot {
74       move ${destroot}${qt_data_dir}/qsci/api/python/QScintilla2.api \
75           ${destroot}${qt_data_dir}/qsci/api/python/QScintilla2-Python${python_ver_dot}.api
76   }
77}
78
79livecheck.type      regex
80livecheck.url       ${homepage}download
81livecheck.regex     >QScintilla-gpl\[_-\]\(\[0-9.\]+\)${extract.suffix}<
Note: See TracBrowser for help on using the repository browser.