Gentoo Archives: gentoo-commits

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