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.9999.ebuild ChangeLog |
Date: | Wed, 29 Jul 2015 16:49:24 |
Message-Id: | 20150729164915.160A0112@oystercatcher.gentoo.org |
1 | pesa 15/07/29 16:49:15 |
2 | |
3 | Modified: ChangeLog |
4 | Added: sip-4.9999.ebuild |
5 | Log: |
6 | Import live ebuild from qt overlay. |
7 | |
8 | (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0xDADED6B2671CB57D!) |
9 | |
10 | Revision Changes Path |
11 | 1.313 dev-python/sip/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sip/ChangeLog?rev=1.313&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sip/ChangeLog?rev=1.313&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sip/ChangeLog?r1=1.312&r2=1.313 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/dev-python/sip/ChangeLog,v |
20 | retrieving revision 1.312 |
21 | retrieving revision 1.313 |
22 | diff -u -r1.312 -r1.313 |
23 | --- ChangeLog 22 Jul 2015 03:21:29 -0000 1.312 |
24 | +++ ChangeLog 29 Jul 2015 16:49:15 -0000 1.313 |
25 | @@ -1,6 +1,11 @@ |
26 | # ChangeLog for dev-python/sip |
27 | # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/dev-python/sip/ChangeLog,v 1.312 2015/07/22 03:21:29 pesa Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/dev-python/sip/ChangeLog,v 1.313 2015/07/29 16:49:15 pesa Exp $ |
30 | + |
31 | +*sip-4.9999 (29 Jul 2015) |
32 | + |
33 | + 29 Jul 2015; Davide Pesavento <pesa@g.o> +sip-4.9999.ebuild: |
34 | + Import live ebuild from qt overlay. |
35 | |
36 | *sip-4.16.9 (22 Jul 2015) |
37 | |
38 | |
39 | |
40 | |
41 | 1.1 dev-python/sip/sip-4.9999.ebuild |
42 | |
43 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sip/sip-4.9999.ebuild?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sip/sip-4.9999.ebuild?rev=1.1&content-type=text/plain |
45 | |
46 | Index: sip-4.9999.ebuild |
47 | =================================================================== |
48 | # Copyright 1999-2015 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.9999.ebuild,v 1.1 2015/07/29 16:49:15 pesa Exp $ |
51 | |
52 | EAPI=5 |
53 | PYTHON_COMPAT=( python{2_7,3_3,3_4} ) |
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.com/software/sip/intro https://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/~pesa/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="" |
79 | IUSE="debug doc" |
80 | |
81 | DEPEND="${PYTHON_DEPS}" |
82 | RDEPEND="${DEPEND}" |
83 | [[ ${PV} == *9999* ]] && DEPEND+=" |
84 | sys-devel/bison |
85 | sys-devel/flex |
86 | doc? ( dev-python/sphinx[$(python_gen_usedep 'python2*')] ) |
87 | " |
88 | |
89 | REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
90 | [[ ${PV} == *9999* ]] && REQUIRED_USE+=" |
91 | || ( $(python_gen_useflags 'python2*') ) |
92 | " |
93 | |
94 | src_prepare() { |
95 | epatch "${FILESDIR}"/${PN}-4.15.5-darwin.patch |
96 | |
97 | if [[ ${PV} == *9999* ]]; then |
98 | python_setup 'python2*' |
99 | "${PYTHON}" build.py prepare || die |
100 | if use doc; then |
101 | "${PYTHON}" 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 | |
118 | src_configure() { |
119 | configuration() { |
120 | local myconf=( |
121 | "${PYTHON}" |
122 | "${S}"/configure.py |
123 | --destdir="$(python_get_sitedir)" |
124 | --incdir="$(python_get_includedir)" |
125 | $(use debug && echo --debug) |
126 | AR="$(tc-getAR) cqs" |
127 | CC="$(tc-getCC)" |
128 | CFLAGS="${CFLAGS}" |
129 | CFLAGS_RELEASE= |
130 | CXX="$(tc-getCXX)" |
131 | CXXFLAGS="${CXXFLAGS}" |
132 | CXXFLAGS_RELEASE= |
133 | LINK="$(tc-getCXX)" |
134 | LINK_SHLIB="$(tc-getCXX)" |
135 | LFLAGS="${LDFLAGS}" |
136 | LFLAGS_RELEASE= |
137 | RANLIB= |
138 | STRIP= |
139 | ) |
140 | echo "${myconf[@]}" |
141 | "${myconf[@]}" || die |
142 | } |
143 | python_foreach_impl run_in_build_dir configuration |
144 | } |
145 | |
146 | src_compile() { |
147 | python_foreach_impl run_in_build_dir default |
148 | } |
149 | |
150 | src_install() { |
151 | installation() { |
152 | emake DESTDIR="${D}" install |
153 | python_optimize |
154 | } |
155 | python_foreach_impl run_in_build_dir installation |
156 | |
157 | dodoc ChangeLog NEWS |
158 | use doc && dodoc -r doc/html |
159 | } |