# $Id: Portfile 75285 2011-01-19 21:36:01Z adfernandes@macports.org $

PortSystem          1.0
PortGroup           qt4 1.0
#
# PortGroup           python26 1.0
#
# We do not use the 'PortGroup' sugar since this python module is built
# quite differently than standard python extension modules.

# 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.

name                py26-qscintilla
version             2.4.6
categories          python devel
maintainers         adfernandes openmaintainer
description         Python bindings for QScintilla
homepage            http://www.riverbankcomputing.com/software/qscintilla/
platforms           darwin

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/

checksums           md5     424a89736b900e6ca5bc6d929cdafaf8 \
                    sha1    0527feedf74186a02ca0757d71be0c790149f674 \
                    rmd160  b48880e3e0fa0d285f04bf7ceb509f509d684929

depends_lib         port:qscintilla port:python26 port:py26-pyqt4

universal_variant   no

configure.dir       ${worksrcpath}/Python
configure.cmd       "${prefix}/bin/python2.6 configure.py; echo"

build.dir           ${worksrcpath}/Python
build.cmd           ${build.cmd}

destroot.dir        ${worksrcpath}/Python
destroot.cmd        ${build.cmd} install

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     QScintilla-gpl-\(\\d+.\\d+.\\d+\).tar.gz
