From 55f2d1ab0ab1bd2f7c8c7c5cefeb45f7c457a5d9 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 1 Jul 2012 00:03:50 +0000 Subject: Sun Jul 1 00:03:50 UTC 2012 --- extra/qscintilla/PKGBUILD | 43 ++++++++++++++++++++++++++++--------------- 1 file changed, 28 insertions(+), 15 deletions(-) (limited to 'extra/qscintilla/PKGBUILD') diff --git a/extra/qscintilla/PKGBUILD b/extra/qscintilla/PKGBUILD index dbdc5aa25..0f573142c 100644 --- a/extra/qscintilla/PKGBUILD +++ b/extra/qscintilla/PKGBUILD @@ -1,41 +1,42 @@ -# $Id: PKGBUILD 150137 2012-02-13 11:40:55Z eric $ +# $Id: PKGBUILD 162741 2012-06-29 11:34:22Z andrea $ # Maintainer: # Contributor: Andrea Scarpino # Contributor: Douglas Soares de Andrade pkgbase=qscintilla -pkgname=('qscintilla' 'python-qscintilla' 'python2-qscintilla') -pkgver=2.6.1 +pkgname=('qscintilla' 'python-qscintilla' 'python2-qscintilla' + 'python-qscintilla-common') +pkgver=2.6.2 pkgrel=1 license=('GPL') arch=('i686' 'x86_64') url="http://www.riverbankcomputing.co.uk/software/qscintilla/intro" -makedepends=('python2-pyqt' 'chrpath') +makedepends=('python2-pyqt' 'pyqt' 'chrpath') source=("http://riverbankcomputing.com/static/Downloads/QScintilla2/QScintilla-gpl-${pkgver}.tar.gz" 'configure.py-objdir-support.diff') -md5sums=('39a1d0567a20b416177eb1a8afe225a7' +md5sums=('6e6641b6f3863c01cc28c2d7bd2495f9' '8cf9c06252e2f11ab00e62848e322fd3') build() { cd "${srcdir}/QScintilla-gpl-${pkgver}" patch -Np1 -i "${srcdir}/configure.py-objdir-support.diff" - cd Qt4 + cd Qt4Qt5 qmake qscintilla.pro make cd ../designer-Qt4 - qmake designer.pro INCLUDEPATH+=../Qt4 QMAKE_LIBDIR+=../Qt4 + qmake designer.pro INCLUDEPATH+=../Qt4Qt5 QMAKE_LIBDIR+=../Qt4Qt5 make cd ../ cp -rf Python Python2 cd Python - python configure.py -n ../Qt4/ -o ../Qt4 -c -p 4 + python configure.py -n ../Qt4Qt5/ -o ../Qt4Qt5/ -c -p 4 make cd ../Python2 - python2 configure.py -n ../Qt4/ -o ../Qt4 -c -p 4 + python2 configure.py -n ../Qt4Qt5/ -o ../Qt4Qt5/ -c -p 4 make } @@ -43,16 +44,27 @@ package_qscintilla() { pkgdesc="A port to Qt4 of Neil Hodgson's Scintilla C++ editor class" depends=('qt') - cd "${srcdir}/QScintilla-gpl-${pkgver}/Qt4" + cd "${srcdir}/QScintilla-gpl-${pkgver}/Qt4Qt5" make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install cd "${srcdir}/QScintilla-gpl-${pkgver}/designer-Qt4" make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install } +package_python-qscintilla-common() { + pkgdest="Common python qscintilla bindings files shared between python-qscintilla and python2-qscintilla" + depends=('qscintilla') + + cd "${srcdir}/QScintilla-gpl-${pkgver}"/Python + make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install + + # Provided by python-qscintilla + rm "${pkgdir}/usr/lib/python3.2/site-packages/PyQt4/Qsci.so" +} + package_python-qscintilla() { - pkgdesc="Python 3 bindings for QScintilla2" - depends=('pyqt' 'qscintilla') + pkgdesc="Python 3.x bindings for QScintilla2" + depends=('python-qscintilla-common' 'pyqt') cd "${srcdir}/QScintilla-gpl-${pkgver}/Python" install -Dm755 Qsci.so \ @@ -60,9 +72,10 @@ package_python-qscintilla() { } package_python2-qscintilla() { - pkgdesc="Python 2 bindings for QScintilla2" - depends=('python-qscintilla' 'python2-pyqt') + pkgdesc="Python 2.x bindings for QScintilla2" + depends=('python-qscintilla-common' 'python2-pyqt') cd "${srcdir}/QScintilla-gpl-${pkgver}/Python2" - make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install + install -Dm755 Qsci.so \ + "${pkgdir}/usr/lib/python2.7/site-packages/PyQt4/Qsci.so" } -- cgit v1.2.3-54-g00ecf