qscintilla2:moved into main for pisi 2.0

This commit is contained in:
2015-10-26 01:28:56 +02:00
parent 9862480fc0
commit ca056bd9c8
4 changed files with 27 additions and 43 deletions
+11 -8
View File
@@ -40,11 +40,14 @@ def build():
# Get Makefile of qscintilla-python via sip
shelltools.cd("../Python")
pythonmodules.run("configure.py -n ../Qt4Qt5 -o ../Qt4Qt5")
pythonmodules.run("configure.py -n ../Qt4Qt5 -o ../Qt4Qt5 -c --pyqt=PyQt5 --pyqt-sipdir=/usr/share/sip/Py2Qt5 --qsci-sipdir=/usr/share/sip/Py2Qt5 --sip-incdir=/usr/lib/python2.7/site-packages --qmake /usr/bin/qmake-qt5")
pisitools.dosed("Makefile", "/usr/include/qt/QtPrintSupport", "/usr/include/qt5/QtPrintSupport")
pisitools.dosed("Makefile", "/usr/include/qt/QtWidgets", "/usr/include/qt5/QtWidgets")
autotools.make()
shelltools.cd("../Python3")
pythonmodules.run("configure.py -n ../Qt4Qt5 -o ../Qt4Qt5", pyVer = "3")
pisitools.dosed("Makefile", "-lpython3.4", "-lpython3")
pythonmodules.run("configure.py -n ../Qt4Qt5 -o ../Qt4Qt5 -c --pyqt=PyQt5 --qmake /usr/bin/qmake-qt5", pyVer = "3")
pisitools.dosed("Makefile", "/usr/include/qt/QtPrintSupport", "/usr/include/qt5/QtPrintSupport")
pisitools.dosed("Makefile", "/usr/include/qt/QtWidgets", "/usr/include/qt5/QtWidgets")
autotools.make()
def install():
@@ -56,16 +59,16 @@ def install():
#build and install qscintilla-python
shelltools.cd("../Python3")
autotools.install("DESTDIR=%s" % get.installDIR())
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.insinto("/usr/lib/python3.4/site-packages/PyQt5", "Qsci.so")
shelltools.cd("../Python")
autotools.install("DESTDIR=%s" % get.installDIR())
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.insinto("/usr/lib/python2.7/site-packages/PyQt5", "Qsci.so")
shelltools.cd("..")
pisitools.dohtml("doc/html-Qt4Qt5/")
pisitools.insinto("/usr/share/doc/%s/Scintilla" % get.srcNAME(), "doc/Scintilla/*")
pisitools.removeDir("/usr/share/qt4")
#pisitools.removeDir("/usr/share/qt4")
pisitools.dodoc("LICENSE*", "NEWS", "README")
# By PiSiDo 2.3.1
@@ -1,10 +0,0 @@
--- Python/configure.py~ 2009-06-05 11:00:42.000000000 +0200
+++ Python/configure.py 2009-06-06 11:41:12.000000000 +0200
@@ -294,6 +294,7 @@
makefile.extra_include_dirs.append(opts.qsciincdir)
makefile.extra_lib_dirs.append(opts.qscilibdir)
makefile.extra_libs.append("qscintilla2")
+ makefile.extra_libs.append("python" + sys.version[0:3])
makefile.generate()
@@ -1,17 +0,0 @@
--- a/designer-Qt4/designer.pro 2011-06-13 14:16:23.000000000 +0200
+++ b/designer-Qt4/designer.pro 2012-10-28 18:05:40.000000000 +0100
@@ -4,6 +4,8 @@
TEMPLATE = lib
TARGET = qscintillaplugin
+INCLUDEPATH = ../Qt4Qt5
+
CONFIG += designer release plugin
HEADERS = qscintillaplugin.h
@@ -12,4 +14,4 @@
target.path = $$[QT_INSTALL_PLUGINS]/designer
INSTALLS += target
-LIBS += -lqscintilla2
+LIBS += -L../Qt4Qt5 -lqscintilla2
+16 -8
View File
@@ -11,15 +11,21 @@
<IsA>library</IsA>
<Summary>Qt port of Scintilla</Summary>
<Description>QScintilla2 is a port to Qt4 of Neil Hodgson's Scintilla C++ editor class.</Description>
<Archive type="targz" sha1sum="63f367af50fd73a8815e4ff4596932c7dad12e41">mirrors://sourceforge/pyqt/QScintilla2/QScintilla-2.9.1/QScintilla-gpl-2.9.1.tar.gz</Archive>
<BuildDependencies>
<Dependency>python3-qt5</Dependency>
<Dependency>python-qt5-devel</Dependency>
<Dependency>python3-qt5-devel</Dependency>
<Dependency>python-devel</Dependency>
<Dependency>python3-devel</Dependency>
<Dependency>python3-sip</Dependency>
<Dependency>qt5-base-devel</Dependency>
<Dependency>python-sip</Dependency>
<Dependency versionFrom="5.5.1">qt5-base-devel</Dependency>
<Dependency>qt5-designer-devel</Dependency>
<Dependency>sip-devel</Dependency>
</BuildDependencies>
<Archive type="targz" sha1sum="de807f026ac47d4e9472836c73ab8b8039716c37">mirrors://sourceforge/pyqt/QScintilla2/QScintilla-2.9/QScintilla-gpl-2.9.tar.gz</Archive>
<Dependency>chrpath</Dependency>
<Dependency>qt5-script-devel</Dependency>
<Dependency>qt5-xmlpatterns-devel</Dependency>
<Dependency>mesa-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch>configure.py.patch</Patch>
<Patch>libname.patch</Patch>
@@ -29,6 +35,7 @@
<Name>qscintilla2</Name>
<RuntimeDependencies>
<Dependency>qt5-base</Dependency>
<Dependency>libgcc</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib</Path>
@@ -69,6 +76,7 @@
<Dependency version="current">qscintilla2</Dependency>
<Dependency version="current">qscintilla2-python-common</Dependency>
<Dependency>qt5-base</Dependency>
<Dependency>libgcc</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib/python3*</Path>
@@ -89,13 +97,13 @@
<Dependency release="current">qscintilla2</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="header">/usr/include/qt5/Qsci</Path>
</Files>
</Package>
<History>
<Update release="5">
<Date>2015-09-04</Date>
<Version>2.9</Version>
<Date>2015-10-24</Date>
<Version>2.9.1</Version>
<Comment>version bump</Comment>
<Name>Ayhan Yalçınsoy</Name>
<Email>ayhanyalcinsoy@pisilinux.org</Email>