qscintilla2:moved into main for pisi 2.0

This commit is contained in:
2015-09-06 19:23:55 +03:00
parent c577dc2ffb
commit 4f682e8849
5 changed files with 263 additions and 0 deletions
+71
View File
@@ -0,0 +1,71 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import get
from pisi.actionsapi import qt5
WorkDir = "QScintilla-gpl-%s" % get.srcVERSION()
NoStrip = ["/usr/share/doc"]
def setup():
shelltools.cd("Qt4Qt5")
qt5.configure()
# Change C/XXFLAGS
pisitools.dosed("Makefile", "^CFLAGS.*\\$\\(DEFINES\\)", "CFLAGS = %s -fPIC $(DEFINES)" % get.CFLAGS())
pisitools.dosed("Makefile", "^CXXFLAGS.*\\$\\(DEFINES\\)", "CXXFLAGS = %s -fPIC $(DEFINES)" % get.CXXFLAGS())
# Get designer plugin's Makefile
shelltools.cd("../designer-Qt4Qt5/")
qt5.configure()
# Change C/XXFLAGS of designer plugin's makefile
pisitools.dosed("Makefile", "^CFLAGS.*\\$\\(DEFINES\\)", "CFLAGS = %s -fPIC $(DEFINES)" % get.CFLAGS())
pisitools.dosed("Makefile", "^CXXFLAGS.*\\$\\(DEFINES\\)", "CXXFLAGS = %s -fPIC $(DEFINES)" % get.CXXFLAGS())
def build():
shelltools.system("cp -rf Python Python3")
shelltools.cd("Qt4Qt5")
autotools.make("all staticlib CC=\"%s\" CXX=\"%s\" LINK=\"%s\"" % (get.CC(), get.CXX(), get.CXX()))
shelltools.cd("../designer-Qt4Qt5/")
autotools.make("DESTDIR=\"%s/%s/designer\"" % (get.installDIR(), qt5.plugindir))
# Get Makefile of qscintilla-python via sip
shelltools.cd("../Python")
pythonmodules.run("configure.py -n ../Qt4Qt5 -o ../Qt4Qt5")
autotools.make()
shelltools.cd("../Python3")
pythonmodules.run("configure.py -n ../Qt4Qt5 -o ../Qt4Qt5", pyVer = "3")
pisitools.dosed("Makefile", "-lpython3.4", "-lpython3")
autotools.make()
def install():
shelltools.cd("Qt4Qt5")
qt5.install()
shelltools.cd("../designer-Qt4Qt5/")
qt5.install()
#build and install qscintilla-python
shelltools.cd("../Python3")
autotools.install("DESTDIR=%s" % get.installDIR())
shelltools.cd("../Python")
autotools.install("DESTDIR=%s" % get.installDIR())
shelltools.cd("..")
pisitools.dohtml("doc/html-Qt4Qt5/")
pisitools.insinto("/usr/share/doc/%s/Scintilla" % get.srcNAME(), "doc/Scintilla/*")
pisitools.removeDir("/usr/share/qt4")
pisitools.dodoc("LICENSE*", "NEWS", "README")
# By PiSiDo 2.3.1
@@ -0,0 +1,10 @@
--- 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()
@@ -0,0 +1,17 @@
--- 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
+135
View File
@@ -0,0 +1,135 @@
<PISI>
<Source>
<Name>qscintilla2</Name>
<Homepage>http://www.riverbankcomputing.co.uk/qscintilla/</Homepage>
<Packager>
<Name>Ayhan Yalçınsoy</Name>
<Email>ayhanyalcinsoy@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<License>GPLv3</License>
<IsA>library</IsA>
<Summary>Qt4 port of Scintilla</Summary>
<Description>QScintilla2 is a port to Qt4 of Neil Hodgson's Scintilla C++ editor class.</Description>
<BuildDependencies>
<Dependency>python-qt5</Dependency>
<Dependency>python3-devel</Dependency>
<Dependency>python3-sip3</Dependency>
<Dependency>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>
<Patches>
<Patch level="1">QScintilla-gpl-2.4-fix-linkage.patch</Patch>
<Patch level="1">qscintilla-2.6.2-qt4.patch</Patch>
</Patches>
</Source>
<Package>
<Name>qscintilla2</Name>
<Summary>A pisi packager from GUI</Summary>
<RuntimeDependencies>
<Dependency>qt5-base</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib</Path>
<Path fileType="library">/usr/lib/qt5/plugins</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="data">/usr/share/qt5/mkspecs</Path>
<Path fileType="localedata">/usr/share/qt5/translations</Path>
</Files>
</Package>
<Package>
<Name>qscintilla2-python-common</Name>
<Summary>Common python qscintilla bindings files shared between qscintilla2-python and qscintilla2-python3</Summary>
<RuntimeDependencies>
<Dependency version="current">qscintilla2</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="data">/usr/share/qt5/qsci</Path>
<Path fileType="data">/usr/share/sip</Path>
</Files>
</Package>
<Package>
<Name>qscintilla2-python</Name>
<Summary>Python 2.x bindings for qscintilla2</Summary>
<RuntimeDependencies>
<Dependency version="current">qscintilla2</Dependency>
<Dependency version="current">qscintilla2-python-common</Dependency>
<Dependency>qt5-base</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib/python2*</Path>
</Files>
</Package>
<Package>
<Name>qscintilla2-python3</Name>
<Summary>Python 3.x bindings for qscintilla2</Summary>
<RuntimeDependencies>
<Dependency>python3</Dependency>
<Dependency version="current">qscintilla2</Dependency>
<Dependency version="current">qscintilla2-python-common</Dependency>
<Dependency>qt-base</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib/python3*</Path>
</Files>
</Package>
<Package>
<Name>qscintilla2-doc</Name>
<Summary>HTML documentation for qscintilla2</Summary>
<Files>
<Path fileType="doc">/usr/share/doc/qscintilla2/Scintilla</Path>
<Path fileType="doc">/usr/share/doc/qscintilla2/html</Path>
</Files>
</Package>
<Package>
<Name>qscintilla2-devel</Name>
<Summary>Development files for qscintilla2</Summary>
<RuntimeDependencies>
<Dependency release="current">qscintilla2</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
</Files>
</Package>
<History>
<Update release="5">
<Date>2015-09-04</Date>
<Version>2.9</Version>
<Comment>version bump</Comment>
<Name>Ayhan Yalçınsoy</Name>
<Email>ayhanyalcinsoy@pisilinux.org</Email>
</Update>
<Update release="4">
<Date>2014-05-27</Date>
<Version>2.6.2</Version>
<Comment>Rebuild for gcc</Comment>
<Name>Osman Erkan</Name>
<Email>osman.erkan@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2013-12-21</Date>
<Version>2.6.2</Version>
<Comment>Fix runtime deps.</Comment>
<Name>Serdar Soytetir</Name>
<Email>kaptan@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2013-08-17</Date>
<Version>2.6.2</Version>
<Comment>Release bump</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2012-11-11</Date>
<Version>2.6.2</Version>
<Comment>First release</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
</History>
</PISI>
<!-- By PiSiDo 2.3.1 -->
@@ -0,0 +1,30 @@
<PISI>
<Source>
<Name>qscintilla2</Name>
<Summary xml:lang="tr">QScintilla2, Neil Hodgson'un Scintilla C++ editör sınıfının bir Qt4 uyarlamasıdır.</Summary>
<Summary xml:lang="pl">Port do Qt klas C++ edytora Scintilla autorstwa Neila Hodgsona.</Summary>
<Description xml:lang="tr">QScintilla2, Neil Hodgson'un Scintilla C++ editör sınıfının bir Qt4 uyarlamasıdır.</Description>
<Description xml:lang="pl">QScintilla jest portem do Qt klas C++ edytora Scintilla autorstwa Neila Hodgsona.</Description>
</Source>
<Package>
<Name>qscintilla2-python-common</Name>
</Package>
<Package>
<Name>qscintilla2-python</Name>
<Summary xml:lang="tr">qscintilla2 için Python bağlayıcıları</Summary>
</Package>
<Package>
<Name>qscintilla2-python3</Name>
</Package>
<Package>
<Name>qscintilla2-doc</Name>
<Summary xml:lang="tr">qscintilla2 için HTML belgeleri</Summary>
</Package>
<Package>
<Name>qscintilla2-devel</Name>
<Summary xml:lang="tr">qscintilla2 için geliştirme dosyaları</Summary>
<Summary xml:lang="pl">Pliki nagłówkowe dla QScintilla</Summary>
</Package>
</PISI>
<!-- By PiSiDo 2.3.1 -->