From c9d9545a47b3b007114bf6e555dfbe717c2af6ca Mon Sep 17 00:00:00 2001 From: Denis Kozadaev Date: Thu, 30 Jan 2020 22:13:12 +0300 Subject: [PATCH] DilOS: tqscintilla build pack Signed-off-by: Denis Kozadaev (cherry picked from commit 07b9b5a102e02747a3cc806bd7dd61f0d7b5660f) --- .../dependencies/tqscintilla/debian/changelog | 5 + dilos/dependencies/tqscintilla/debian/compat | 1 + dilos/dependencies/tqscintilla/debian/control | 47 ++++++++ .../dependencies/tqscintilla/debian/copyright | 39 ++++++ dilos/dependencies/tqscintilla/debian/dirs | 2 + dilos/dependencies/tqscintilla/debian/docs | 1 + .../debian/libtqscintilla-dev.install | 2 + .../debian/libtqscintilla-doc.install | 1 + .../debian/libtqscintilla7.install | 3 + dilos/dependencies/tqscintilla/debian/rules | 112 ++++++++++++++++++ .../tqscintilla/debian/source/format | 1 + .../tqscintilla/debian/source/options | 6 + 12 files changed, 220 insertions(+) create mode 100644 dilos/dependencies/tqscintilla/debian/changelog create mode 100644 dilos/dependencies/tqscintilla/debian/compat create mode 100644 dilos/dependencies/tqscintilla/debian/control create mode 100644 dilos/dependencies/tqscintilla/debian/copyright create mode 100644 dilos/dependencies/tqscintilla/debian/dirs create mode 100644 dilos/dependencies/tqscintilla/debian/docs create mode 100644 dilos/dependencies/tqscintilla/debian/libtqscintilla-dev.install create mode 100644 dilos/dependencies/tqscintilla/debian/libtqscintilla-doc.install create mode 100644 dilos/dependencies/tqscintilla/debian/libtqscintilla7.install create mode 100755 dilos/dependencies/tqscintilla/debian/rules create mode 100644 dilos/dependencies/tqscintilla/debian/source/format create mode 100644 dilos/dependencies/tqscintilla/debian/source/options diff --git a/dilos/dependencies/tqscintilla/debian/changelog b/dilos/dependencies/tqscintilla/debian/changelog new file mode 100644 index 000000000..bf84dfd0f --- /dev/null +++ b/dilos/dependencies/tqscintilla/debian/changelog @@ -0,0 +1,5 @@ +tqscintilla (1.7.1-0ubuntu0) lucid; urgency=low + + * Initial TQt builds + + -- Timothy Pearson Wed, 30 Nov 2011 11:40:00 -0600 diff --git a/dilos/dependencies/tqscintilla/debian/compat b/dilos/dependencies/tqscintilla/debian/compat new file mode 100644 index 000000000..ec635144f --- /dev/null +++ b/dilos/dependencies/tqscintilla/debian/compat @@ -0,0 +1 @@ +9 diff --git a/dilos/dependencies/tqscintilla/debian/control b/dilos/dependencies/tqscintilla/debian/control new file mode 100644 index 000000000..2d58d1e3f --- /dev/null +++ b/dilos/dependencies/tqscintilla/debian/control @@ -0,0 +1,47 @@ +Source: tqscintilla +Section: libs +Priority: optional +Maintainer: Ricardo Javier Cardenes Medina +Uploaders: Torsten Marek +Build-Depends: debhelper (>= 7.0.50~), libtqt3-mt-dev, tqt3-dev-tools, libtqtinterface-dev +Standards-Version: 3.8.4 + +Package: libtqscintilla7 +Section: libs +Architecture: any +Replaces: libtqscintilla7 (<< 4:14.0.0~) +Breaks: libtqscintilla7 (<< 4:14.0.0~) +Depends: ${shlibs:Depends} +Description: TQt source code editing component based on Scintilla + Scintilla is a free source code editing component. It has features found + in standard editing components, as well as features especially useful + when editing and debugging source code. + . + TQScintilla is a port or Scintilla to the TQt GUI toolkit. + +Package: libtqscintilla-dev +Section: libdevel +Architecture: any +Replaces: libtqscintilla-dev (<< 4:14.0.0~) +Breaks: libtqscintilla-dev (<< 4:14.0.0~) +Depends: libtqscintilla7 (>= ${source:Version}) +Description: TQt source code editing component - development files + Scintilla is a free source code editing component. It has features found + in standard editing components, as well as features especially useful + when editing and debugging source code. + . + TQScintilla is a port of Scintilla to the TQt GUI toolkit. These are the + development files (headers and static libs). + +Package: libtqscintilla-doc +Section: doc +Architecture: all +Replaces: libtqscintilla-doc (<< 4:14.0.0~) +Breaks: libtqscintilla-doc (<< 4:14.0.0~) +Suggests: libtqscintilla-dev +Description: TQt source code editing component - documentation + Scintilla is a free source code editing component. It has features found + in standard editing components, as well as features especially useful + when editing and debugging source code. + . + This package contain HTML files describing TQScintilla classes. diff --git a/dilos/dependencies/tqscintilla/debian/copyright b/dilos/dependencies/tqscintilla/debian/copyright new file mode 100644 index 000000000..445a8ff70 --- /dev/null +++ b/dilos/dependencies/tqscintilla/debian/copyright @@ -0,0 +1,39 @@ +This package was debianized by Ricardo Javier Cardenes Medina on +Sun, 24 Nov 2002 05:09:21 +0000. + +It was downloaded from http://www.riverbankcomputing.co.uk + +Upstream Authors: + + Scintilla: Neil Hodgson + QScintilla: Phil Thompson + +Copyright: + + Copyright 2005 by Riverbank Computing Limited + +QScintilla is released under GPL version 2, or (at your option) any later +version. You can read the full version of this license in your system at + + /usr/share/common-licenses/GPL-2 + +Scintilla comes with this license: + + Copyright 1998-2002 by Neil Hodgson + + All Rights Reserved + + Permission to use, copy, modify, and distribute this software and its + documentation for any purpose and without fee is hereby granted, + provided that the above copyright notice appear in all copies and that + both that copyright notice and this permission notice appear in + supporting documentation. + + NEIL HODGSON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS + SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS, IN NO EVENT SHALL NEIL HODGSON BE LIABLE FOR ANY + SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, + WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER + TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE + OR PERFORMANCE OF THIS SOFTWARE." diff --git a/dilos/dependencies/tqscintilla/debian/dirs b/dilos/dependencies/tqscintilla/debian/dirs new file mode 100644 index 000000000..ca882bbb7 --- /dev/null +++ b/dilos/dependencies/tqscintilla/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/sbin diff --git a/dilos/dependencies/tqscintilla/debian/docs b/dilos/dependencies/tqscintilla/debian/docs new file mode 100644 index 000000000..edc007104 --- /dev/null +++ b/dilos/dependencies/tqscintilla/debian/docs @@ -0,0 +1 @@ +NEWS diff --git a/dilos/dependencies/tqscintilla/debian/libtqscintilla-dev.install b/dilos/dependencies/tqscintilla/debian/libtqscintilla-dev.install new file mode 100644 index 000000000..146a60371 --- /dev/null +++ b/dilos/dependencies/tqscintilla/debian/libtqscintilla-dev.install @@ -0,0 +1,2 @@ +usr/include +usr/lib/*/*.so diff --git a/dilos/dependencies/tqscintilla/debian/libtqscintilla-doc.install b/dilos/dependencies/tqscintilla/debian/libtqscintilla-doc.install new file mode 100644 index 000000000..005276324 --- /dev/null +++ b/dilos/dependencies/tqscintilla/debian/libtqscintilla-doc.install @@ -0,0 +1 @@ +usr/share/doc/libtqscintilla-doc diff --git a/dilos/dependencies/tqscintilla/debian/libtqscintilla7.install b/dilos/dependencies/tqscintilla/debian/libtqscintilla7.install new file mode 100644 index 000000000..7b76fb1f7 --- /dev/null +++ b/dilos/dependencies/tqscintilla/debian/libtqscintilla7.install @@ -0,0 +1,3 @@ +usr/lib/*/*.so.* +usr/lib/*/tqt3/plugins/designer/*.so +usr/share/tqt3/translations/*.qm diff --git a/dilos/dependencies/tqscintilla/debian/rules b/dilos/dependencies/tqscintilla/debian/rules new file mode 100755 index 000000000..57c2c87b3 --- /dev/null +++ b/dilos/dependencies/tqscintilla/debian/rules @@ -0,0 +1,112 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \ + && echo xz || echo bzip2) + +DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) + +# This is the debhelper compatibility version to use. +export TQTDIR=/usr/share/tqt3 +export QMAKESPEC=$(TQTDIR)/mkspecs/dilos-g++ +DOCDEST=$(CURDIR)/debian/tmp/usr/share/doc/libtqscintilla-doc/html +HEADERDEST=$(CURDIR)/debian/tmp/usr/include/tqscintilla +LIBSDEST=$(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH) +TRANSDEST=$(CURDIR)/debian/tmp/$(TQTDIR)/translations +PLUGINDEST=$(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/tqt3/plugins/designer + + +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) + CFLAGS += -g +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + cd qt; qmake "DESTDIR=$(CURDIR)/tmplib" + cd designer; qmake + touch configure-stamp + +build build-arch: build-stamp +build-indep: + +build-stamp: configure-stamp + dh_testdir + + install -d $(CURDIR)/tmplib + $(MAKE) -C qt + $(MAKE) -C designer + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + [ ! -f qt/Makefile ] || $(MAKE) -C qt clean + [ ! -f designer/Makefile ] || $(MAKE) -C designer clean + -find -name 'Makefile' -exec rm {} \; + -rm -rf tmplib + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + install -d $(HEADERDEST)/private + install -d $(DOCDEST) + install -d $(TRANSDEST) + install -d $(LIBSDEST) + install -d $(PLUGINDEST) + for i in qt/qextscintilla*.h; do install -m 644 $$i $(HEADERDEST); done + for i in include/*.h; do install -m 644 $$i $(HEADERDEST)/private; done + for i in doc/html/*; do install -m 644 $$i $(DOCDEST); done + for i in qt/*.qm; do install -m 644 $$i $(TRANSDEST); done + mv designer/*.so $(PLUGINDEST) + for i in tmplib/*; do mv $$i $(LIBSDEST); done + + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir -i + dh_testroot -i + dh_install -i --sourcedir=$(CURDIR)/debian/tmp + dh_installdocs -i + dh_installchangelogs -i ChangeLog + dh_link -i + dh_compress -i + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i $(DEB_DH_BUILDDEB_ARGS) + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir -a + dh_testroot -a + dh_install -a --sourcedir=$(CURDIR)/debian/tmp + dh_installdocs -a + dh_installchangelogs -a ChangeLog + dh_link -a + dh_strip -a --ctfconvert-flags="-i" -Xlibqscintilla.so.7.0.1 -Xlibqscintillaplugin.so + dh_compress -a + dh_fixperms -a + dh_makeshlibs -a -V + dh_installdeb -a + dh_shlibdeps -a --dpkg-shlibdeps-params=--ignore-missing-info + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a $(DEB_DH_BUILDDEB_ARGS) + +binary: binary-indep binary-arch +.PHONY: build build-arch clean binary-indep binary-arch binary install configure diff --git a/dilos/dependencies/tqscintilla/debian/source/format b/dilos/dependencies/tqscintilla/debian/source/format new file mode 100644 index 000000000..163aaf8d8 --- /dev/null +++ b/dilos/dependencies/tqscintilla/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/dilos/dependencies/tqscintilla/debian/source/options b/dilos/dependencies/tqscintilla/debian/source/options new file mode 100644 index 000000000..72f1f5450 --- /dev/null +++ b/dilos/dependencies/tqscintilla/debian/source/options @@ -0,0 +1,6 @@ +# Use xz instead of gzip +compression = "xz" +compression-level = 9 + +# Don't run differences +diff-ignore = .*