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 7FCC01396D9 for ; Sat, 11 Nov 2017 21:05:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B49D4E11D6; Sat, 11 Nov 2017 21:05:19 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 90C9BE11D6 for ; Sat, 11 Nov 2017 21:05:19 +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 7093733C6B6 for ; Sat, 11 Nov 2017 21:05:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 36620999C for ; Sat, 11 Nov 2017 21:05:17 +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: <1510434310.1e62500ce0d6c601d39ca6d20e34a04c9a288138.pesa@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/sip/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/sip/sip-4.9999.ebuild X-VCS-Directories: dev-python/sip/ X-VCS-Committer: pesa X-VCS-Committer-Name: Davide Pesavento X-VCS-Revision: 1e62500ce0d6c601d39ca6d20e34a04c9a288138 X-VCS-Branch: master Date: Sat, 11 Nov 2017 21:05:17 +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-Archives-Salt: bd13e547-75ea-41dd-8497-9218858c7d5e X-Archives-Hash: 82338a34196f0cfee6eea8f3edc7f9af commit: 1e62500ce0d6c601d39ca6d20e34a04c9a288138 Author: Davide Pesavento gentoo org> AuthorDate: Sat Nov 11 20:21:03 2017 +0000 Commit: Davide Pesavento gentoo org> CommitDate: Sat Nov 11 21:05:10 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e62500c dev-python/sip: generalize live ebuild to support also non-live versions Package-Manager: Portage-2.3.13, Repoman-2.3.4 dev-python/sip/sip-4.9999.ebuild | 44 ++++++++++++++++++++++++++-------------- 1 file changed, 29 insertions(+), 15 deletions(-) diff --git a/dev-python/sip/sip-4.9999.ebuild b/dev-python/sip/sip-4.9999.ebuild index 04bf7478ce7..8605ad96cf0 100644 --- a/dev-python/sip/sip-4.9999.ebuild +++ b/dev-python/sip/sip-4.9999.ebuild @@ -5,11 +5,21 @@ EAPI=6 PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) -inherit python-r1 toolchain-funcs mercurial +inherit python-r1 toolchain-funcs DESCRIPTION="Python extension module generator for C and C++ libraries" HOMEPAGE="https://www.riverbankcomputing.com/software/sip/intro" -EHG_REPO_URI="https://www.riverbankcomputing.com/hg/sip" + +if [[ ${PV} == *9999 ]]; then + inherit mercurial + EHG_REPO_URI="https://www.riverbankcomputing.com/hg/sip" +elif [[ ${PV} == *_pre* ]]; then + MY_P=${P/_pre/.dev} + SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.gz" + S=${WORKDIR}/${MY_P} +else + SRC_URI="mirror://sourceforge/pyqt/${P}.tar.gz" +fi # Sub-slot based on SIP_API_MAJOR_NR from siplib/sip.h.in SLOT="0/12" @@ -18,24 +28,28 @@ KEYWORDS="" IUSE="debug doc" RDEPEND="${PYTHON_DEPS}" -DEPEND="${RDEPEND} - sys-devel/bison - sys-devel/flex - doc? ( dev-python/sphinx[$(python_gen_usedep 'python2*')] ) -" +DEPEND="${RDEPEND}" +if [[ ${PV} == *9999 ]]; then + DEPEND+=" + sys-devel/bison + sys-devel/flex + doc? ( dev-python/sphinx[$(python_gen_usedep 'python2*')] )" +fi -REQUIRED_USE=" - ${PYTHON_REQUIRED_USE} - || ( $(python_gen_useflags 'python2*') ) -" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +if [[ ${PV} == *9999 ]]; then + REQUIRED_USE+=" || ( $(python_gen_useflags 'python2*') )" +fi PATCHES=( "${FILESDIR}"/${PN}-4.18-darwin.patch ) src_prepare() { - python_setup 'python2*' - "${PYTHON}" build.py prepare || die - if use doc; then - "${PYTHON}" build.py doc || die + if [[ ${PV} == *9999 ]]; then + python_setup 'python2*' + "${PYTHON}" build.py prepare || die + if use doc; then + "${PYTHON}" build.py doc || die + fi fi # Sub-slot sanity check