summaryrefslogtreecommitdiffstats
path: root/debian/_base/dependencies/sip4-tqt/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian/_base/dependencies/sip4-tqt/debian')
-rw-r--r--debian/_base/dependencies/sip4-tqt/debian/compat2
-rw-r--r--debian/_base/dependencies/sip4-tqt/debian/control85
-rw-r--r--debian/_base/dependencies/sip4-tqt/debian/dh_py3sip_tqt49
-rw-r--r--debian/_base/dependencies/sip4-tqt/debian/dh_sip_tqt47
-rw-r--r--debian/_base/dependencies/sip4-tqt/debian/manpages/dh_py3sip_tqt.1 (renamed from debian/_base/dependencies/sip4-tqt/debian/manpages/dh_sip_tqt.1)16
-rw-r--r--debian/_base/dependencies/sip4-tqt/debian/manpages/sip-tqt.1 (renamed from debian/_base/dependencies/sip4-tqt/debian/manpages/sip.1)20
-rw-r--r--debian/_base/dependencies/sip4-tqt/debian/patches/series2
-rw-r--r--debian/_base/dependencies/sip4-tqt/debian/patches/siputils_debian_changes.diff32
-rw-r--r--debian/_base/dependencies/sip4-tqt/debian/patches/siputils_objdir_module_fix.diff18
-rw-r--r--debian/_base/dependencies/sip4-tqt/debian/python-sip-tqt-dev.install1
-rw-r--r--debian/_base/dependencies/sip4-tqt/debian/python-sip-tqt-dev.links1
-rw-r--r--debian/_base/dependencies/sip4-tqt/debian/python-sip-tqt-dev.manpages2
-rw-r--r--debian/_base/dependencies/sip4-tqt/debian/python-sip-tqt.install1
-rw-r--r--debian/_base/dependencies/sip4-tqt/debian/python3-sip-tqt-dev.docs (renamed from debian/_base/dependencies/sip4-tqt/debian/python-sip-tqt-dev.docs)0
-rw-r--r--debian/_base/dependencies/sip4-tqt/debian/python3-sip-tqt-dev.install1
-rw-r--r--debian/_base/dependencies/sip4-tqt/debian/python3-sip-tqt-dev.links1
-rw-r--r--debian/_base/dependencies/sip4-tqt/debian/python3-sip-tqt-dev.manpages1
-rw-r--r--debian/_base/dependencies/sip4-tqt/debian/python3-sip-tqt.install1
-rw-r--r--debian/_base/dependencies/sip4-tqt/debian/pyversions1
-rwxr-xr-xdebian/_base/dependencies/sip4-tqt/debian/rules97
-rw-r--r--debian/_base/dependencies/sip4-tqt/debian/sip-tqt-dev.install1
-rw-r--r--debian/_base/dependencies/sip4-tqt/debian/sip-tqt-dev.manpages1
-rw-r--r--debian/_base/dependencies/sip4-tqt/debian/sip_tqt_config_py3.py17
-rw-r--r--debian/_base/dependencies/sip4-tqt/debian/sipconfig.py13
-rw-r--r--debian/_base/dependencies/sip4-tqt/debian/watch3
25 files changed, 188 insertions, 225 deletions
diff --git a/debian/_base/dependencies/sip4-tqt/debian/compat b/debian/_base/dependencies/sip4-tqt/debian/compat
index 7f8f011eb..f599e28b8 100644
--- a/debian/_base/dependencies/sip4-tqt/debian/compat
+++ b/debian/_base/dependencies/sip4-tqt/debian/compat
@@ -1 +1 @@
-7
+10
diff --git a/debian/_base/dependencies/sip4-tqt/debian/control b/debian/_base/dependencies/sip4-tqt/debian/control
index d7187b9e0..2c7df285c 100644
--- a/debian/_base/dependencies/sip4-tqt/debian/control
+++ b/debian/_base/dependencies/sip4-tqt/debian/control
@@ -1,63 +1,82 @@
Source: sip4-tqt
Section: devel
Priority: optional
-Maintainer: Timothy Pearson <kb9vqf@pearsoncomputing.net>
+Maintainer: TDE Debian Team <team-debian@trinitydesktop.org>
XSBC-Original-Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
Uploaders: Torsten Marek <shlomme@debian.org>, Bernd Zeimetz <bzed@debian.org>, Michael Casadevall <mcasadevall@debian.org>
-Build-Depends: debhelper (>= 7.0.50~), python-all-dev (>= 2.3.5-10), python-all-dbg, python-support (>= 0.7.1) | python-dev (>= 2.6.6-3~), libtqtinterface-dev
+Build-Depends: debhelper (>= 10~), python3-all-dev, python3-all-dbg, dh-python, libtqtinterface-dev, bison, flex
Standards-Version: 3.8.4
XS-Python-Version: all
+X-Python3-Version: >= 3.0
-Package: python-sip-tqt
+Package: python3-sip-tqt
Architecture: any
Section: python
-Replaces: python-sip-tqt (<< 4:14.0.0~)
-Breaks: python-sip-tqt (<< 4:14.0.0~)
-Provides: ${python:Provides}, sip-api-7.0, sip-api-7.1
-Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
-Conflicts: python-sip4 (<< 4.10)
-Description: Python/C++ bindings generator runtime library
- SIP is a tool for generating bindings for C++ classes with some ideas
+Provides: ${python3:Provides}
+Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Description: Python 3/C++ bindings generator runtime library
+ SIP-TQt is a tool for generating bindings for C++ classes with some ideas
borrowed from SWIG, but capable of tighter bindings because of its
specificity towards C++ and Python.
+ .
+ This package provides the SIP-TQt module for Python 3
-Package: python-sip-tqt-dbg
-Priority: extra
+Package: python3-sip-tqt-dev
+Architecture: any
+Section: python
+Depends: ${python3:Depends}, python3-sip-tqt (= ${binary:Version}), sip-tqt-dev, python3-all-dev, ${shlibs:Depends}, libjs-jquery, ${misc:Depends}
+Description: Python/C++ bindings generator development files
+ SIP-TQt is a tool for generating bindings for C++ classes with some ideas
+ borrowed from SWIG, but capable of tighter bindings because of its
+ specificity towards C++ and Python.
+ .
+ SIP-TQt was originally designed to generate Python bindings for TDE and so
+ has explicit support for the signal slot mechanism used by the TQt/TDE
+ class libraries.
+ .
+ Features:
+ - connecting TQt signals to Python functions and class methods
+ - connecting Python signals to TQt slots
+ - overloading virtual member functions with Python class methods
+ - protected member functions
+ - abstract classes
+ - enumerated types
+ - global class instances
+ - static member functions.
+ .
+ This package contains the code generator tool and the development headers
+ needed to develop Python 3 bindings with sip-tqt.
+
+Package: python3-sip-tqt-dbg
Architecture: any
-Replaces: python-sip-tqt-dbg (<< 4:14.0.0~)
-Breaks: python-sip-tqt-dbg (<< 4:14.0.0~)
Section: debug
-Provides: ${python:Provides}
-Depends: python-sip-tqt (= ${binary:Version}), python-dbg, ${shlibs:Depends}, ${misc:Depends}
-Conflicts: python-sip4-dbg (<< 4.10)
-Description: Python/C++ bindings generator runtime library (debug extension)
- SIP is a tool for generating bindings for C++ classes with some ideas
+Priority: extra
+Depends: python3-sip-tqt (= ${binary:Version}), python3-all-dbg, ${shlibs:Depends}, ${misc:Depends}
+Description: Python 3/C++ bindings generator runtime library
+ SIP-TQt is a tool for generating bindings for C++ classes with some ideas
borrowed from SWIG, but capable of tighter bindings because of its
specificity towards C++ and Python.
.
- This package contains the extension built for the Python debug interpreter.
+ This package provides the SIP-TQt module for the debug build of the Python 3.
-Package: python-sip-tqt-dev
+Package: sip-tqt-dev
Architecture: any
Section: python
-Replaces: python-sip-tqt-dev (<< 4:14.0.0~)
-Breaks: python-sip-tqt-dev (<< 4:14.0.0~)
-Depends: ${python:Depends}, python-sip-tqt (= ${binary:Version}), python-dev, ${shlibs:Depends}, libjs-jquery, ${misc:Depends}
-Recommends: python-sip-tqt (>= ${source:Version})
-Provides: python-sip-dev, python-sip4-dev, sip4
-Conflicts: python-sip-dev, python-sip4-dev (<< 4.10), sip4 (<< 4.10)
+Depends: ${python3:Depends}, ${shlibs:Depends}
+Breaks: python-sip-tqt-dev (<< 4:14.1.0~)
+Recommends: python3-sip-tqt-dev
Description: Python/C++ bindings generator development files
- SIP is a tool for generating bindings for C++ classes with some ideas
+ SIP-TQt is a tool for generating bindings for C++ classes with some ideas
borrowed from SWIG, but capable of tighter bindings because of its
specificity towards C++ and Python.
.
- SIP was originally designed to generate Python bindings for TDE and so
+ SIP-TQt was originally designed to generate Python bindings for TDE and so
has explicit support for the signal slot mechanism used by the TQt/TDE
class libraries.
.
Features:
- - connecting Qt signals to Python functions and class methods
- - connecting Python signals to Qt slots
+ - connecting TQt signals to Python functions and class methods
+ - connecting Python signals to TQt slots
- overloading virtual member functions with Python class methods
- protected member functions
- abstract classes
@@ -65,6 +84,4 @@ Description: Python/C++ bindings generator development files
- global class instances
- static member functions.
.
- This package contains the code generator tool and the development headers
- needed to develop Python bindings with sip.
-
+ This package contains the code generator tool needed to develop Python 3 bindings with sip-tqt.
diff --git a/debian/_base/dependencies/sip4-tqt/debian/dh_py3sip_tqt b/debian/_base/dependencies/sip4-tqt/debian/dh_py3sip_tqt
new file mode 100644
index 000000000..a59025f15
--- /dev/null
+++ b/debian/_base/dependencies/sip4-tqt/debian/dh_py3sip_tqt
@@ -0,0 +1,49 @@
+#!/usr/bin/perl -w
+
+=head1 NAME
+
+dh_py3sip_tqt - set the correct dependencies for Python 3 packages using sip
+
+=cut
+
+use strict;
+use Debian::Debhelper::Dh_Lib;
+
+=head1 SYNOPSIS
+
+B<dh_py3sip_tqt>
+
+=head1 DESCRIPTION
+
+dh_py3sip_tqt creates the ${py3sip-tqt:Depends} substitution variable which must be
+used by Python 3 extensions built with sip-tqt in order to depend on a version of
+python3-sip-tqt that exports the correct public API.
+
+=cut
+
+init();
+
+my $sip_tqt_provides = `dpkg -s python3-sip-tqt`;
+$sip_tqt_provides =~ /^Provides:\s*(.+)$/m;
+
+my @sip_tqt_apis = sort(grep(/sip\-tqt\-py3api/, split(/,\s*/, $1)));
+
+my $sip_tqt_api_version=$sip_tqt_apis[-1];
+
+foreach my $package (@{$dh{DOPACKAGES}}) {
+ addsubstvar($package, "py3sip-tqt:Depends", $sip_tqt_api_version);
+}
+
+=head1 SEE ALSO
+
+L<debhelper(7)>
+
+This program is a part of python3-sip-tqt-dev but is made to work with debhelper.
+
+=head1 AUTHORS
+
+Torsten Marek <shlomme@debian.org>
+Adapted for Python3 by
+Slávek Banko <slavek.banko@axis.cz>
+
+=cut
diff --git a/debian/_base/dependencies/sip4-tqt/debian/dh_sip_tqt b/debian/_base/dependencies/sip4-tqt/debian/dh_sip_tqt
deleted file mode 100644
index b1a8c19e3..000000000
--- a/debian/_base/dependencies/sip4-tqt/debian/dh_sip_tqt
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/usr/bin/perl -w
-
-=head1 NAME
-
-dh_sip_tqt - set the correct dependencies for Python packages using sip
-
-=cut
-
-use strict;
-use Debian::Debhelper::Dh_Lib;
-
-=head1 SYNOPSIS
-
-B<dh_sip_tqt>
-
-=head1 DESCRIPTION
-
-dh_sip_tqt creates the ${sip:Depends} substitution variable which must be used by
-Python extensions built with sip in order to depend on a version of python-sip
-that exports the correct public API.
-
-=cut
-
-init();
-
-my $sip_provides = `dpkg -s python-sip-tqt`;
-$sip_provides =~ /^Provides:\s*(.+)$/m;
-
-my @sip_apis = sort(grep(/sip\-api/, split(/,\s*/, $1)));
-
-my $sip_api_version=$sip_apis[-1];
-
-foreach my $package (@{$dh{DOPACKAGES}}) {
- addsubstvar($package, "sip:Depends", $sip_api_version);
-}
-
-=head1 SEE ALSO
-
-L<debhelper(7)>
-
-This program is a part of python-sip-dev but is made to work with debhelper.
-
-=head1 AUTHORS
-
-Torsten Marek <shlomme@debian.org>
-
-=cut
diff --git a/debian/_base/dependencies/sip4-tqt/debian/manpages/dh_sip_tqt.1 b/debian/_base/dependencies/sip4-tqt/debian/manpages/dh_py3sip_tqt.1
index ea429fe9a..8539600cf 100644
--- a/debian/_base/dependencies/sip4-tqt/debian/manpages/dh_sip_tqt.1
+++ b/debian/_base/dependencies/sip4-tqt/debian/manpages/dh_py3sip_tqt.1
@@ -123,27 +123,29 @@
.rm #[ #] #H #V #F C
.\" ========================================================================
.\"
-.IX Title "DH_SIP_TQT 1"
-.TH DH_SIP_TQT 1 "2010-02-02" "perl v5.10.1" "User Contributed Perl Documentation"
+.IX Title "DH_PY3SIP_TQT 1"
+.TH DH_PY3SIP_TQT 1 "2010-02-02" "perl v5.10.1" "User Contributed Perl Documentation"
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
.nh
.SH "NAME"
-dh_sip_tqt \- set the correct dependencies for Python packages using sip
+dh_py3sip_tqt \- set the correct dependencies for Python 3 packages using sip-tqt
.SH "SYNOPSIS"
.IX Header "SYNOPSIS"
-\&\fBdh_sip_tqt\fR
+\&\fBdh_py3sip_tqt\fR
.SH "DESCRIPTION"
.IX Header "DESCRIPTION"
-dh_sip_tqt creates the ${sip:Depends} substitution variable which must be used by
-Python extensions built with sip in order to depend on a version of python-sip
+dh_py3sip_tqt creates the ${py3sip-tqt:Depends} substitution variable which must be used by
+Python 3 extensions built with sip-tqt in order to depend on a version of python3-sip-tqt
that exports the correct public \s-1API\s0.
.SH "SEE ALSO"
.IX Header "SEE ALSO"
\&\fIdebhelper\fR\|(7)
.PP
-This program is a part of python-sip-dev but is made to work with debhelper.
+This program is a part of python3-sip-tqt-dev but is made to work with debhelper.
.SH "AUTHORS"
.IX Header "AUTHORS"
Torsten Marek <shlomme@debian.org>
+Adapted for Python3 by
+Slávek Banko <slavek.banko@axis.cz>
diff --git a/debian/_base/dependencies/sip4-tqt/debian/manpages/sip.1 b/debian/_base/dependencies/sip4-tqt/debian/manpages/sip-tqt.1
index ce178cc7e..ef824974f 100644
--- a/debian/_base/dependencies/sip4-tqt/debian/manpages/sip.1
+++ b/debian/_base/dependencies/sip4-tqt/debian/manpages/sip-tqt.1
@@ -1,26 +1,26 @@
.\"
.\" Created by Ricardo Cárdenes Medina <ricardo@conysis.com>
-.\" for the Debian 'sip' package
+.\" for the Debian 'sip-tqt' package
.\"
-.TH SIP 1 "2010/02/02"
+.TH SIP-TQT 1 "2010/02/02"
.SH NAME
-sip \- generates C++/Python bindings
+sip-tqt \- generates C++/Python bindings
.SH SYNOPSIS
-.B sip
+.B sip-tqt
[\fI-h\fR] [\fI-V\fR] [\fI-a file\fR] [\fI-c dir\fR] [\fI-d file\fR] [\fI-e\fR] [\fI-g\fR] [\fI-I dir\fR] [\fI-j #\fR] [\fI-k\fR] [\fI-m file\fR] [\fI-o\fR] [\fI-p module\fR] [\fI-P\fR] [\fI-r\fR] [\fI-s suffix\fR] [\fI-t tag\fR] [\fI-w\fR] [\fI-x feature\fR] [\fI-z file\fR] [\fIfile\fR]
.SH DESCRIPTION
-.B sip
+.B sip-tqt
takes a set of specification files and generates C++ code, documentation and build files.
The format of the needed specification file is similar to a C++ header.
-sip includes run-time support for the generated code.
+sip-tqt includes run-time support for the generated code.
.SH OPTIONS
.TP
.B \-h
Show summary of options.
.TP
.B \-V
-Display the sip version number
+Display the sip-tqt version number
.TP
.B \-a file
The name of the QScintilla API file. If not indicated, it will not
@@ -43,7 +43,7 @@ Enable support for exceptions. Disabled by default.
Always release and reaquire the GIL.
.TP
.B -I dir
-Directory where sip can search for included files.
+Directory where sip-tqt can search for included files.
.TP
.B -j number
Splits the generated code in \fInumber\fR files (1 by default). This
@@ -66,7 +66,7 @@ The suffix used for generated C or C++ files (".c" or ".cpp" if none specified)
.TP
.B -t tag
The primary version to tag generate code for. You only can specify those
-defined with a %Timeline directive. If you don't specify one, sip
+defined with a %Timeline directive. If you don't specify one, sip-tqt
will generate the latest available.
.TP
.B -w
@@ -80,7 +80,7 @@ The name of a file containing additional command line flags
.TP
.B file
The name of the file containing the specification. If you skip it,
-sip will expect to be fed by stdin.
+sip-tqt will expect to be fed by stdin.
.SH AUTHOR
This manual page was written by Ricardo Javier Cardenes Medina <rcardenes@debian.org> and Torsten Marek <shlomme@debian.org>,
for the Debian GNU/Linux system (but may be used by others).
diff --git a/debian/_base/dependencies/sip4-tqt/debian/patches/series b/debian/_base/dependencies/sip4-tqt/debian/patches/series
index 0b31a69ff..e69de29bb 100644
--- a/debian/_base/dependencies/sip4-tqt/debian/patches/series
+++ b/debian/_base/dependencies/sip4-tqt/debian/patches/series
@@ -1,2 +0,0 @@
-# siputils_debian_changes.diff
-# siputils_objdir_module_fix.diff
diff --git a/debian/_base/dependencies/sip4-tqt/debian/patches/siputils_debian_changes.diff b/debian/_base/dependencies/sip4-tqt/debian/patches/siputils_debian_changes.diff
deleted file mode 100644
index 2640f57c2..000000000
--- a/debian/_base/dependencies/sip4-tqt/debian/patches/siputils_debian_changes.diff
+++ /dev/null
@@ -1,32 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## 02_siputils.dpatch by Torsten Marek <shlomme@debian.org>
-Index: sip4-qt3-4.10/siputils.py
-===================================================================
---- sip4-qt3-4.10.orig/siputils.py 2010-01-14 15:52:09.000000000 +0100
-+++ sip4-qt3-4.10/siputils.py 2010-01-26 21:09:49.172700039 +0100
-@@ -718,7 +718,8 @@
-
- libs.extend(self.optional_list("LIBS_WINDOWS"))
-
-- lflags.extend(self._platform_rpaths(rpaths.as_list()))
-+ # Don't append any rpaths
-+ #lflags.extend(self._platform_rpaths(rpaths.as_list()))
-
- # Save the transformed values.
- self.CFLAGS.set(cflags)
-@@ -843,6 +844,15 @@
- clib is the library name in cannonical form.
- framework is set of the library is implemented as a MacOS framework.
- """
-+ ##################################################################
-+ # Generally, the linker is intelligent enough not to need this #
-+ # additional information! #
-+ # And Qt4's pkg-config and prl files are broken #
-+ # Changed for Debian packaging, Torsten Marek <shlomme@gmx.net> #
-+ ##################################################################
-+
-+ return []
-+
- prl_libs = []
-
- if self.generator in ("MSVC", "MSVC.NET", "BMAKE"):
diff --git a/debian/_base/dependencies/sip4-tqt/debian/patches/siputils_objdir_module_fix.diff b/debian/_base/dependencies/sip4-tqt/debian/patches/siputils_objdir_module_fix.diff
deleted file mode 100644
index 3c4570b21..000000000
--- a/debian/_base/dependencies/sip4-tqt/debian/patches/siputils_objdir_module_fix.diff
+++ /dev/null
@@ -1,18 +0,0 @@
-Index: b/siputils.py
-===================================================================
---- a/siputils.py
-+++ b/siputils.py
-@@ -1547,9 +1547,12 @@
- mfile.write("\n$(OFILES): $(HFILES)\n")
-
- for mf in self._build["tqmoc_headers"].split():
-- root, discard = os.path.splitext(mf)
-+ root, _ = os.path.splitext(mf)
- cpp = "tqmoc_" + root + ".cpp"
-
-+ if self._src_dir != self.dir:
-+ mf = os.path.join(self._src_dir, mf)
-+
- mfile.write("\n%s: %s\n" % (cpp, mf))
- mfile.write("\t$(MOC) -o %s %s\n" % (cpp, mf))
-
diff --git a/debian/_base/dependencies/sip4-tqt/debian/python-sip-tqt-dev.install b/debian/_base/dependencies/sip4-tqt/debian/python-sip-tqt-dev.install
deleted file mode 100644
index 1df36c612..000000000
--- a/debian/_base/dependencies/sip4-tqt/debian/python-sip-tqt-dev.install
+++ /dev/null
@@ -1 +0,0 @@
-usr/bin/*
diff --git a/debian/_base/dependencies/sip4-tqt/debian/python-sip-tqt-dev.links b/debian/_base/dependencies/sip4-tqt/debian/python-sip-tqt-dev.links
deleted file mode 100644
index fdd5af4cc..000000000
--- a/debian/_base/dependencies/sip4-tqt/debian/python-sip-tqt-dev.links
+++ /dev/null
@@ -1 +0,0 @@
-usr/share/javascript/jquery/jquery.js usr/share/doc/python-sip-tqt-dev/html/_static/jquery.js
diff --git a/debian/_base/dependencies/sip4-tqt/debian/python-sip-tqt-dev.manpages b/debian/_base/dependencies/sip4-tqt/debian/python-sip-tqt-dev.manpages
deleted file mode 100644
index ba33bb512..000000000
--- a/debian/_base/dependencies/sip4-tqt/debian/python-sip-tqt-dev.manpages
+++ /dev/null
@@ -1,2 +0,0 @@
-debian/manpages/sip.1
-debian/manpages/dh_sip_tqt.1
diff --git a/debian/_base/dependencies/sip4-tqt/debian/python-sip-tqt.install b/debian/_base/dependencies/sip4-tqt/debian/python-sip-tqt.install
deleted file mode 100644
index 9639c2814..000000000
--- a/debian/_base/dependencies/sip4-tqt/debian/python-sip-tqt.install
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib/python*/*-packages/sip4_tqt/sip.so
diff --git a/debian/_base/dependencies/sip4-tqt/debian/python-sip-tqt-dev.docs b/debian/_base/dependencies/sip4-tqt/debian/python3-sip-tqt-dev.docs
index 416a453aa..416a453aa 100644
--- a/debian/_base/dependencies/sip4-tqt/debian/python-sip-tqt-dev.docs
+++ b/debian/_base/dependencies/sip4-tqt/debian/python3-sip-tqt-dev.docs
diff --git a/debian/_base/dependencies/sip4-tqt/debian/python3-sip-tqt-dev.install b/debian/_base/dependencies/sip4-tqt/debian/python3-sip-tqt-dev.install
new file mode 100644
index 000000000..8c6fee21f
--- /dev/null
+++ b/debian/_base/dependencies/sip4-tqt/debian/python3-sip-tqt-dev.install
@@ -0,0 +1 @@
+../dh_py3sip_tqt /usr/bin/
diff --git a/debian/_base/dependencies/sip4-tqt/debian/python3-sip-tqt-dev.links b/debian/_base/dependencies/sip4-tqt/debian/python3-sip-tqt-dev.links
new file mode 100644
index 000000000..47086f7df
--- /dev/null
+++ b/debian/_base/dependencies/sip4-tqt/debian/python3-sip-tqt-dev.links
@@ -0,0 +1 @@
+usr/share/javascript/jquery/jquery.js usr/share/doc/python3-sip-tqt-dev/html/_static/jquery.js
diff --git a/debian/_base/dependencies/sip4-tqt/debian/python3-sip-tqt-dev.manpages b/debian/_base/dependencies/sip4-tqt/debian/python3-sip-tqt-dev.manpages
new file mode 100644
index 000000000..42f51bda1
--- /dev/null
+++ b/debian/_base/dependencies/sip4-tqt/debian/python3-sip-tqt-dev.manpages
@@ -0,0 +1 @@
+debian/manpages/dh_py3sip_tqt.1
diff --git a/debian/_base/dependencies/sip4-tqt/debian/python3-sip-tqt.install b/debian/_base/dependencies/sip4-tqt/debian/python3-sip-tqt.install
new file mode 100644
index 000000000..5603520f7
--- /dev/null
+++ b/debian/_base/dependencies/sip4-tqt/debian/python3-sip-tqt.install
@@ -0,0 +1 @@
+usr/lib/python3.*/*-packages/sip_tqt.so
diff --git a/debian/_base/dependencies/sip4-tqt/debian/pyversions b/debian/_base/dependencies/sip4-tqt/debian/pyversions
deleted file mode 100644
index 57a7586e4..000000000
--- a/debian/_base/dependencies/sip4-tqt/debian/pyversions
+++ /dev/null
@@ -1 +0,0 @@
-2.3-
diff --git a/debian/_base/dependencies/sip4-tqt/debian/rules b/debian/_base/dependencies/sip4-tqt/debian/rules
index 86a541601..7050c5431 100755
--- a/debian/_base/dependencies/sip4-tqt/debian/rules
+++ b/debian/_base/dependencies/sip4-tqt/debian/rules
@@ -2,11 +2,25 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+# The default gzip compressor has been changed in dpkg >= 1.17.0.
+deb_default_compress = $(shell LANG=C dpkg-deb --version | head -n1 | \
+ sed -e "s|.*version ||" -e "s| .*||" | \
+ xargs -r dpkg --compare-versions 1.17.0 lt \
+ && echo xz || echo gzip)
+ifeq ($(deb_default_compress),gzip)
DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
&& echo xz || echo bzip2)
+endif
+
+export DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+export DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
+export DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
export DH_OPTIONS
+PY3_PROVIDES=sip-tqt-py3api-7.0, sip-tqt-py3api-7.1
+PYDIST=sip $(shell python -c "a=[i.strip() for i in '$(PY3_PROVIDES)'.split(',')]; print sorted(a, reverse=True)[0]")
+
INSTDIR=$(CURDIR)/debian
CFLAGS=
@@ -17,12 +31,9 @@ else
CFLAGS += -O2 -g
endif
-PYTHONS := $(shell pyversions -vr debian/control)
+PYTHONS := $(shell py3versions -vr)
-DEB_PYTHON_SYSTEM = $(if $(wildcard /usr/bin/dh_python2),,pysupport)
-DH_PYTHON2 = $(if $(wildcard /usr/bin/dh_python2),dh_python2,dh_pysupport)
-
--include /usr/share/python/python.mk
+-include /usr/share/python3/python.mk
ifeq (,$(py_sitename))
py_sitename = site-packages
py_libdir = /usr/lib/python$(subst python,,$(1))/site-packages
@@ -40,8 +51,7 @@ build-%/configure-stamp:
mkdir -p build-$*
cd build-$* \
&& python$* ../configure.py \
- -d /usr/lib/python$*/$(call py_sitename,$*)/sip4_tqt \
- -g python$* \
+ -d /usr/lib/python$*/$(call py_sitename,$*) \
-u STRIP="" CFLAGS="${CFLAGS} -I/usr/include/tqt -I/usr/include/tqt3 -I/usr/include/qt3" CFLAGS_RELEASE="" CXXFLAGS="${CFLAGS} -I/usr/include/tqt -I/usr/include/tqt3 -I/usr/include/qt3" CXXFLAGS_RELEASE=""
touch $@
@@ -50,9 +60,7 @@ dbg-build-%/configure-stamp:
mkdir -p dbg-build-$*
cd dbg-build-$* \
&& python$*-dbg ../configure.py \
- -d /usr/lib/python$*/$(call py_sitename,$*)/sip4_tqt \
- -g python$* \
- -e /usr/include/python$*_d \
+ -d /usr/lib/python$*/$(call py_sitename,$*) \
-u CFLAGS="-O0 -g -I/usr/include/tqt -I/usr/include/tqt3 -I/usr/include/qt3" CFLAGS_RELEASE="" CXXFLAGS="-O0 -g -I/usr/include/tqt -I/usr/include/tqt3 -I/usr/include/qt3" CXXFLAGS_RELEASE="" STRIP=""
touch $@
@@ -74,12 +82,13 @@ clean:
dh_testdir
dh_testroot
rm -rf *-stamp siputils.pyc $(PYTHONS:%=build-%) $(PYTHONS:%=dbg-build-%)
- dh_clean
+ dh_clean debian/python3-sip.pydist
install-arch: build
dh_testdir
dh_testroot
dh_prep -a
+ echo "python3:Provides=$(PY3_PROVIDES)" >> debian/python3-sip-tqt.substvars
dh_installdirs -a
# This is needed to enforce that the install-arch-% rules are
# not run in parallel. Both rules install into the same directory,
@@ -90,36 +99,29 @@ install-arch: build
$(MAKE) -f debian/rules install-arch-$$p;\
done
- for i in $$(find debian/python-sip-tqt-dbg -name '*.so'); do \
+ for i in $$(find debian/python3-sip-tqt-dbg -name '*.so'); do \
b=$$(basename $$i .so); \
mv $$i $$(dirname $$i)/$${b}_d.so; \
done
- find debian/python-sip-tqt-dbg ! -type d ! -name '*_d.*' | xargs rm -f
- find debian/python-sip-tqt-dbg -depth -empty -exec rmdir {} \;
+ find debian/python3-sip-tqt-dbg ! -type d ! -name '*_d.*' | xargs rm -f
+ find debian/python3-sip-tqt-dbg -depth -empty -exec rmdir {} \;
dh_install -a --sourcedir=$(CURDIR)/debian/tmp
- install -m 755 -o root -g root debian/dh_sip_tqt debian/python-sip-tqt-dev/usr/bin
-
-install-arch-%:
- $(MAKE) -C build-$* install DESTDIR=$(CURDIR)/debian/tmp
- $(MAKE) -C dbg-build-$* install DESTDIR=$(CURDIR)/debian/python-sip-tqt-dbg
- mkdir -p debian/python-sip-tqt/usr/lib/python$*/$(call py_sitename,$*)/sip4_tqt/
- touch debian/python-sip-tqt/usr/lib/python$*/$(call py_sitename,$*)/sip4_tqt/__init__.py
- install -m 644 -o root -g root debian/sipconfig.py debian/python-sip-tqt/usr/lib/python$*/$(call py_sitename,$*)/sip4_tqt/
- install -m 644 -o root -g root build-$*/sipconfig.py debian/python-sip-tqt/usr/lib/python$*/$(call py_sitename,$*)/sip4_tqt/sipconfig_nd.py
-ifneq (dh_pysupport,${DH_PYTHON2})
- # install *_d.py into wrong package to prevent deletion in dh_python2
- install -m 644 -o root -g root dbg-build-$*/sipconfig.py debian/python-sip-tqt/usr/lib/python$*/$(call py_sitename,$*)/sip4_tqt/sipconfig_d.py
-else
- install -m 644 -o root -g root dbg-build-$*/sipconfig.py debian/python-sip-tqt-dbg/usr/lib/python$*/$(call py_sitename,$*)/sip4_tqt/sipconfig_d.py
-endif
- mkdir -p debian/python-sip-tqt-dev/usr/include/python$*
- install -m 644 -o root -g root siplib/sip.h debian/python-sip-tqt-dev/usr/include/python$*/
- mkdir -p debian/python-sip-tqt-dev/usr/include/python$*_d
- ln -s ../python$*/sip.h \
- debian/python-sip-tqt-dev/usr/include/python$*_d/sip.h
- mkdir -p debian/python-sip-tqt-dev/usr/lib/python$*/$(call py_sitename,$*)/sip4_tqt
- install -m 644 -o root -g root sipdistutils.py debian/python-sip-tqt-dev/usr/lib/python$*/$(call py_sitename,$*)/sip4_tqt
+
+install-arch-3.%:
+ $(MAKE) -C build-3.$* install DESTDIR=$(CURDIR)/debian/tmp
+ $(MAKE) -C dbg-build-3.$* install DESTDIR=$(CURDIR)/debian/python3-sip-tqt-dbg
+ mkdir -p debian/python3-sip-tqt/usr/lib/python3.$*/dist-packages/
+ install -m 644 -o root -g root debian/sip_tqt_config_py3.py debian/python3-sip-tqt/usr/lib/python3.$*/dist-packages/sip_tqt_config.py
+ install -m 644 -o root -g root build-3.$*/sip_tqt_config.py debian/python3-sip-tqt/usr/lib/python3.$*/dist-packages/sip_tqt_config_nd.py
+ install -m 644 -o root -g root dbg-build-3.$*/sip_tqt_config.py debian/python3-sip-tqt-dbg/usr/lib/python3.$*/dist-packages/sip_tqt_config_d.py
+ mkdir -p debian/python3-sip-tqt-dev$$(python3.$* -c 'import sysconfig; print (sysconfig.get_path("include"))')
+ install -m 644 -o root -g root siplib/sip-tqt.h debian/python3-sip-tqt-dev$$(python3.$* -c 'import sysconfig; print (sysconfig.get_path("include"))')/
+ mkdir -p debian/python3-sip-tqt-dev/$$(python3.$*-dbg -c 'import sysconfig; print (sysconfig.get_path("include"))')
+ ln -s ../$$(python3.$* -c 'import sysconfig; print (sysconfig.get_path("include"))' | xargs basename)/sip-tqt.h \
+ debian/python3-sip-tqt-dev/$$(python3.$*-dbg -c 'import sysconfig; print (sysconfig.get_path("include"))')/sip-tqt.h
+ mkdir -p debian/python3-sip-tqt-dev/usr/lib/python3.$*/dist-packages
+ install -m 644 -o root -g root sip_tqt_distutils.py debian/python3-sip-tqt-dev/usr/lib/python3.$*/dist-packages
# Must not depend on anything. This is to be called by
@@ -135,24 +137,15 @@ binary-common:
dh_link
# don't call strip twice, it's in binary-common
ifneq (,$(findstring -a, $(DH_OPTIONS)))
- DH_OPTIONS= dh_strip -ppython-sip-tqt-dev
- DH_OPTIONS= dh_strip -ppython-sip-tqt -Npython-sip-tqt-dev --dbg-package=python-sip-tqt-dbg
- rm -rf debian/python-sip-tqt-dbg/usr/share/doc/python-sip-tqt-dbg
- mkdir -p debian/python-sip-tqt-dbg/usr/share/doc
- ln -s python-sip-tqt debian/python-sip-tqt-dbg/usr/share/doc/python-sip-tqt-dbg
+ DH_OPTIONS= dh_strip -ppython3-sip-tqt-dev
+ DH_OPTIONS= dh_strip -ppython3-sip-tqt -Npython3-sip-tqt-dev --dbg-package=python3-sip-tqt-dbg
+ rm -rf debian/python3-sip-tqt-dbg/usr/share/doc/python3-sip-tqt-dbg
+ mkdir -p debian/python3-sip-tqt-dbg/usr/share/doc
+ ln -s python3-sip-tqt debian/python3-sip-tqt-dbg/usr/share/doc/python3-sip-tqt-dbg
endif
- dh_compress
+ dh_compress -X.inv
dh_fixperms
- ${DH_PYTHON2}
-ifneq (dh_pysupport,${DH_PYTHON2})
- # move *_d.py back into right package
- find debian/python-sip-tqt -name "*_d.py" | \
- while read f; do \
- f1="debian/python-sip-tqt-dbg/$${f#debian/python-sip-tqt/}"; \
- mkdir -p "$${f1%/*}"; \
- mv "$${f}" "$${f1}" ; \
- done
-endif
+ dh_python3 --no-dbg-cleaning
dh_installdeb
dh_shlibdeps
dh_gencontrol
diff --git a/debian/_base/dependencies/sip4-tqt/debian/sip-tqt-dev.install b/debian/_base/dependencies/sip4-tqt/debian/sip-tqt-dev.install
new file mode 100644
index 000000000..07438bc04
--- /dev/null
+++ b/debian/_base/dependencies/sip4-tqt/debian/sip-tqt-dev.install
@@ -0,0 +1 @@
+usr/bin/sip-tqt
diff --git a/debian/_base/dependencies/sip4-tqt/debian/sip-tqt-dev.manpages b/debian/_base/dependencies/sip4-tqt/debian/sip-tqt-dev.manpages
new file mode 100644
index 000000000..1570b539a
--- /dev/null
+++ b/debian/_base/dependencies/sip4-tqt/debian/sip-tqt-dev.manpages
@@ -0,0 +1 @@
+debian/manpages/sip-tqt.1
diff --git a/debian/_base/dependencies/sip4-tqt/debian/sip_tqt_config_py3.py b/debian/_base/dependencies/sip4-tqt/debian/sip_tqt_config_py3.py
new file mode 100644
index 000000000..a937df69a
--- /dev/null
+++ b/debian/_base/dependencies/sip4-tqt/debian/sip_tqt_config_py3.py
@@ -0,0 +1,17 @@
+# import the sip_tqt_config.py for the normal or the debug build
+
+import os
+import sys
+import sysconfig
+
+sys.path.insert(0, os.path.join(sysconfig.get_path('platstdlib'), 'dist-packages'))
+
+if 'd' in sys.abiflags:
+ try:
+ from sip_tqt_config_d import *
+ from sip_tqt_config_d import _pkg_config, _default_macros
+ except ImportError as msg:
+ raise ImportError('No module named sip_tqt_config; package python-sip-tqt-dbg not installed')
+else:
+ from sip_tqt_config_nd import *
+ from sip_tqt_config_nd import _pkg_config, _default_macros
diff --git a/debian/_base/dependencies/sip4-tqt/debian/sipconfig.py b/debian/_base/dependencies/sip4-tqt/debian/sipconfig.py
deleted file mode 100644
index a9e761f08..000000000
--- a/debian/_base/dependencies/sip4-tqt/debian/sipconfig.py
+++ /dev/null
@@ -1,13 +0,0 @@
-# import the sipconfig.py for the normal or the debug build
-
-import sys
-
-if getattr(sys, "pydebug", False):
- try:
- from sipconfig_d import *
- from sipconfig_d import _pkg_config, _default_macros
- except ImportError, msg:
- raise ImportError, 'No module named sipconfig; package python-sip-tqt-dbg not installed'
-else:
- from sipconfig_nd import *
- from sipconfig_nd import _pkg_config, _default_macros
diff --git a/debian/_base/dependencies/sip4-tqt/debian/watch b/debian/_base/dependencies/sip4-tqt/debian/watch
deleted file mode 100644
index 1ff1f0839..000000000
--- a/debian/_base/dependencies/sip4-tqt/debian/watch
+++ /dev/null
@@ -1,3 +0,0 @@
-version=3
-http://www.riverbankcomputing.co.uk/software/sip/download \
- /static/Downloads/sip4/sip-([\d\.]*)\.tar\.gz debian uupdate