From d3c7d3e5f9607edef1a795ccc502ab3eb3121165 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 14 Nov 2024 03:02:32 +0000 Subject: gentoo auto-resync : 14:11:2024 - 03:02:32 --- dev-python/qscintilla/Manifest | 3 + dev-python/qscintilla/metadata.xml | 14 +++ dev-python/qscintilla/qscintilla-2.14.1-r2.ebuild | 112 ++++++++++++++++++++++ 3 files changed, 129 insertions(+) create mode 100644 dev-python/qscintilla/Manifest create mode 100644 dev-python/qscintilla/metadata.xml create mode 100644 dev-python/qscintilla/qscintilla-2.14.1-r2.ebuild (limited to 'dev-python/qscintilla') diff --git a/dev-python/qscintilla/Manifest b/dev-python/qscintilla/Manifest new file mode 100644 index 000000000000..ee72f4012ee7 --- /dev/null +++ b/dev-python/qscintilla/Manifest @@ -0,0 +1,3 @@ +DIST QScintilla_src-2.14.1.tar.gz 3233610 BLAKE2B 83b54378f0d3fa39ea120214a06c91982f81281e15c61fc70a9e83928be64724cfd2679b5e4aafee44a324e24a6c4729693cd118c6ad0b1636a199f2f41d34fe SHA512 19e2f9e0a14947501c575018df368d24eb7f8c74e74faa5246db36415bf28dc0beee507ed0e73107c02b36a99bbaf55f0ef3349f479d2332e1b92b2c4a32788a +EBUILD qscintilla-2.14.1-r2.ebuild 2762 BLAKE2B 1c86d7e144a091f8b19451ffaf9899662bddc0fc1ba34ed852ecd1e12114973a998569f95edc8f5570ad3b61f45624f490adefbb77991676c5698ac1f749dca8 SHA512 d8a2dab1bda52447630339f3165296d0bb2559224f63da861d199ab284e9df5dbcfa3e98434d193152a34ee7248eff483d0748dcc79afb6c38f121bf3be3badb +MISC metadata.xml 498 BLAKE2B 275924a6a89a3553a1a32ce3103e624460e4c67aa07deede1f823784e2af7b20389e9f79f6fc559929b3457ed6be58bdd5dad3984457b27c6ca493450f1458e0 SHA512 cc45758a175fd95cff25aed840fafd1ce7e98b4b3b455e0f9d95f556c33e3d2c6229bf8ffce15aa2a7726238704cac64bf359972742dcf7d663a7cf27af147b8 diff --git a/dev-python/qscintilla/metadata.xml b/dev-python/qscintilla/metadata.xml new file mode 100644 index 000000000000..cb669d0602d2 --- /dev/null +++ b/dev-python/qscintilla/metadata.xml @@ -0,0 +1,14 @@ + + + + + + + phil@riverbankcomputing.com + Phil Thompson + + https://www.riverbankcomputing.com/static/Docs/QScintilla/ + mailto:qscintilla@riverbankcomputing.com + QScintilla + + diff --git a/dev-python/qscintilla/qscintilla-2.14.1-r2.ebuild b/dev-python/qscintilla/qscintilla-2.14.1-r2.ebuild new file mode 100644 index 000000000000..83e0ea4da40d --- /dev/null +++ b/dev-python/qscintilla/qscintilla-2.14.1-r2.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +inherit multibuild python-r1 qmake-utils out-of-source-utils + +DESCRIPTION="Python bindings for QScintilla" +HOMEPAGE="https://www.riverbankcomputing.com/software/qscintilla/ https://pypi.org/project/QScintilla/" + +MY_PN=QScintilla +MY_P=${MY_PN}_src-${PV/_pre/.dev} +SRC_URI="https://www.riverbankcomputing.com/static/Downloads/${MY_PN}/${PV}/${MY_P}.tar.gz" +S=${WORKDIR}/${MY_P}/Python + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 ~arm64 ~ppc64 x86" +IUSE="debug +qt5 qt6" + +REQUIRED_USE="|| ( qt5 qt6 ) ${PYTHON_REQUIRED_USE}" + +# no tests +RESTRICT="test" + +DEPEND="${PYTHON_DEPS} + qt5? ( + >=dev-python/PyQt5-5.15.5[gui,printsupport,widgets,${PYTHON_USEDEP}] + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtprintsupport:5 + dev-qt/qtwidgets:5 + ) + qt6? ( + dev-python/PyQt6[gui,printsupport,widgets,${PYTHON_USEDEP}] + dev-qt/qtbase:6[gui,widgets] + ) + ~x11-libs/qscintilla-${PV}:=[qt5(+)?,qt6(-)?] +" +RDEPEND="${DEPEND} + qt5? ( >=dev-python/PyQt5-sip-12.9:=[${PYTHON_USEDEP}] ) + qt6? ( >=dev-python/PyQt6-sip-13.5:=[${PYTHON_USEDEP}] ) +" +BDEPEND=" + >=dev-python/PyQt-builder-1.10[${PYTHON_USEDEP}] + >=dev-python/sip-6.2[${PYTHON_USEDEP}] + qt5? ( dev-qt/qtcore:5 ) + qt6? ( dev-qt/qtbase:6 ) +" + +pkg_setup() { + MULTIBUILD_VARIANTS=( $(usev qt5) $(usev qt6) ) +} + +src_configure() { + my_src_configure() { + case ${MULTIBUILD_VARIANT} in + qt5) + configuration() { + local myconf=( + sip-build + --verbose + --build-dir="${BUILD_DIR}" + --scripts-dir="$(python_get_scriptdir)" + --qmake="$(qt5_get_bindir)"/qmake + --no-make + $(usev debug '--debug --qml-debug --tracing') + ) + echo "${myconf[@]}" + "${myconf[@]}" || die + + run_in_build_dir qmake5 -recursive ${MY_PN}.pro + } + mv pyproject{-${MULTIBUILD_VARIANT},}.toml || die + python_foreach_impl configuration + ;; + qt6) + configuration() { + local myconf=( + sip-build + --verbose + --build-dir="${BUILD_DIR}" + --scripts-dir="$(python_get_scriptdir)" + --qmake="$(qt6_get_bindir)"/qmake + --no-make + $(usev debug '--debug --qml-debug --tracing') + ) + echo "${myconf[@]}" + "${myconf[@]}" || die + + run_in_build_dir qmake6 -recursive ${MY_PN}.pro + } + mv pyproject{-${MULTIBUILD_VARIANT},}.toml || die + python_foreach_impl configuration + ;; + esac + } + multibuild_foreach_variant my_src_configure +} + +src_compile() { + multibuild_foreach_variant python_foreach_impl run_in_build_dir default +} + +src_install() { + installation() { + emake INSTALL_ROOT="${D}" install + python_optimize + } + multibuild_foreach_variant python_foreach_impl run_in_build_dir installation +} -- cgit v1.2.3