From: sgn <sgn@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] qscintilla-qt5 update to 2.12.1, new package python3-pyqt5-qsci
Date: Sat, 24 Jun 2023 18:53:50 +0200 [thread overview]
Message-ID: <20230624165350.qUugbbmnJhpEQj4k-59G2Zzyqe7p-aK3iemHYi8-Ano@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-31620@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1663 bytes --]
There is an updated pull request by sgn against master on the void-packages repository
https://github.com/sgn/void-packages qscintilla-qt5
https://github.com/void-linux/void-packages/pull/31620
qscintilla-qt5 update to 2.12.1, new package python3-pyqt5-qsci
<!-- Mark items with [x] where applicable -->
@Nyx70 part of effort for QGis
#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR
<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!--
#### Does it build and run successfully?
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
- [ ] aarch64-musl
- [ ] armv7l
- [ ] armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/31620.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-qscintilla-qt5-31620.patch --]
[-- Type: text/x-diff, Size: 9427 bytes --]
From db5ff434c970515de257cb0e13fc7b17c5aab81f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
<congdanhqx@gmail.com>
Date: Wed, 2 Jun 2021 14:28:41 +0700
Subject: [PATCH 1/2] qscintilla-qt5: update to 2.12.1.
---
.../patches/configure.py-objdir-support.patch | 42 ---------------
srcpkgs/qscintilla-qt5/template | 51 +++++++++++++++++--
srcpkgs/qscintilla-qt5/update | 3 +-
3 files changed, 47 insertions(+), 49 deletions(-)
delete mode 100644 srcpkgs/qscintilla-qt5/patches/configure.py-objdir-support.patch
diff --git a/srcpkgs/qscintilla-qt5/patches/configure.py-objdir-support.patch b/srcpkgs/qscintilla-qt5/patches/configure.py-objdir-support.patch
deleted file mode 100644
index 774e4eb5a863..000000000000
--- a/srcpkgs/qscintilla-qt5/patches/configure.py-objdir-support.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-02_configure.dpatch by Torsten Marek <shlomme@debian.org>
-Updated for Qscintilla 2.8.2 configure.py changes by Scott Kitterman
-<scott@kitterman.com>
-patch the configure script for the Python bindings to support object dir
-builds
-Index: Python/configure.py
-===================================================================
---- a/Python/configure.py 2014-07-05 10:02:02.318834374 -0400
-+++ b/Python/configure.py 2014-07-05 10:02:02.306834375 -0400
-@@ -31,6 +31,8 @@
- import optparse
- import sys
-
-+src_dir = os.path.dirname(os.path.abspath(__file__))
-+
-
- ###############################################################################
- # You shouldn't need to modify anything above this line.
-@@ -210,6 +212,8 @@
- "The QScintilla version number could not be determined by "
- "reading %s." % sciglobal)
-
-+ return # Debian: do not check for the installed version, we're good this way.
-+
- lib_dir = target_configuration.qsci_lib_dir
- if lib_dir is None:
- lib_dir = target_configuration.qt_lib_dir
-@@ -264,7 +268,12 @@
- the target configuration.
- """
-
-- return 'sip/qscimod5.sip' if target_configuration.pyqt_package == 'PyQt5' else 'sip/qscimod4.sip'
-+ if target_configuration.pyqt_package == 'PyQt5':
-+ return os.path.join(src_dir, 'sip/qscimod5.sip')
-+ else:
-+ return os.path.join(src_dir, 'sip/qscimod4.sip')
-+
-+ #return 'sip/qscimod5.sip' if target_configuration.pyqt_package == 'PyQt5' else 'sip/qscimod4.sip'
-
- def get_sip_installs(self, target_configuration):
- """ Return a tuple of the installation directory of the module's .sip
-
diff --git a/srcpkgs/qscintilla-qt5/template b/srcpkgs/qscintilla-qt5/template
index 1700d195898f..55eb29df3b0e 100644
--- a/srcpkgs/qscintilla-qt5/template
+++ b/srcpkgs/qscintilla-qt5/template
@@ -1,17 +1,58 @@
# Template file for 'qscintilla-qt5'
+# XXX keep in sync with python3-pyqt5-qscintilla
pkgname=qscintilla-qt5
-version=2.11.2
+version=2.12.1
revision=1
-build_wrksrc=Qt4Qt5
+build_wrksrc=src
build_style=qmake
hostmakedepends="qt5-qmake qt5-host-tools"
-makedepends="qt5-devel"
+makedepends="qt5-devel qt5-tools-devel"
short_desc="Qt5 port of Neil Hodgson's Scintilla C++ editor class"
maintainer="Pierre Allegraud <pierre.allegraud@crans.org>"
license="GPL-3.0-only"
homepage="https://www.riverbankcomputing.com/software/qscintilla/intro"
-distfiles="https://www.riverbankcomputing.com/static/Downloads/QScintilla/${version}/QScintilla_gpl-${version}.tar.gz"
-checksum=029bdc476a069fda2cea3cd937ba19cc7fa614fb90578caef98ed703b658f4a1
+distfiles="https://www.riverbankcomputing.com/static/Downloads/QScintilla/${version}/QScintilla_src-${version}.tar.gz"
+checksum=a7331c44b5d7320cbf58cb2382c38857e9e9f4fa52c405bd7776c8b6649836c2
+
+post_configure() {
+ local _qt_arch
+ local qmake_args
+ if [ "$CROSS_BUILD" ]; then
+ case $XBPS_TARGET_MACHINE in
+ i686*) _qt_arch=i386;;
+ x86_64*) _qt_arch=x86_64;;
+ aarch64*) _qt_arch=arm64;;
+ arm*) _qt_arch=arm;;
+ mips*) _qt_arch=mips;;
+ ppc64*) _qt_arch=power64;;
+ ppc*) _qt_arch=power;;
+ esac
+ qmake_args="-qtconf ${wrksrc}/qt.conf
+ PKG_CONFIG_EXECUTABLE=${XBPS_WRAPPERDIR}/${PKG_CONFIG}"
+ fi
+ cd ../designer
+ /usr/lib/qt5/bin/qmake \
+ ${qmake_args} \
+ PREFIX=/usr \
+ QT_INSTALL_PREFIX=/usr \
+ LIB=/usr/lib \
+ QMAKE_CC=$CC QMAKE_CXX=$CXX \
+ QMAKE_LINK=$CXX QMAKE_LINK_C=$CC \
+ QMAKE_CFLAGS="${CFLAGS} -I$wrksrc/src" \
+ QMAKE_CXXFLAGS="${CXXFLAGS} -I$wrksrc/src" \
+ QMAKE_LFLAGS="${LDFLAGS}" \
+ ${_qt_arch:+"QT_TARGET_ARCH=$_qt_arch"} \
+ CONFIG+=no_qt_rpath
+}
+
+post_build() {
+ make -C ../designer ${makejobs} CC="$CC" CXX="$CXX" LINK="$CXX"
+}
+
+post_install() {
+ make -C ../designer STRIP=true PREFIX=/usr DESTDIR=${DESTDIR} \
+ INSTALL_ROOT=${DESTDIR} install
+}
qscintilla-qt5-devel_package() {
short_desc+=" - development files"
diff --git a/srcpkgs/qscintilla-qt5/update b/srcpkgs/qscintilla-qt5/update
index 4c5ed097b260..8ddafc0f70ad 100644
--- a/srcpkgs/qscintilla-qt5/update
+++ b/srcpkgs/qscintilla-qt5/update
@@ -1,3 +1,2 @@
site="https://www.riverbankcomputing.com/software/qscintilla/download"
-pkgname=QScintilla_gpl
-ignore="*dev*"
+pattern='QScintilla[_a-zA-Z]*-\K[\d.]+(?=.tar.gz)'
From aed51c1e1372a7fc2a39edd60523253ad9500120 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
<congdanhqx@gmail.com>
Date: Sun, 6 Jun 2021 21:35:40 +0700
Subject: [PATCH 2/2] New package: python3-pyqt5-qsci-2.12.1
---
srcpkgs/python3-pyqt5-qsci-devel | 1 +
.../python3-pyqt5-qsci/patches/cross.patch | 20 ++++++++++
srcpkgs/python3-pyqt5-qsci/template | 40 +++++++++++++++++++
srcpkgs/python3-pyqt5-qsci/update | 2 +
4 files changed, 63 insertions(+)
create mode 120000 srcpkgs/python3-pyqt5-qsci-devel
create mode 100644 srcpkgs/python3-pyqt5-qsci/patches/cross.patch
create mode 100644 srcpkgs/python3-pyqt5-qsci/template
create mode 100644 srcpkgs/python3-pyqt5-qsci/update
diff --git a/srcpkgs/python3-pyqt5-qsci-devel b/srcpkgs/python3-pyqt5-qsci-devel
new file mode 120000
index 000000000000..2ded1bc41fb7
--- /dev/null
+++ b/srcpkgs/python3-pyqt5-qsci-devel
@@ -0,0 +1 @@
+python3-pyqt5-qsci
\ No newline at end of file
diff --git a/srcpkgs/python3-pyqt5-qsci/patches/cross.patch b/srcpkgs/python3-pyqt5-qsci/patches/cross.patch
new file mode 100644
index 000000000000..e69b09225d0b
--- /dev/null
+++ b/srcpkgs/python3-pyqt5-qsci/patches/cross.patch
@@ -0,0 +1,20 @@
+Index: QScintilla_src-2.12.1/Python/project.py
+===================================================================
+--- QScintilla_src-2.12.1.orig/Python/project.py
++++ QScintilla_src-2.12.1/Python/project.py
+@@ -41,6 +41,15 @@ class QScintilla(PyQtProject):
+ # static or dynamic).
+ self.qsci_external_lib = not os.path.isdir('src')
+
++ def run_command(self, args, *, fatal=True):
++ """ Run a command and display the output if requested. """
++ qemu_machine = os.environ.get("XBPS_TARGET_QEMU_MACHINE")
++ builddir = os.environ.get("XBPS_BUILDDIR")
++ if qemu_machine and args[0].startswith(os.path.join(builddir, "QScintilla")):
++ qemu = "qemu-{}-static".format(qemu_machine)
++ args.insert(0, qemu)
++ super().run_command(args, fatal=fatal)
++
+ def apply_user_defaults(self, tool):
+ """ Set default values for user options that haven't been set yet. """
+
diff --git a/srcpkgs/python3-pyqt5-qsci/template b/srcpkgs/python3-pyqt5-qsci/template
new file mode 100644
index 000000000000..f7b547a98b06
--- /dev/null
+++ b/srcpkgs/python3-pyqt5-qsci/template
@@ -0,0 +1,40 @@
+# Template file for 'python3-pyqt5-qsci'
+# XXX Keep in sync with qscintilla-qt5
+# Splited because of circular dependencies
+# qscintilla-qt5 -> PyQt5 -> pyqt5-qsci
+pkgname=python3-pyqt5-qsci
+version=2.12.1
+revision=1
+wrksrc=QScintilla_src-$version
+build_wrksrc=Python
+build_style=sip-build
+build_helper=qemu
+hostmakedepends="qt5-qmake qt5-host-tools python3-PyQt5-devel
+ python3-PyQt-builder pkg-config"
+makedepends="qscintilla-qt5-devel python3-PyQt5-devel qt5-devel python3-devel"
+depends="python3-PyQt5"
+short_desc="Qt5 port of Scintilla editor - Python 3 binding"
+maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
+license="GPL-3.0-only"
+homepage="https://www.riverbankcomputing.com/software/qscintilla/intro"
+distfiles="https://www.riverbankcomputing.com/static/Downloads/QScintilla/${version}/QScintilla_src-${version}.tar.gz"
+checksum=a7331c44b5d7320cbf58cb2382c38857e9e9f4fa52c405bd7776c8b6649836c2
+lib32disabled=yes
+
+CXXFLAGS="$(printf " -I$XBPS_CROSS_BASE/usr/include/qt5/%s" \
+ QtWidgets QtPrintSupport)"
+
+post_extract() {
+ rm -rf src
+ ln -sf pyproject-qt5.toml Python/pyproject.toml
+}
+
+python3-pyqt5-qsci-devel_package() {
+ short_desc+=" - development files"
+ depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
+ lib32disabled=yes
+ pkg_install() {
+ vmove ${py3_sitelib}/PyQt5/bindings
+ vmove usr/share/qt5/qsci/api
+ }
+}
diff --git a/srcpkgs/python3-pyqt5-qsci/update b/srcpkgs/python3-pyqt5-qsci/update
new file mode 100644
index 000000000000..8ddafc0f70ad
--- /dev/null
+++ b/srcpkgs/python3-pyqt5-qsci/update
@@ -0,0 +1,2 @@
+site="https://www.riverbankcomputing.com/software/qscintilla/download"
+pattern='QScintilla[_a-zA-Z]*-\K[\d.]+(?=.tar.gz)'
next prev parent reply other threads:[~2023-06-24 16:53 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-23 0:46 [PR PATCH] " sgn
2021-06-23 1:09 ` [PR PATCH] [Updated] " sgn
2022-05-23 2:12 ` github-actions
2022-06-04 19:58 ` gabriel-russo
2022-09-03 2:14 ` github-actions
2022-09-03 2:18 ` sgn
2022-11-06 11:12 ` ar-jan
2023-01-29 13:19 ` ar-jan
2023-04-30 1:53 ` github-actions
2023-04-30 11:31 ` ar-jan
2023-06-24 13:20 ` ar-jan
2023-06-24 16:53 ` sgn [this message]
2023-06-24 16:54 ` [PR PATCH] [Updated] " sgn
2023-07-25 2:38 ` classabbyamp
2023-07-25 2:38 ` classabbyamp
2023-07-25 2:59 ` qscintilla-qt5 update to 2.14.1, " classabbyamp
2023-07-25 8:01 ` ar-jan
2023-07-25 8:04 ` [PR PATCH] [Merged]: " classabbyamp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230624165350.qUugbbmnJhpEQj4k-59G2Zzyqe7p-aK3iemHYi8-Ano@z \
--to=sgn@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).