Gentoo Archives: gentoo-commits

From: Markos Chandras <hwoarang@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/qt:master commit in: dev-python/sip/
Date: Fri, 06 Jul 2012 05:58:06
Message-Id: 1341554415.f8c334e580e84128cfde911e228169d1d9b83676.hwoarang@gentoo
1 commit: f8c334e580e84128cfde911e228169d1d9b83676
2 Author: Markos Chandras <hwoarang <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 6 06:00:15 2012 +0000
4 Commit: Markos Chandras <hwoarang <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 6 06:00:15 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/qt.git;a=commit;h=f8c334e5
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_pre20120706.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 79efc85..0091b1e 100644
17 --- a/dev-python/sip/Manifest
18 +++ b/dev-python/sip/Manifest
19 @@ -1 +1 @@
20 -DIST sip-4.13.3-snapshot-377e9e4763f5.tar.gz 730272 SHA256 cc1b00a0d982f488d824252dfaca77c2f6c34d037e44177d41da16435fe75d92 SHA512 13f0db372b7345820154ce368922707ae167aadaa1af63cea841abc7817fda9685c727d87575813b3a7bce0bf3204dde9776569a99abe7a254721316fae710b1 WHIRLPOOL e46f14c7a734c3c88c19166fd94e9a63f5a6f20d2569a4540621ff5f382aaad17cba1a5fd04ad31908aae0230382ae3188a0c6da4816db40c14cd9ac3bdbbaeb
21 +DIST sip-4.13.4-snapshot-9b330b545c65.tar.gz 731370 SHA256 bfeed7c778e3f9ea595d1d1fa5446aa86042df687d8076d4a5ed23862ff81e67 SHA512 334d4600468c4d0b67af5f6101c324a08d81013f93c5e5dc98e16a3267dac267287c7e291da7b1c64c2417ad75ee14c711d336ec13a0b704c093f1ac5ede4f45 WHIRLPOOL be165a106c2205775be4eb9a6aea2c169f1ee144a00f79cddc23bcb96916e42d103f09c8882ab83eb6bc868d5787bd7febda69825802e7954c86e2ba4cabf8e9
22
23 diff --git a/dev-python/sip/sip-4.13.4_pre20120706.ebuild b/dev-python/sip/sip-4.13.4_pre20120706.ebuild
24 new file mode 100644
25 index 0000000..8fc773c
26 --- /dev/null
27 +++ b/dev-python/sip/sip-4.13.4_pre20120706.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=9b330b545c65
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 +}