Gentoo Archives: gentoo-commits

From: "Michael Palimaka (kensington)" <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/sip: sip-4.14.2-r1.ebuild ChangeLog
Date: Tue, 29 Jan 2013 18:40:07
Message-Id: 20130129184002.325142171D@flycatcher.gentoo.org
1 kensington 13/01/29 18:40:02
2
3 Modified: ChangeLog
4 Added: sip-4.14.2-r1.ebuild
5 Log:
6 Migrate to the new python eclass.
7
8 (Portage version: 2.1.11.50/cvs/Linux x86_64, signed Manifest commit with key 675D0D2C)
9
10 Revision Changes Path
11 1.235 dev-python/sip/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sip/ChangeLog?rev=1.235&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sip/ChangeLog?rev=1.235&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sip/ChangeLog?r1=1.234&r2=1.235
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/sip/ChangeLog,v
20 retrieving revision 1.234
21 retrieving revision 1.235
22 diff -u -r1.234 -r1.235
23 --- ChangeLog 26 Dec 2012 03:18:38 -0000 1.234
24 +++ ChangeLog 29 Jan 2013 18:40:02 -0000 1.235
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-python/sip
27 -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/sip/ChangeLog,v 1.234 2012/12/26 03:18:38 pesa Exp $
29 +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-python/sip/ChangeLog,v 1.235 2013/01/29 18:40:02 kensington Exp $
31 +
32 +*sip-4.14.2-r1 (29 Jan 2013)
33 +
34 + 29 Jan 2013; Michael Palimaka <kensington@g.o> +sip-4.14.2-r1.ebuild:
35 + Migrate to the new python eclass.
36
37 26 Dec 2012; Davide Pesavento <pesa@g.o> -sip-4.14.1.ebuild:
38 old
39
40
41
42 1.1 dev-python/sip/sip-4.14.2-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sip/sip-4.14.2-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sip/sip-4.14.2-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: sip-4.14.2-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2013 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-python/sip/sip-4.14.2-r1.ebuild,v 1.1 2013/01/29 18:40:02 kensington Exp $
52
53 EAPI=5
54 PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2} )
55
56 inherit eutils python-r1 toolchain-funcs
57
58 DESCRIPTION="Python extension module generator for C and C++ libraries"
59 HOMEPAGE="http://www.riverbankcomputing.co.uk/software/sip/intro http://pypi.python.org/pypi/SIP"
60 LICENSE="|| ( GPL-2 GPL-3 sip )"
61
62 if [[ ${PV} == *9999* ]]; then
63 # live version from mercurial repo
64 EHG_REPO_URI="http://www.riverbankcomputing.com/hg/sip"
65 inherit mercurial
66 elif [[ ${PV} == *_pre* ]]; then
67 # development snapshot
68 HG_REVISION=
69 MY_P=${PN}-${PV%_pre*}-snapshot-${HG_REVISION}
70 SRC_URI="http://dev.gentoo.org/~hwoarang/distfiles/${MY_P}.tar.gz"
71 S=${WORKDIR}/${MY_P}
72 else
73 # official release
74 SRC_URI="mirror://sourceforge/pyqt/${P}.tar.gz"
75 fi
76
77 # Sub-slot based on SIP_API_MAJOR_NR from siplib/sip.h.in
78 SLOT="0/9"
79 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
80 IUSE="debug doc"
81
82 DEPEND="${PYTHON_DEPS}"
83 RDEPEND="${DEPEND}"
84
85 [[ ${PV} == *9999* ]] && DEPEND+="
86 =dev-lang/python-2*
87 sys-devel/bison
88 sys-devel/flex
89 doc? ( dev-python/sphinx[$(python_gen_usedep python2*)] )
90 "
91
92 src_prepare() {
93 epatch "${FILESDIR}"/${PN}-4.9.3-darwin.patch
94
95 if [[ ${PV} == *9999* ]]; then
96 python2 build.py prepare || die
97 if use doc; then
98 python2 build.py doc || die
99 fi
100 fi
101
102 # Sub-slot sanity check
103 local sub_slot=${SLOT#*/}
104 local sip_api_major_nr=$(sed -nre 's:^#define SIP_API_MAJOR_NR\s+([0-9]+):\1:p' siplib/sip.h.in)
105 if [[ ${sub_slot} != ${sip_api_major_nr} ]]; then
106 eerror
107 eerror "Ebuild sub-slot (${sub_slot}) does not match SIP_API_MAJOR_NR (${sip_api_major_nr})"
108 eerror "Please update SLOT variable as follows:"
109 eerror " SLOT=\"${SLOT%%/*}/${sip_api_major_nr}\""
110 eerror
111 die "sub-slot sanity check failed"
112 fi
113
114 python_copy_sources
115 }
116
117 src_configure() {
118 configuration() {
119 pushd "${BUILD_DIR}" > /dev/null
120 local myconf=(
121 "${PYTHON}" configure.py
122 --bindir="${EPREFIX}/usr/bin"
123 --destdir="${EPREFIX}$(python_get_sitedir)"
124 --incdir="${EPREFIX}$(python_get_includedir)"
125 --sipdir="${EPREFIX}/usr/share/sip"
126 $(use debug && echo --debug)
127 AR="$(tc-getAR) cqs"
128 CC="$(tc-getCC)"
129 CFLAGS="${CFLAGS}"
130 CFLAGS_RELEASE=
131 CXX="$(tc-getCXX)"
132 CXXFLAGS="${CXXFLAGS}"
133 CXXFLAGS_RELEASE=
134 LINK="$(tc-getCXX)"
135 LINK_SHLIB="$(tc-getCXX)"
136 LFLAGS="${LDFLAGS}"
137 LFLAGS_RELEASE=
138 RANLIB=
139 STRIP=
140 )
141 echo "${myconf[@]}"
142 "${myconf[@]}"
143 popd > /dev/null
144 }
145 python_foreach_impl configuration
146 }
147
148 src_compile() {
149 compilation() {
150 pushd "${BUILD_DIR}" > /dev/null
151 default
152 popd > /dev/null
153 }
154 python_foreach_impl compilation
155 }
156
157 src_install() {
158 installation() {
159 pushd "${BUILD_DIR}" > /dev/null
160 emake DESTDIR="${D}" install
161 python_optimize
162 popd > /dev/null
163 }
164 python_foreach_impl installation
165
166 dodoc NEWS
167 use doc && dohtml -r doc/html/*
168 }