Gentoo Archives: gentoo-commits

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