Created
August 7, 2014 02:53
-
-
Save hanetzer/bd666b077cbd438b3d56 to your computer and use it in GitHub Desktop.
qscintilla-qt5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/configure.py.orig b/configure.py | |
index 3170c2a..1261c86 100644 | |
--- a/configure.py.orig | |
+++ b/configure.py | |
@@ -31,6 +31,8 @@ import os | |
import glob | |
import optparse | |
+src_dir = os.path.dirname(os.path.abspath(__file__)) | |
+ | |
try: | |
import sysconfig | |
except ImportError: | |
@@ -1413,6 +1415,7 @@ INSTALLS += sip | |
includepath = qmake_config.get('INCLUDEPATH') | |
if includepath: | |
pro.write('INCLUDEPATH += %s\n' % includepath) | |
+ pro.write('INCLUDEPATH += %s\n' % '/usr/include/qt/QtWidgets /usr/include/qt/QtPrintSupport') | |
# Make sure the SIP include directory is searched before the Python include | |
# directory if they are different. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $Id$ | |
# Maintainer: Ilya87 <[email protected]> | |
pkgbase=qscintilla-qt5 | |
pkgname=('qscintilla-qt5' 'python-qscintilla-qt5' 'python2-qscintilla-qt5' | |
'python-qscintilla-qt5-common') | |
pkgver=2.8.3 | |
pkgrel=1 | |
license=('GPL') | |
arch=('i686' 'x86_64') | |
url="http://www.riverbankcomputing.co.uk/software/qscintilla/intro" | |
makedepends=('python2-pyqt5' 'python-pyqt5' 'chrpath') | |
options=('!buildflags') | |
source=("http://downloads.sourceforge.net/pyqt/QScintilla-gpl-${pkgver}.tar.gz" | |
"configure.py.patch") | |
md5sums=('bbf6944a9d3b089a79763ca4e6486b9d' | |
'6b5005f197d9d70d7cfcdb4f10ff17a1') | |
prepare() { | |
cd QScintilla-gpl-${pkgver}/Python/ | |
#patch -Np1 -i "${srcdir}/test.patch" | |
patch -Np1 -i "${srcdir}/configure.py.patch" | |
} | |
build() { | |
cd QScintilla-gpl-${pkgver}/Qt4Qt5 | |
qmake qscintilla.pro | |
make | |
cd ../designer-Qt4Qt5 | |
qmake designer.pro INCLUDEPATH+=../Qt4Qt5 QMAKE_LIBDIR+=../Qt4Qt5 | |
make | |
cd ../ | |
cp -rf Python Python2 | |
cd Python | |
python3 configure.py -n ../Qt4Qt5/ \ | |
-o ../Qt4Qt5/ \ | |
-c --pyqt=PyQt5 \ | |
--pyqt-sipdir=/usr/share/sip/PyQt5 \ | |
--qsci-sipdir=/usr/share/sip/PyQt5 \ | |
--qmake /usr/bin/qmake | |
make | |
cd ../Python2 | |
python2 configure.py -n ../Qt4Qt5/ \ | |
-o ../Qt4Qt5/ \ | |
-c --pyqt=PyQt5 \ | |
--pyqt-sipdir=/usr/share/sip/PyQt5 \ | |
--qsci-sipdir=/usr/share/sip/PyQt5 \ | |
--qmake /usr/bin/qmake | |
make | |
} | |
package_qscintilla-qt5() { | |
pkgdesc="A port to Qt5 of Neil Hodgson's Scintilla C++ editor class" | |
depends=('qt5-base') | |
conflicts=('qscintilla') | |
cd QScintilla-gpl-${pkgver}/Qt4Qt5 | |
make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install | |
cd ../designer-Qt4Qt5 | |
make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install | |
} | |
package_python-qscintilla-qt5-common() { | |
pkgdesc="Common python qscintilla bindings files shared between python-qscintilla-qt5 and python2-qscintilla-qt5" | |
depends=('qscintilla-qt5') | |
cd QScintilla-gpl-${pkgver}/Python | |
make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install | |
# Provided by python-qscintilla | |
rm "${pkgdir}"/usr/lib/python3.4/site-packages/PyQt5/Qsci.so | |
} | |
package_python-qscintilla-qt5() { | |
pkgdesc="Python 3.x bindings for QScintilla2" | |
depends=('python-qscintilla-qt5-common' 'python-pyqt5') | |
cd QScintilla-gpl-${pkgver}/Python | |
install -Dm755 Qsci.so \ | |
"${pkgdir}"/usr/lib/python3.4/site-packages/PyQt5/Qsci.so | |
} | |
package_python2-qscintilla-qt5() { | |
pkgdesc="Python 2.x bindings for QScintilla2" | |
depends=('python-qscintilla-qt5-common' 'python2-pyqt5') | |
cd QScintilla-gpl-${pkgver}/Python2 | |
install -Dm755 Qsci.so \ | |
"${pkgdir}"/usr/lib/python2.7/site-packages/PyQt5/Qsci.so | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment