# $Id: Portfile 65097 2010-03-22 03:03:11Z adfernandes@macports.org $

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

name                py26-qscintilla
version             2.4.3
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!
#

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           sha1    772bb3cfca8716e035f2cdc4536d5d8025b855a8

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

universal_variant   no

set qt_dir          ${prefix}/libexec/qt4-mac

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

build.env           QTDIR=${qt_dir}
build.dir           ${worksrcpath}/Python
build.cmd           ${build.cmd}

destroot.env        QTDIR=${qt_dir} DESTDIR=${destroot}
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
