1 |
commit: 01017e87a05ea66b96b4ed0cd5f201a3c606898f |
2 |
Author: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jul 29 16:47:53 2015 +0000 |
4 |
Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 29 16:47:53 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/qt.git/commit/?id=01017e87 |
7 |
|
8 |
[dev-python/sip] Moved to gentoo-x86. |
9 |
|
10 |
dev-python/sip/files/sip-4.15.5-darwin.patch | 30 ------- |
11 |
dev-python/sip/metadata.xml | 14 ---- |
12 |
dev-python/sip/sip-4.9999.ebuild | 112 --------------------------- |
13 |
3 files changed, 156 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/sip/files/sip-4.15.5-darwin.patch b/dev-python/sip/files/sip-4.15.5-darwin.patch |
16 |
deleted file mode 100644 |
17 |
index b625d15..0000000 |
18 |
--- a/dev-python/sip/files/sip-4.15.5-darwin.patch |
19 |
+++ /dev/null |
20 |
@@ -1,30 +0,0 @@ |
21 |
-diff -ur sip-4.15.5.orig/siputils.py sip-4.15.5/siputils.py |
22 |
---- siputils.py 2014-02-21 18:31:35.000000000 +0800 |
23 |
-+++ siputils.py 2014-04-01 23:21:41.895036589 +0800 |
24 |
-@@ -945,8 +945,6 @@ |
25 |
- """ |
26 |
- if self.generator in ("MSVC", "MSVC.NET", "MSBUILD", "BMAKE"): |
27 |
- plib = clib + ".lib" |
28 |
-- elif sys.platform == "darwin" and framework: |
29 |
-- plib = "-framework " + clib |
30 |
- else: |
31 |
- plib = "-l" + clib |
32 |
- |
33 |
-@@ -961,8 +959,6 @@ |
34 |
- """ |
35 |
- if self.generator in ("MSVC", "MSVC.NET", "MSBUILD", "BMAKE"): |
36 |
- prl_name = os.path.join(self.config.qt_lib_dir, clib + ".prl") |
37 |
-- elif sys.platform == "darwin" and framework: |
38 |
-- prl_name = os.path.join(self.config.qt_lib_dir, clib + ".framework", clib + ".prl") |
39 |
- else: |
40 |
- prl_name = os.path.join(self.config.qt_lib_dir, "lib" + clib + ".prl") |
41 |
- |
42 |
-@@ -1633,7 +1629,7 @@ |
43 |
- if sys.platform == "win32": |
44 |
- ext = "pyd" |
45 |
- elif sys.platform == "darwin": |
46 |
-- ext = "so" |
47 |
-+ ext = "bundle" |
48 |
- elif sys.platform == "cygwin": |
49 |
- ext = "dll" |
50 |
- else: |
51 |
|
52 |
diff --git a/dev-python/sip/metadata.xml b/dev-python/sip/metadata.xml |
53 |
deleted file mode 100644 |
54 |
index 318329c..0000000 |
55 |
--- a/dev-python/sip/metadata.xml |
56 |
+++ /dev/null |
57 |
@@ -1,14 +0,0 @@ |
58 |
-<?xml version="1.0" encoding="UTF-8"?> |
59 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
60 |
-<pkgmetadata> |
61 |
- <herd>qt</herd> |
62 |
- <upstream> |
63 |
- <maintainer status="active"> |
64 |
- <email>phil@××××××××××××××××××.com</email> |
65 |
- <name>Phil Thompson</name> |
66 |
- </maintainer> |
67 |
- <bugs-to>mailto:pyqt@××××××××××××××××××.com</bugs-to> |
68 |
- <remote-id type="pypi">SIP</remote-id> |
69 |
- <remote-id type="sourceforge">pyqt</remote-id> |
70 |
- </upstream> |
71 |
-</pkgmetadata> |
72 |
|
73 |
diff --git a/dev-python/sip/sip-4.9999.ebuild b/dev-python/sip/sip-4.9999.ebuild |
74 |
deleted file mode 100644 |
75 |
index 58888b6..0000000 |
76 |
--- a/dev-python/sip/sip-4.9999.ebuild |
77 |
+++ /dev/null |
78 |
@@ -1,112 +0,0 @@ |
79 |
-# Copyright 1999-2015 Gentoo Foundation |
80 |
-# Distributed under the terms of the GNU General Public License v2 |
81 |
-# $Header: $ |
82 |
- |
83 |
-EAPI=5 |
84 |
-PYTHON_COMPAT=( python{2_7,3_3,3_4} ) |
85 |
- |
86 |
-inherit eutils python-r1 toolchain-funcs |
87 |
- |
88 |
-DESCRIPTION="Python extension module generator for C and C++ libraries" |
89 |
-HOMEPAGE="http://www.riverbankcomputing.com/software/sip/intro https://pypi.python.org/pypi/SIP" |
90 |
-LICENSE="|| ( GPL-2 GPL-3 SIP )" |
91 |
- |
92 |
-if [[ ${PV} == *9999* ]]; then |
93 |
- # live version from mercurial repo |
94 |
- EHG_REPO_URI="http://www.riverbankcomputing.com/hg/sip" |
95 |
- inherit mercurial |
96 |
-elif [[ ${PV} == *_pre* ]]; then |
97 |
- # development snapshot |
98 |
- HG_REVISION= |
99 |
- MY_P=${PN}-${PV%_pre*}-snapshot-${HG_REVISION} |
100 |
- SRC_URI="http://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.gz" |
101 |
- S=${WORKDIR}/${MY_P} |
102 |
-else |
103 |
- # official release |
104 |
- SRC_URI="mirror://sourceforge/pyqt/${P}.tar.gz" |
105 |
-fi |
106 |
- |
107 |
-# Sub-slot based on SIP_API_MAJOR_NR from siplib/sip.h.in |
108 |
-SLOT="0/11" |
109 |
-KEYWORDS="" |
110 |
-IUSE="debug doc" |
111 |
- |
112 |
-DEPEND="${PYTHON_DEPS}" |
113 |
-RDEPEND="${DEPEND}" |
114 |
-[[ ${PV} == *9999* ]] && DEPEND+=" |
115 |
- sys-devel/bison |
116 |
- sys-devel/flex |
117 |
- doc? ( dev-python/sphinx[$(python_gen_usedep 'python2*')] ) |
118 |
-" |
119 |
- |
120 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
121 |
-[[ ${PV} == *9999* ]] && REQUIRED_USE+=" |
122 |
- || ( $(python_gen_useflags 'python2*') ) |
123 |
-" |
124 |
- |
125 |
-src_prepare() { |
126 |
- epatch "${FILESDIR}"/${PN}-4.15.5-darwin.patch |
127 |
- |
128 |
- if [[ ${PV} == *9999* ]]; then |
129 |
- python_setup 'python2*' |
130 |
- "${PYTHON}" build.py prepare || die |
131 |
- if use doc; then |
132 |
- "${PYTHON}" build.py doc || die |
133 |
- fi |
134 |
- fi |
135 |
- |
136 |
- # Sub-slot sanity check |
137 |
- local sub_slot=${SLOT#*/} |
138 |
- local sip_api_major_nr=$(sed -nre 's:^#define SIP_API_MAJOR_NR\s+([0-9]+):\1:p' siplib/sip.h.in) |
139 |
- if [[ ${sub_slot} != ${sip_api_major_nr} ]]; then |
140 |
- eerror |
141 |
- eerror "Ebuild sub-slot (${sub_slot}) does not match SIP_API_MAJOR_NR (${sip_api_major_nr})" |
142 |
- eerror "Please update SLOT variable as follows:" |
143 |
- eerror " SLOT=\"${SLOT%%/*}/${sip_api_major_nr}\"" |
144 |
- eerror |
145 |
- die "sub-slot sanity check failed" |
146 |
- fi |
147 |
-} |
148 |
- |
149 |
-src_configure() { |
150 |
- configuration() { |
151 |
- local myconf=( |
152 |
- "${PYTHON}" |
153 |
- "${S}"/configure.py |
154 |
- --destdir="$(python_get_sitedir)" |
155 |
- --incdir="$(python_get_includedir)" |
156 |
- $(use debug && echo --debug) |
157 |
- AR="$(tc-getAR) cqs" |
158 |
- CC="$(tc-getCC)" |
159 |
- CFLAGS="${CFLAGS}" |
160 |
- CFLAGS_RELEASE= |
161 |
- CXX="$(tc-getCXX)" |
162 |
- CXXFLAGS="${CXXFLAGS}" |
163 |
- CXXFLAGS_RELEASE= |
164 |
- LINK="$(tc-getCXX)" |
165 |
- LINK_SHLIB="$(tc-getCXX)" |
166 |
- LFLAGS="${LDFLAGS}" |
167 |
- LFLAGS_RELEASE= |
168 |
- RANLIB= |
169 |
- STRIP= |
170 |
- ) |
171 |
- echo "${myconf[@]}" |
172 |
- "${myconf[@]}" || die |
173 |
- } |
174 |
- python_foreach_impl run_in_build_dir configuration |
175 |
-} |
176 |
- |
177 |
-src_compile() { |
178 |
- python_foreach_impl run_in_build_dir default |
179 |
-} |
180 |
- |
181 |
-src_install() { |
182 |
- installation() { |
183 |
- emake DESTDIR="${D}" install |
184 |
- python_optimize |
185 |
- } |
186 |
- python_foreach_impl run_in_build_dir installation |
187 |
- |
188 |
- dodoc ChangeLog NEWS |
189 |
- use doc && dodoc -r doc/html |
190 |
-} |