1 |
commit: 5b767ecbbdfd794688ace04ce57dc47915b9a75b |
2 |
Author: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 31 15:47:29 2018 +0000 |
4 |
Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 31 15:47:29 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b767ecb |
7 |
|
8 |
dev-python/sip: version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.21, Repoman-2.3.6 |
11 |
|
12 |
dev-python/sip/Manifest | 1 + |
13 |
dev-python/sip/sip-4.19.7.ebuild | 112 +++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 113 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/sip/Manifest b/dev-python/sip/Manifest |
17 |
index ff5a64ba4d5..c0e26923afb 100644 |
18 |
--- a/dev-python/sip/Manifest |
19 |
+++ b/dev-python/sip/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST sip-4.19.3.tar.gz 1007481 BLAKE2B cf4d53c956aa046f165e9ec05126fa9b6ca3df688b16ff79520da8ea82f7e9622e03448030db14b0d21ba090893375814f39d6b3fc62343880aa169c2680394f SHA512 b2dea0cb5e1b23531f35e94bd604ec9874f0875badb5b20eb5abd2732a1005b2dd15bb42e0007b65053a2153b50659f24671abd83a434991661168a5778b94bc |
22 |
DIST sip-4.19.6.tar.gz 1019295 BLAKE2B 107bc63b8c0f200c292bbf465507602904383a1d3fd0b76da907cda2dcf0e79edb9cbf835bc15dbefd991db6a7eeff97462965d88704e3c926ce9e0dd5af829f SHA512 1bfd2da8b0ece6156aa94713d5e9ced6226b7f49427ca4a11b65452a67e9c740b93a1f90c00a0636d4eef8a31324988a84373c15194f64774b6f8c084d0464f7 |
23 |
+DIST sip-4.19.7.tar.gz 1022209 BLAKE2B 51b29bd436ce7af2d4a3b45ace100075bd257c23982c6e1fcd3f8b2998ee360f1ac42683fbd0e3a371cb044a682c326e00e907db0961aebc70bfb6b583ad2bc7 SHA512 0cead34e129d25ee3d908e503a3853289bbfd77c58c563a2046ce7b65bd8f0b318b20af72346cbf4cb7a17e76c9c1374f686b5dabc284d7247897a1648c15f97 |
24 |
|
25 |
diff --git a/dev-python/sip/sip-4.19.7.ebuild b/dev-python/sip/sip-4.19.7.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..08a8e8d9377 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/sip/sip-4.19.7.ebuild |
30 |
@@ -0,0 +1,112 @@ |
31 |
+# Copyright 1999-2018 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 |
+ |
43 |
+if [[ ${PV} == *9999 ]]; then |
44 |
+ inherit mercurial |
45 |
+ EHG_REPO_URI="https://www.riverbankcomputing.com/hg/sip" |
46 |
+elif [[ ${PV} == *_pre* ]]; then |
47 |
+ MY_P=${P/_pre/.dev} |
48 |
+ SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.gz" |
49 |
+ S=${WORKDIR}/${MY_P} |
50 |
+else |
51 |
+ SRC_URI="mirror://sourceforge/pyqt/${P}.tar.gz" |
52 |
+fi |
53 |
+ |
54 |
+# Sub-slot based on SIP_API_MAJOR_NR from siplib/sip.h.in |
55 |
+SLOT="0/12" |
56 |
+LICENSE="|| ( GPL-2 GPL-3 SIP )" |
57 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
58 |
+IUSE="debug doc" |
59 |
+ |
60 |
+RDEPEND="${PYTHON_DEPS}" |
61 |
+DEPEND="${RDEPEND}" |
62 |
+if [[ ${PV} == *9999 ]]; then |
63 |
+ DEPEND+=" |
64 |
+ sys-devel/bison |
65 |
+ sys-devel/flex |
66 |
+ doc? ( dev-python/sphinx[$(python_gen_usedep 'python2*')] )" |
67 |
+fi |
68 |
+ |
69 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
70 |
+if [[ ${PV} == *9999 ]]; then |
71 |
+ REQUIRED_USE+=" || ( $(python_gen_useflags 'python2*') )" |
72 |
+fi |
73 |
+ |
74 |
+PATCHES=( "${FILESDIR}"/${PN}-4.18-darwin.patch ) |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ if [[ ${PV} == *9999 ]]; then |
78 |
+ python_setup 'python2*' |
79 |
+ "${PYTHON}" build.py prepare || die |
80 |
+ if use doc; then |
81 |
+ "${PYTHON}" build.py doc || die |
82 |
+ fi |
83 |
+ fi |
84 |
+ |
85 |
+ # Sub-slot sanity check |
86 |
+ local sub_slot=${SLOT#*/} |
87 |
+ local sip_api_major_nr=$(sed -nre 's:^#define SIP_API_MAJOR_NR\s+([0-9]+):\1:p' siplib/sip.h.in) |
88 |
+ if [[ ${sub_slot} != ${sip_api_major_nr} ]]; then |
89 |
+ eerror |
90 |
+ eerror "Ebuild sub-slot (${sub_slot}) does not match SIP_API_MAJOR_NR (${sip_api_major_nr})" |
91 |
+ eerror "Please update SLOT variable as follows:" |
92 |
+ eerror " SLOT=\"${SLOT%%/*}/${sip_api_major_nr}\"" |
93 |
+ eerror |
94 |
+ die "sub-slot sanity check failed" |
95 |
+ fi |
96 |
+ |
97 |
+ default |
98 |
+} |
99 |
+ |
100 |
+src_configure() { |
101 |
+ configuration() { |
102 |
+ local myconf=( |
103 |
+ "${PYTHON}" |
104 |
+ "${S}"/configure.py |
105 |
+ --bindir="${EPREFIX}/usr/bin" |
106 |
+ --destdir="$(python_get_sitedir)" |
107 |
+ --incdir="$(python_get_includedir)" |
108 |
+ $(usex debug --debug '') |
109 |
+ AR="$(tc-getAR) cqs" |
110 |
+ CC="$(tc-getCC)" |
111 |
+ CFLAGS="${CFLAGS}" |
112 |
+ CFLAGS_RELEASE= |
113 |
+ CXX="$(tc-getCXX)" |
114 |
+ CXXFLAGS="${CXXFLAGS}" |
115 |
+ CXXFLAGS_RELEASE= |
116 |
+ LINK="$(tc-getCXX)" |
117 |
+ LINK_SHLIB="$(tc-getCXX)" |
118 |
+ LFLAGS="${LDFLAGS}" |
119 |
+ LFLAGS_RELEASE= |
120 |
+ RANLIB= |
121 |
+ STRIP= |
122 |
+ ) |
123 |
+ echo "${myconf[@]}" |
124 |
+ "${myconf[@]}" || die |
125 |
+ } |
126 |
+ python_foreach_impl run_in_build_dir configuration |
127 |
+} |
128 |
+ |
129 |
+src_compile() { |
130 |
+ python_foreach_impl run_in_build_dir default |
131 |
+} |
132 |
+ |
133 |
+src_install() { |
134 |
+ installation() { |
135 |
+ emake DESTDIR="${D}" install |
136 |
+ python_optimize |
137 |
+ } |
138 |
+ python_foreach_impl run_in_build_dir installation |
139 |
+ |
140 |
+ einstalldocs |
141 |
+ use doc && dodoc -r doc/html |
142 |
+} |