Gentoo Archives: gentoo-commits

From: Andrey Grozin <grozin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/sip/
Date: Sat, 31 Dec 2016 05:53:07
Message-Id: 1483163544.3b398adf009ea8d4face649a079261ed96e45895.grozin@gentoo
1 commit: 3b398adf009ea8d4face649a079261ed96e45895
2 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 31 05:52:24 2016 +0000
4 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 31 05:52:24 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b398adf
7
8 dev-python/sip: bump to 4.19
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 dev-python/sip/Manifest | 1 +
13 dev-python/sip/sip-4.19.ebuild | 88 ++++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 89 insertions(+)
15
16 diff --git a/dev-python/sip/Manifest b/dev-python/sip/Manifest
17 index 0ec013b..dc68b0f 100644
18 --- a/dev-python/sip/Manifest
19 +++ b/dev-python/sip/Manifest
20 @@ -2,3 +2,4 @@ DIST sip-4.16.2.tar.gz 793663 SHA256 a55a2324a46ab42e42ae57c52ef06583b17d25c9879
21 DIST sip-4.16.9.tar.gz 957858 SHA256 dbe173aa566e26ca0bb5bcbc1d30ef780f416267bb3b5df48149a737ea6b0555 SHA512 f9e7deac3462f71e809fce29aea4b7e7e3d1acb7600252178459cfb9e09d1543e9a189bdc66c946c9d11c4a6f3175a6d6b306481cadab70ed7f17f6e7c328ddc WHIRLPOOL f4cfcb5ecc945332683bdcbd6913b87fc975f8e268e02e6bdeaadebf578e40f1e94a3c76cdb1ea3890ec969d1454560d58df01ba4ad507d914a300076365ade0
22 DIST sip-4.18.1.tar.gz 992624 SHA256 9bce7a2dbf7f105bf68ad1bab58eebc0ce33087ec40396da756463f086ffa290 SHA512 c4277fa113bf5e28d8a19388f160456654e4ccbbc2adc1209677e95e1efad427ce641ef09875ec0a59e555578986671261dd4c3ac52c673b5803f188fc311222 WHIRLPOOL 6250081ffda585dda7c7728fe1253a1791ef63d4798d02c752e1c5b58837d2c55dd87306c83202be03f96bd644bd5b17b3b1e28b5c06b28bb8a69dd23da2ee09
23 DIST sip-4.18.tar.gz 991980 SHA256 f1dc5c81c07a9ad97edcd4a0af964a41e420024ba7ca165afd2b351efd249cb6 SHA512 365fb51b8c833ebc923b87a961fac83976b653ebcec8fe7ad1543ee5a406471eb9309c8efbee6662c7b622f36771cd3ac31ede10208f23d2531a45af906d383d WHIRLPOOL 3cf3516483e62ed26fca1de6bc90e58a2bd04d3d66214b0f62eb4338c2b7a8a595d46952ef86cd7fa61e50b160a06b484a7d4f5997be2f2a7714b1edabaef2a4
24 +DIST sip-4.19.tar.gz 1009474 SHA256 014bf55f653e0d8bcc582705ef4fbd61e0859a36e959ab46d8fa060cdf0b5e27 SHA512 0df39c2e004f5077439bdb4b4e463cdf0c141ce4e5dc65a957123801c122d6e3a30e238c0a77559d7202002a396d521be5517a8417b34c4092ab8319fa1d054c WHIRLPOOL b86f55750bc971d57420b24e1988f42e6974f7b222b1291c4def4ceb557c75e1c9cc15bbba27c7b99693fa0307aa171de6271acd7648cc6917cc0dc7b7486deb
25
26 diff --git a/dev-python/sip/sip-4.19.ebuild b/dev-python/sip/sip-4.19.ebuild
27 new file mode 100644
28 index 00000000..0012456
29 --- /dev/null
30 +++ b/dev-python/sip/sip-4.19.ebuild
31 @@ -0,0 +1,88 @@
32 +# Copyright 1999-2016 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=6
37 +
38 +PYTHON_COMPAT=( python2_7 python3_{4,5} )
39 +
40 +inherit python-r1 toolchain-funcs
41 +
42 +DESCRIPTION="Python extension module generator for C and C++ libraries"
43 +HOMEPAGE="http://www.riverbankcomputing.com/software/sip/intro https://pypi.python.org/pypi/SIP"
44 +SRC_URI="mirror://sourceforge/pyqt/${P}.tar.gz"
45 +
46 +# Sub-slot based on SIP_API_MAJOR_NR from siplib/sip.h.in
47 +SLOT="0/12"
48 +LICENSE="|| ( GPL-2 GPL-3 SIP )"
49 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
50 +IUSE="debug doc"
51 +
52 +RDEPEND="${PYTHON_DEPS}"
53 +DEPEND="${RDEPEND}"
54 +
55 +REQUIRED_USE="
56 + ${PYTHON_REQUIRED_USE}
57 +"
58 +
59 +PATCHES=( "${FILESDIR}"/${PN}-4.18-darwin.patch )
60 +
61 +src_prepare() {
62 + # Sub-slot sanity check
63 + local sub_slot=${SLOT#*/}
64 + local sip_api_major_nr=$(sed -nre 's:^#define SIP_API_MAJOR_NR\s+([0-9]+):\1:p' siplib/sip.h.in)
65 + if [[ ${sub_slot} != ${sip_api_major_nr} ]]; then
66 + eerror
67 + eerror "Ebuild sub-slot (${sub_slot}) does not match SIP_API_MAJOR_NR (${sip_api_major_nr})"
68 + eerror "Please update SLOT variable as follows:"
69 + eerror " SLOT=\"${SLOT%%/*}/${sip_api_major_nr}\""
70 + eerror
71 + die "sub-slot sanity check failed"
72 + fi
73 +
74 + default
75 +}
76 +
77 +src_configure() {
78 + configuration() {
79 + local myconf=(
80 + "${PYTHON}"
81 + "${S}"/configure.py
82 + --bindir="${EPREFIX}/usr/bin"
83 + --destdir="$(python_get_sitedir)"
84 + --incdir="$(python_get_includedir)"
85 + $(usex debug --debug '')
86 + AR="$(tc-getAR) cqs"
87 + CC="$(tc-getCC)"
88 + CFLAGS="${CFLAGS}"
89 + CFLAGS_RELEASE=
90 + CXX="$(tc-getCXX)"
91 + CXXFLAGS="${CXXFLAGS}"
92 + CXXFLAGS_RELEASE=
93 + LINK="$(tc-getCXX)"
94 + LINK_SHLIB="$(tc-getCXX)"
95 + LFLAGS="${LDFLAGS}"
96 + LFLAGS_RELEASE=
97 + RANLIB=
98 + STRIP=
99 + )
100 + echo "${myconf[@]}"
101 + "${myconf[@]}" || die
102 + }
103 + python_foreach_impl run_in_build_dir configuration
104 +}
105 +
106 +src_compile() {
107 + python_foreach_impl run_in_build_dir default
108 +}
109 +
110 +src_install() {
111 + installation() {
112 + emake DESTDIR="${D}" install
113 + python_optimize
114 + }
115 + python_foreach_impl run_in_build_dir installation
116 +
117 + einstalldocs
118 + use doc && dodoc -r doc/html
119 +}