From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 66842138334 for ; Thu, 27 Dec 2018 19:49:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6CB32E08FF; Thu, 27 Dec 2018 19:49:37 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2FE1CE08FF for ; Thu, 27 Dec 2018 19:49:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 477C9335C67 for ; Thu, 27 Dec 2018 19:49:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1121C4CE for ; Thu, 27 Dec 2018 19:49:32 +0000 (UTC) From: "Davide Pesavento" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Davide Pesavento" Message-ID: <1545940148.02f083936236b26158bfd6be33a985ebe7631c51.pesa@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/PyQt5-sip/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/PyQt5-sip/Manifest dev-python/PyQt5-sip/PyQt5-sip-4.19.14_pre1812231555.ebuild dev-python/PyQt5-sip/metadata.xml X-VCS-Directories: dev-python/PyQt5-sip/ X-VCS-Committer: pesa X-VCS-Committer-Name: Davide Pesavento X-VCS-Revision: 02f083936236b26158bfd6be33a985ebe7631c51 X-VCS-Branch: master Date: Thu, 27 Dec 2018 19:49:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f45049b2-cc9c-4d80-b80b-8d911dcbb7dd X-Archives-Hash: 593a7dfdb99121dc86cf1e1d49eac0c7 commit: 02f083936236b26158bfd6be33a985ebe7631c51 Author: Davide Pesavento gentoo org> AuthorDate: Thu Dec 27 19:24:39 2018 +0000 Commit: Davide Pesavento gentoo org> CommitDate: Thu Dec 27 19:49:08 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02f08393 dev-python/PyQt5-sip: new package This is the private SIP module (sip.so) for PyQt5, required since PyQt5-5.11. Bug: https://bugs.gentoo.org/668014 Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Davide Pesavento gentoo.org> dev-python/PyQt5-sip/Manifest | 1 + .../PyQt5-sip-4.19.14_pre1812231555.ebuild | 91 ++++++++++++++++++++++ dev-python/PyQt5-sip/metadata.xml | 18 +++++ 3 files changed, 110 insertions(+) diff --git a/dev-python/PyQt5-sip/Manifest b/dev-python/PyQt5-sip/Manifest new file mode 100644 index 00000000000..b9720f773e0 --- /dev/null +++ b/dev-python/PyQt5-sip/Manifest @@ -0,0 +1 @@ +DIST sip-4.19.14.dev1812231555.tar.gz 1020224 BLAKE2B e3df5a8b7829278987c5b368b8b6c28c04fc0b3bb3847451e48411ef9ba5cda932007613ad31f34381446ea02d62281b27ae4951babca5ec8b75f065aa296365 SHA512 decf2f7baacede27c42d359eb875a895c9a92b36a8e8a29f4666b3f98f570d821e80dbb32fd946ce230f726fafc4000af9b167df8cfd188bcd7f85fbc71bd4b1 diff --git a/dev-python/PyQt5-sip/PyQt5-sip-4.19.14_pre1812231555.ebuild b/dev-python/PyQt5-sip/PyQt5-sip-4.19.14_pre1812231555.ebuild new file mode 100644 index 00000000000..457acbf3654 --- /dev/null +++ b/dev-python/PyQt5-sip/PyQt5-sip-4.19.14_pre1812231555.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} ) +inherit python-r1 toolchain-funcs + +DESCRIPTION="Private sip module for PyQt5" +HOMEPAGE="https://www.riverbankcomputing.com/software/sip/intro" + +MY_P=sip-${PV/_pre/.dev} +if [[ ${PV} == *_pre* ]]; then + SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.gz" +else + SRC_URI="mirror://sourceforge/pyqt/${MY_P}.tar.gz" +fi + +# Sub-slot based on SIP_API_MAJOR_NR from siplib/sip.h +SLOT="0/12" +LICENSE="|| ( GPL-2 GPL-3 SIP )" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" +IUSE="debug" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND="${PYTHON_DEPS}" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + # Sub-slot sanity check + local sub_slot=${SLOT#*/} + local sip_api_major_nr=$(sed -nre 's:^#define SIP_API_MAJOR_NR\s+([0-9]+):\1:p' siplib/sip.h || die) + if [[ ${sub_slot} != ${sip_api_major_nr} ]]; then + eerror + eerror "Ebuild sub-slot (${sub_slot}) does not match SIP_API_MAJOR_NR (${sip_api_major_nr})" + eerror "Please update SLOT variable as follows:" + eerror " SLOT=\"${SLOT%%/*}/${sip_api_major_nr}\"" + eerror + die "sub-slot sanity check failed" + fi + + default +} + +src_configure() { + configuration() { + if ! python_is_python3; then + local CFLAGS="${CFLAGS} -fno-strict-aliasing" + fi + + local myconf=( + "${PYTHON}" + "${S}"/configure.py + $(usex debug --debug '') + --sip-module PyQt5.sip + --no-tools + AR="$(tc-getAR) cqs" + CC="$(tc-getCC)" + CFLAGS="${CFLAGS}" + CFLAGS_RELEASE= + CXX="$(tc-getCXX)" + CXXFLAGS="${CXXFLAGS}" + CXXFLAGS_RELEASE= + LINK="$(tc-getCXX)" + LINK_SHLIB="$(tc-getCXX)" + LFLAGS="${LDFLAGS}" + LFLAGS_RELEASE= + RANLIB= + STRIP= + ) + echo "${myconf[@]}" + "${myconf[@]}" || die + } + python_foreach_impl run_in_build_dir configuration +} + +src_compile() { + python_foreach_impl run_in_build_dir default +} + +src_install() { + installation() { + emake DESTDIR="${D}" install + } + python_foreach_impl run_in_build_dir installation + + einstalldocs +} diff --git a/dev-python/PyQt5-sip/metadata.xml b/dev-python/PyQt5-sip/metadata.xml new file mode 100644 index 00000000000..9b8cb511f25 --- /dev/null +++ b/dev-python/PyQt5-sip/metadata.xml @@ -0,0 +1,18 @@ + + + + + qt@gentoo.org + Gentoo Qt Project + + + + phil@riverbankcomputing.com + Phil Thompson + + mailto:pyqt@riverbankcomputing.com + http://pyqt.sourceforge.net/Docs/sip4/ + SIP + pyqt + +