Gentoo Archives: gentoo-commits

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