commit:     c1817958017e66441540377a9bad895bbac27e0c
Author:     Davide Pesavento <pesa <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 27 19:27:26 2018 +0000
Commit:     Davide Pesavento <pesa <AT> gentoo <DOT> org>
CommitDate: Thu Dec 27 19:49:09 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c1817958

dev-python/sip: cosmetic changes to minimize diff with PyQt5-sip

Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Davide Pesavento <pesa <AT> gentoo.org>

 dev-python/sip/sip-4.19.14_pre1812231555.ebuild | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/dev-python/sip/sip-4.19.14_pre1812231555.ebuild 
b/dev-python/sip/sip-4.19.14_pre1812231555.ebuild
index 69b050301a6..294e56df9f4 100644
--- a/dev-python/sip/sip-4.19.14_pre1812231555.ebuild
+++ b/dev-python/sip/sip-4.19.14_pre1812231555.ebuild
@@ -9,12 +9,11 @@ inherit python-r1 toolchain-funcs
 DESCRIPTION="Python extension module generator for C and C++ libraries"
 HOMEPAGE="https://www.riverbankcomputing.com/software/sip/intro";
 
+MY_P=${P/_pre/.dev}
 if [[ ${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"
+       SRC_URI="mirror://sourceforge/pyqt/${MY_P}.tar.gz"
 fi
 
 # Sub-slot based on SIP_API_MAJOR_NR from siplib/sip.h
@@ -23,10 +22,12 @@ LICENSE="|| ( GPL-2 GPL-3 SIP )"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 
~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
 IUSE="debug doc"
 
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
 DEPEND="${PYTHON_DEPS}"
 RDEPEND="${DEPEND}"
 
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+S=${WORKDIR}/${MY_P}
 
 PATCHES=( "${FILESDIR}"/${PN}-4.18-darwin.patch )
 

Reply via email to