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: Fri, 05 Oct 2018 01:23:13
Message-Id: 1538702553.2fae3c1a66e8b36c3c3b9681908c9285a99d0d61.pesa@gentoo
1 commit: 2fae3c1a66e8b36c3c3b9681908c9285a99d0d61
2 Author: Davide Pesavento <pesa <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 5 00:14:58 2018 +0000
4 Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 5 01:22:33 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fae3c1a
7
8 dev-python/sip: add 4.19.13
9
10 Signed-off-by: Davide Pesavento <pesa <AT> gentoo.org>
11 Package-Manager: Portage-2.3.50, Repoman-2.3.11
12
13 dev-python/sip/Manifest | 1 +
14 dev-python/sip/sip-4.19.13.ebuild | 112 ++++++++++++++++++++++++++++++++++++++
15 2 files changed, 113 insertions(+)
16
17 diff --git a/dev-python/sip/Manifest b/dev-python/sip/Manifest
18 index 0aec7b00e72..90e17b7bc0f 100644
19 --- a/dev-python/sip/Manifest
20 +++ b/dev-python/sip/Manifest
21 @@ -1,2 +1,3 @@
22 DIST sip-4.19.12.tar.gz 1036410 BLAKE2B 11f7df2ddafe0ceb1edd75d3cc5128c32d7aa2e9a77ad4555d69bcafc87f8141384928cdf2481c324998b2e224920b50c0f397d67314370ce30cca6d7a02a15a SHA512 9b9680172357aaf4a1ebc3bf1f4d2badaaa8643e50665fed6e17d27283a499ceac56c4f1db190de4d9516c8f0f794159485cc6f8fd68daafcbe1ccac85161972
23 +DIST sip-4.19.13.tar.gz 1038815 BLAKE2B 0b6f2941140a535cfdfb51db71cf9a55e5f65be85961e304496fded7781da42b0ab7d01045b8802468a3ce3b57e7f571851fc7713fd47a03c8344017982d6632 SHA512 eb456e1f7efa463f859047acc5301e19279e1627629d0bad3ac7a0a52b77575126bc3f2c64bb4278ae11d415c13d2731dfc8c816bba71307173d393a414aae98
24 DIST sip-4.19.8.tar.gz 1024548 BLAKE2B e43dfe542061db9f1d5981d0cc172d9c8420c4e66c282c52974ab28314c33bd28e6056b61f74b04680c1735c9bd2c4656e1a541f4bae94c858d18713f6222914 SHA512 9c0a9722a9a9dd23e2eabe751d622cdd31b376b7987b2c991f5ef4a8d11853c5c6e9f1c24a0d2d864d3990e2a45c2a159ca8511efd4a7e156a14937ef3c680f7
25
26 diff --git a/dev-python/sip/sip-4.19.13.ebuild b/dev-python/sip/sip-4.19.13.ebuild
27 new file mode 100644
28 index 00000000000..728a604c424
29 --- /dev/null
30 +++ b/dev-python/sip/sip-4.19.13.ebuild
31 @@ -0,0 +1,112 @@
32 +# Copyright 1999-2018 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} )
38 +
39 +inherit python-r1 toolchain-funcs
40 +
41 +DESCRIPTION="Python extension module generator for C and C++ libraries"
42 +HOMEPAGE="https://www.riverbankcomputing.com/software/sip/intro"
43 +
44 +if [[ ${PV} == *9999 ]]; then
45 + inherit mercurial
46 + EHG_REPO_URI="https://www.riverbankcomputing.com/hg/sip"
47 +elif [[ ${PV} == *_pre* ]]; then
48 + MY_P=${P/_pre/.dev}
49 + SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.gz"
50 + S=${WORKDIR}/${MY_P}
51 +else
52 + SRC_URI="mirror://sourceforge/pyqt/${P}.tar.gz"
53 +fi
54 +
55 +# Sub-slot based on SIP_API_MAJOR_NR from siplib/sip.h
56 +SLOT="0/12"
57 +LICENSE="|| ( GPL-2 GPL-3 SIP )"
58 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
59 +IUSE="debug doc"
60 +
61 +RDEPEND="${PYTHON_DEPS}"
62 +DEPEND="${RDEPEND}"
63 +if [[ ${PV} == *9999 ]]; then
64 + DEPEND+="
65 + sys-devel/bison
66 + sys-devel/flex
67 + doc? ( dev-python/sphinx[$(python_gen_usedep 'python2*')] )"
68 +fi
69 +
70 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
71 +if [[ ${PV} == *9999 ]]; then
72 + REQUIRED_USE+=" || ( $(python_gen_useflags 'python2*') )"
73 +fi
74 +
75 +PATCHES=( "${FILESDIR}"/${PN}-4.18-darwin.patch )
76 +
77 +src_prepare() {
78 + if [[ ${PV} == *9999 ]]; then
79 + python_setup 'python2*'
80 + "${PYTHON}" build.py prepare || die
81 + if use doc; then
82 + "${PYTHON}" build.py doc || die
83 + fi
84 + fi
85 +
86 + # Sub-slot sanity check
87 + local sub_slot=${SLOT#*/}
88 + local sip_api_major_nr=$(sed -nre 's:^#define SIP_API_MAJOR_NR\s+([0-9]+):\1:p' siplib/sip.h || die)
89 + if [[ ${sub_slot} != ${sip_api_major_nr} ]]; then
90 + eerror
91 + eerror "Ebuild sub-slot (${sub_slot}) does not match SIP_API_MAJOR_NR (${sip_api_major_nr})"
92 + eerror "Please update SLOT variable as follows:"
93 + eerror " SLOT=\"${SLOT%%/*}/${sip_api_major_nr}\""
94 + eerror
95 + die "sub-slot sanity check failed"
96 + fi
97 +
98 + default
99 +}
100 +
101 +src_configure() {
102 + configuration() {
103 + local myconf=(
104 + "${PYTHON}"
105 + "${S}"/configure.py
106 + --bindir="${EPREFIX}/usr/bin"
107 + --destdir="$(python_get_sitedir)"
108 + --incdir="$(python_get_includedir)"
109 + $(usex debug --debug '')
110 + AR="$(tc-getAR) cqs"
111 + CC="$(tc-getCC)"
112 + CFLAGS="${CFLAGS}"
113 + CFLAGS_RELEASE=
114 + CXX="$(tc-getCXX)"
115 + CXXFLAGS="${CXXFLAGS}"
116 + CXXFLAGS_RELEASE=
117 + LINK="$(tc-getCXX)"
118 + LINK_SHLIB="$(tc-getCXX)"
119 + LFLAGS="${LDFLAGS}"
120 + LFLAGS_RELEASE=
121 + RANLIB=
122 + STRIP=
123 + )
124 + echo "${myconf[@]}"
125 + "${myconf[@]}" || die
126 + }
127 + python_foreach_impl run_in_build_dir configuration
128 +}
129 +
130 +src_compile() {
131 + python_foreach_impl run_in_build_dir default
132 +}
133 +
134 +src_install() {
135 + installation() {
136 + emake DESTDIR="${D}" install
137 + python_optimize
138 + }
139 + python_foreach_impl run_in_build_dir installation
140 +
141 + einstalldocs
142 + use doc && dodoc -r doc/html
143 +}