public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/qt:master commit in: dev-python/pyside-tools/
@ 2017-05-18  0:47 Davide Pesavento
  0 siblings, 0 replies; 3+ messages in thread
From: Davide Pesavento @ 2017-05-18  0:47 UTC (permalink / raw
  To: gentoo-commits

commit:     695653efea3f63b6bb2c6af72455f775d7a0965f
Author:     leycec <leycec <AT> gmail <DOT> com>
AuthorDate: Fri May  5 02:29:48 2017 +0000
Commit:     Davide Pesavento <pesa <AT> gentoo <DOT> org>
CommitDate: Thu May 18 00:44:39 2017 +0000
URL:        https://gitweb.gentoo.org/proj/qt.git/commit/?id=695653ef

dev-python/pyside-tools: Add live ebuild, 5.6 branch.

The live pyside-tools ebuild now builds PySide2-Tools into SLOT=2.
Python 3.6 is additionally supported, but 2.7 is temporarily disabled
due to an upstream bug.

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 dev-python/pyside-tools/metadata.xml             |   8 ++
 dev-python/pyside-tools/pyside-tools-9999.ebuild | 129 +++++++++++++++++++++++
 2 files changed, 137 insertions(+)

diff --git a/dev-python/pyside-tools/metadata.xml b/dev-python/pyside-tools/metadata.xml
new file mode 100644
index 00000000..17237689
--- /dev/null
+++ b/dev-python/pyside-tools/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="project">
+		<email>qt@gentoo.org</email>
+		<name>Gentoo Qt Project</name>
+	</maintainer>
+</pkgmetadata>

diff --git a/dev-python/pyside-tools/pyside-tools-9999.ebuild b/dev-python/pyside-tools/pyside-tools-9999.ebuild
new file mode 100644
index 00000000..514c436e
--- /dev/null
+++ b/dev-python/pyside-tools/pyside-tools-9999.ebuild
@@ -0,0 +1,129 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+CMAKE_IN_SOURCE_BUILD="1"
+
+#FIXME: Restore Python 2.7 support after this upstream issue is resolved:
+#    https://bugreports.qt.io/browse/PYSIDE-508
+#Even after this issue is resolved, further ebuild changes will probably be
+#needed to fully support Python 2.7. Unlike PySide2 and Shiboken2, the root
+#"CMakeLists.txt" file in pyside2-tools provides no ${PYTHON_EXECUTABLE} option.
+#Instead, the ${PYTHON_EXTENSION_SUFFIX} and ${PYTHON_BASENAME} options must be
+#passed with values specific to Python 2.7. Additionally, note that the
+#"python2.7-config" command provides no "--extension-suffix" option.
+PYTHON_COMPAT=( python3_{4,5,6} )
+
+inherit cmake-utils python-r1 virtualx git-r3
+
+DESCRIPTION="PySide development tools (lupdate, rcc, uic)"
+HOMEPAGE="https://wiki.qt.io/PySide2"
+EGIT_REPO_URI=(
+	"git://code.qt.io/pyside/${PN}.git"
+	"https://code.qt.io/git/pyside/${PN}.git"
+)
+#FIXME: Switch to the clang-enabled "dev" branch once stable.
+EGIT_BRANCH="5.6"
+
+LICENSE="BSD GPL-2"
+SLOT="2"
+KEYWORDS=""
+IUSE="test"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+# The "pyside2uic" package imports both the "PySide2.QtGui" and
+# "PySide2.QtWidgets" C extensions and hence requires "gui" and "widgets".
+RDEPEND="
+	${PYTHON_DEPS}
+	>=dev-python/pyside-${PV}:${SLOT}[gui,widgets,${PYTHON_USEDEP}]
+	>=dev-python/shiboken-${PV}:${SLOT}[${PYTHON_USEDEP}]
+	dev-qt/qtcore:5
+"
+DEPEND="${RDEPEND}
+	test? ( virtual/pkgconfig )
+"
+
+src_prepare() {
+	cmake-utils_src_prepare
+
+	python_copy_sources
+
+	preparation() {
+		pushd "${BUILD_DIR}" >/dev/null || die
+
+		if python_is_python3; then
+			# Remove Python 2-specific paths.
+			rm -rf pyside2uic/port_v2 || die
+
+			# Generate proper Python 3 test interfaces with the "-py3" option.
+			sed -i -e 's:${PYSIDERCC_EXECUTABLE}:"${PYSIDERCC_EXECUTABLE} -py3":' \
+				tests/rcc/CMakeLists.txt || die
+		else
+			# Remove Python 3-specific paths.
+			rm -rf pyside2uic/port_v3 || die
+		fi
+
+		# Force testing against the current Python version.
+		sed -i -e "/pkg-config/ s:shiboken2:&-${EPYTHON}:" \
+			tests/rcc/run_test.sh || die
+
+		popd >/dev/null || die
+	}
+	python_foreach_impl preparation
+}
+
+src_configure() {
+	configuration() {
+		local mycmakeargs=(
+			-DBUILD_TESTS=$(usex test)
+		)
+
+		if python_is_python3; then
+			# Extension tag unique to the current Python 3.x version (e.g.,
+			# ".cpython-34m" for CPython 3.4).
+			local EXTENSION_TAG="$("$(python_get_PYTHON_CONFIG)" --extension-suffix)"
+			EXTENSION_TAG="${EXTENSION_TAG%.so}"
+
+			mycmakeargs+=(
+				#FIXME: Submit an upstream PySide2 issue requesting that the
+				#"PySide2Config.cmake" file use the same
+				#${PYTHON_EXTENSION_SUFFIX} variable as the
+				#"Shiboken2Config.cmake" file.
+
+				# Find the previously installed "Shiboken2Config.*.cmake" and
+				# "PySide2Config.*.cmake" files specific to this Python 3.x
+				# version.
+				-DPYTHON_EXTENSION_SUFFIX="${EXTENSION_TAG}"
+				-DPYTHON_BASENAME="${EXTENSION_TAG}"
+			)
+		else
+			die "Python 2.7 currently unsupported."
+		fi
+
+		CMAKE_USE_DIR="${BUILD_DIR}" cmake-utils_src_configure
+	}
+	python_foreach_impl configuration
+}
+
+src_compile() {
+	compilation() {
+		CMAKE_USE_DIR="${BUILD_DIR}" cmake-utils_src_compile
+	}
+	python_foreach_impl compilation
+}
+
+src_test() {
+	testing() {
+		local -x PYTHONDONTWRITEBYTECODE
+		CMAKE_USE_DIR="${BUILD_DIR}" virtx cmake-utils_src_test
+	}
+	python_foreach_impl testing
+}
+
+src_install() {
+	installation() {
+		CMAKE_USE_DIR="${BUILD_DIR}" cmake-utils_src_install
+	}
+	python_foreach_impl installation
+}


^ permalink raw reply related	[flat|nested] 3+ messages in thread
* [gentoo-commits] proj/qt:master commit in: dev-python/pyside-tools/
@ 2017-09-03  0:35 Davide Pesavento
  0 siblings, 0 replies; 3+ messages in thread
From: Davide Pesavento @ 2017-09-03  0:35 UTC (permalink / raw
  To: gentoo-commits

commit:     73faaea4e47506580119babded896299ffb18a16
Author:     Davide Pesavento <pesa <AT> gentoo <DOT> org>
AuthorDate: Sun Sep  3 00:35:34 2017 +0000
Commit:     Davide Pesavento <pesa <AT> gentoo <DOT> org>
CommitDate: Sun Sep  3 00:35:34 2017 +0000
URL:        https://gitweb.gentoo.org/proj/qt.git/commit/?id=73faaea4

dev-python/pyside-tools: drop insecure git:// repo URI

Package-Manager: Portage-2.3.8, Repoman-2.3.3

 dev-python/pyside-tools/pyside-tools-9999.ebuild | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/dev-python/pyside-tools/pyside-tools-9999.ebuild b/dev-python/pyside-tools/pyside-tools-9999.ebuild
index 514c436e..02b8a105 100644
--- a/dev-python/pyside-tools/pyside-tools-9999.ebuild
+++ b/dev-python/pyside-tools/pyside-tools-9999.ebuild
@@ -19,10 +19,7 @@ inherit cmake-utils python-r1 virtualx git-r3
 
 DESCRIPTION="PySide development tools (lupdate, rcc, uic)"
 HOMEPAGE="https://wiki.qt.io/PySide2"
-EGIT_REPO_URI=(
-	"git://code.qt.io/pyside/${PN}.git"
-	"https://code.qt.io/git/pyside/${PN}.git"
-)
+EGIT_REPO_URI="https://code.qt.io/pyside/${PN}.git"
 #FIXME: Switch to the clang-enabled "dev" branch once stable.
 EGIT_BRANCH="5.6"
 


^ permalink raw reply related	[flat|nested] 3+ messages in thread
* [gentoo-commits] proj/qt:master commit in: dev-python/pyside-tools/
@ 2019-10-13 21:56 Andreas Sturmlechner
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Sturmlechner @ 2019-10-13 21:56 UTC (permalink / raw
  To: gentoo-commits

commit:     374b556e5f01b305a92ae78f8e85d37ed704e7b6
Author:     Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
AuthorDate: Sat Oct 12 01:41:08 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Oct 13 21:55:09 2019 +0000
URL:        https://gitweb.gentoo.org/proj/qt.git/commit/?id=374b556e

dev-python/pyside-tools: Drop unsupported python3_4 from PYTHON_COMPAT

Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache.Org>

 dev-python/pyside-tools/pyside-tools-9999.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-python/pyside-tools/pyside-tools-9999.ebuild b/dev-python/pyside-tools/pyside-tools-9999.ebuild
index 95fa3e0d..98a451e5 100644
--- a/dev-python/pyside-tools/pyside-tools-9999.ebuild
+++ b/dev-python/pyside-tools/pyside-tools-9999.ebuild
@@ -1,10 +1,10 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 2009-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
 
 CMAKE_IN_SOURCE_BUILD="1"
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+PYTHON_COMPAT=( python2_7 python3_{5,6} )
 
 inherit cmake-utils python-r1 virtualx git-r3
 


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-10-13 21:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-18  0:47 [gentoo-commits] proj/qt:master commit in: dev-python/pyside-tools/ Davide Pesavento
  -- strict thread matches above, loose matches on Subject: below --
2017-09-03  0:35 Davide Pesavento
2019-10-13 21:56 Andreas Sturmlechner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox