1 |
commit: 41abaecc3372771a97410c5620a6b43f1120769e |
2 |
Author: Markos Chandras <hwoarang <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 10 06:00:14 2012 +0000 |
4 |
Commit: Markos Chandras <hwoarang <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 10 06:00:14 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/qt.git;a=commit;h=41abaecc |
7 |
|
8 |
PyQt4/sip: Automated version bump, remove old |
9 |
|
10 |
--- |
11 |
dev-python/sip/Manifest | 2 +- |
12 |
dev-python/sip/sip-4.13.4_pre20120710.ebuild | 95 ++++++++++++++++++++++++++ |
13 |
2 files changed, 96 insertions(+), 1 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/sip/Manifest b/dev-python/sip/Manifest |
16 |
index 0091b1e..ef06e41 100644 |
17 |
--- a/dev-python/sip/Manifest |
18 |
+++ b/dev-python/sip/Manifest |
19 |
@@ -1 +1 @@ |
20 |
-DIST sip-4.13.4-snapshot-9b330b545c65.tar.gz 731370 SHA256 bfeed7c778e3f9ea595d1d1fa5446aa86042df687d8076d4a5ed23862ff81e67 SHA512 334d4600468c4d0b67af5f6101c324a08d81013f93c5e5dc98e16a3267dac267287c7e291da7b1c64c2417ad75ee14c711d336ec13a0b704c093f1ac5ede4f45 WHIRLPOOL be165a106c2205775be4eb9a6aea2c169f1ee144a00f79cddc23bcb96916e42d103f09c8882ab83eb6bc868d5787bd7febda69825802e7954c86e2ba4cabf8e9 |
21 |
+DIST sip-4.13.4-snapshot-801ae4c35450.tar.gz 731375 SHA256 2a0fc0187aa14553a7fb0c82c01cd32276f06b8fa36ea199d02c04b58f0e6226 SHA512 28beec728a16869dad7e684296b0b294dd29a187d3b8e5049d05b32fa49faefc8bdb25a899697919b08c240c7d6dd9f54be78b8ec6843867e2d05a57d42f7202 WHIRLPOOL fedae1d9a03cef841e364e5f6a460ce9924f3f6553997c92555bd390f5892255cbf1adc2f2390fbab2c0b8f90dd0fd1b0cc8b05b13e9ab017a6b56c79a0a646c |
22 |
|
23 |
diff --git a/dev-python/sip/sip-4.13.4_pre20120710.ebuild b/dev-python/sip/sip-4.13.4_pre20120710.ebuild |
24 |
new file mode 100644 |
25 |
index 0000000..7de4a24 |
26 |
--- /dev/null |
27 |
+++ b/dev-python/sip/sip-4.13.4_pre20120710.ebuild |
28 |
@@ -0,0 +1,95 @@ |
29 |
+# Copyright 1999-2012 Gentoo Foundation |
30 |
+# Distributed under the terms of the GNU General Public License v2 |
31 |
+# $Header: $ |
32 |
+ |
33 |
+EAPI="4" |
34 |
+PYTHON_DEPEND="*" |
35 |
+PYTHON_EXPORT_PHASE_FUNCTIONS="1" |
36 |
+SUPPORT_PYTHON_ABIS="1" |
37 |
+RESTRICT_PYTHON_ABIS="*-jython 2.7-pypy-*" |
38 |
+ |
39 |
+EHG_REPO_URI="http://www.riverbankcomputing.com/hg/sip" |
40 |
+[[ ${PV} == *9999* ]] && HG_ECLASS="mercurial" |
41 |
+ |
42 |
+inherit eutils python toolchain-funcs ${HG_ECLASS} |
43 |
+ |
44 |
+HG_REVISION=801ae4c35450 |
45 |
+ |
46 |
+DESCRIPTION="Python extension module generator for C and C++ libraries" |
47 |
+HOMEPAGE="http://www.riverbankcomputing.co.uk/software/sip/intro http://pypi.python.org/pypi/SIP" |
48 |
+LICENSE="|| ( GPL-2 GPL-3 sip )" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
51 |
+IUSE="debug doc" |
52 |
+ |
53 |
+DEPEND="" |
54 |
+RDEPEND="" |
55 |
+ |
56 |
+if [[ ${PV} == *9999* ]]; then |
57 |
+ # live version from mercurial repo |
58 |
+ DEPEND="${DEPEND} |
59 |
+ sys-devel/bison |
60 |
+ sys-devel/flex" |
61 |
+ S=${WORKDIR}/${PN} |
62 |
+elif [[ ${PV} == *_pre* ]]; then |
63 |
+ # development snapshot |
64 |
+ MY_P=${PN}-${PV%_pre*}-snapshot-${HG_REVISION} |
65 |
+ SRC_URI="http://www.gentoo-el.org/~hwoarang/distfiles/${MY_P}.tar.gz" |
66 |
+ S=${WORKDIR}/${MY_P} |
67 |
+fi |
68 |
+ |
69 |
+src_prepare() { |
70 |
+ epatch "${FILESDIR}"/${PN}-4.9.3-darwin.patch |
71 |
+ sed -i -e 's/-O2//g' specs/* || die |
72 |
+ |
73 |
+ if [[ ${PV} == *9999* ]]; then |
74 |
+ $(PYTHON -2) build.py prepare || die |
75 |
+ fi |
76 |
+ |
77 |
+ python_src_prepare |
78 |
+} |
79 |
+ |
80 |
+src_configure() { |
81 |
+ configuration() { |
82 |
+ local myconf=("$(PYTHON)" |
83 |
+ configure.py |
84 |
+ --bindir="${EPREFIX}/usr/bin" |
85 |
+ --destdir="${EPREFIX}$(python_get_sitedir)" |
86 |
+ --incdir="${EPREFIX}$(python_get_includedir)" |
87 |
+ --sipdir="${EPREFIX}/usr/share/sip" |
88 |
+ $(use debug && echo --debug) |
89 |
+ CC="$(tc-getCC)" |
90 |
+ CXX="$(tc-getCXX)" |
91 |
+ LINK="$(tc-getCXX)" |
92 |
+ LINK_SHLIB="$(tc-getCXX)" |
93 |
+ CFLAGS="${CFLAGS}" |
94 |
+ CXXFLAGS="${CXXFLAGS}" |
95 |
+ LFLAGS="${LDFLAGS}" |
96 |
+ STRIP=":") |
97 |
+ echo "${myconf[@]}" |
98 |
+ "${myconf[@]}" |
99 |
+ } |
100 |
+ python_execute_function -s configuration |
101 |
+} |
102 |
+ |
103 |
+src_install() { |
104 |
+ python_src_install |
105 |
+ |
106 |
+ dodoc NEWS |
107 |
+ |
108 |
+ if use doc; then |
109 |
+ dohtml -r doc/html/* |
110 |
+ fi |
111 |
+} |
112 |
+ |
113 |
+pkg_postinst() { |
114 |
+ python_mod_optimize sipconfig.py sipdistutils.py |
115 |
+ |
116 |
+ ewarn "When updating dev-python/sip, you usually need to rebuild packages that depend on it," |
117 |
+ ewarn "such as PyQt4, qscintilla-python and pykde4. If you have app-portage/gentoolkit" |
118 |
+ ewarn "installed, you can find these packages with \`equery d dev-python/sip\`." |
119 |
+} |
120 |
+ |
121 |
+pkg_postrm() { |
122 |
+ python_mod_cleanup sipconfig.py sipdistutils.py |
123 |
+} |