Gentoo Archives: gentoo-commits

From: "Maxim Koltsov (maksbotan)" <maksbotan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/egenix-mx-base: ChangeLog egenix-mx-base-3.2.1-r1.ebuild
Date: Sat, 24 Dec 2011 10:43:07
Message-Id: 20111224104256.CDBA52004B@flycatcher.gentoo.org
1 maksbotan 11/12/24 10:42:56
2
3 Modified: ChangeLog
4 Added: egenix-mx-base-3.2.1-r1.ebuild
5 Log:
6 Make build system respect user CFLAGS, bug 394917
7
8 (Portage version: 2.1.10.41/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.59 dev-python/egenix-mx-base/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/egenix-mx-base/ChangeLog?rev=1.59&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/egenix-mx-base/ChangeLog?rev=1.59&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/egenix-mx-base/ChangeLog?r1=1.58&r2=1.59
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/egenix-mx-base/ChangeLog,v
20 retrieving revision 1.58
21 retrieving revision 1.59
22 diff -u -r1.58 -r1.59
23 --- ChangeLog 12 Sep 2011 16:22:00 -0000 1.58
24 +++ ChangeLog 24 Dec 2011 10:42:56 -0000 1.59
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-python/egenix-mx-base
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/egenix-mx-base/ChangeLog,v 1.58 2011/09/12 16:22:00 neurogeek Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/egenix-mx-base/ChangeLog,v 1.59 2011/12/24 10:42:56 maksbotan Exp $
30 +
31 +*egenix-mx-base-3.2.1-r1 (24 Dec 2011)
32 +
33 + 24 Dec 2011; Maxim Koltsov <maksbotan@g.o>
34 + +egenix-mx-base-3.2.1-r1.ebuild:
35 + Make build system respect user CFLAGS, bug 394917
36
37 *egenix-mx-base-3.2.1 (12 Sep 2011)
38
39
40
41
42 1.1 dev-python/egenix-mx-base/egenix-mx-base-3.2.1-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/egenix-mx-base/egenix-mx-base-3.2.1-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/egenix-mx-base/egenix-mx-base-3.2.1-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: egenix-mx-base-3.2.1-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-python/egenix-mx-base/egenix-mx-base-3.2.1-r1.ebuild,v 1.1 2011/12/24 10:42:56 maksbotan Exp $
52
53 EAPI="3"
54 PYTHON_DEPEND="2"
55 SUPPORT_PYTHON_ABIS="1"
56 RESTRICT_PYTHON_ABIS="3.* *-jython"
57
58 inherit distutils flag-o-matic
59
60 DESCRIPTION="eGenix utils for Python"
61 HOMEPAGE="http://www.egenix.com/products/python/mxBase http://pypi.python.org/pypi/egenix-mx-base"
62 SRC_URI="http://downloads.egenix.com/python/${P}.tar.gz"
63
64 LICENSE="eGenixPublic-1.1"
65 SLOT="0"
66 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
67 IUSE=""
68
69 DEPEND=""
70 RDEPEND=""
71
72 PYTHON_MODNAME="mx"
73
74 src_prepare() {
75 distutils_src_prepare
76 # doesn't play well with -fstack-protector (#63762)
77 rm "mx/TextTools/Examples/pytag.py"
78
79 # We do the optimization ourselves
80 sed -i \
81 -e 's/^\(optimize\) = 1/\1 = 0/' \
82 setup.cfg || die "sed failed"
83
84 # And we don't want the docs in site-packages
85 sed -i \
86 -e '/\/Doc\//d' \
87 egenix_mx_base.py || die "sed failed"
88 }
89
90 src_compile() {
91 replace-flags "-O[3s]" "-O2"
92 #Build system wants to have BASECFLAGS in environ, not CFLAGS.
93 BASECFLAGS="${CFLAGS}" distutils_src_compile
94 }
95
96 src_install() {
97 distutils_src_install
98 dohtml -a html -r mx
99 insinto /usr/share/doc/${PF}
100 find -iname "*.pdf" | xargs doins
101
102 installation_of_headers() {
103 dodir "$(python_get_includedir)/mx" || return 1
104 find "${ED}$(python_get_sitedir)/mx" -type f -name "*.h" -print0 | while read -d $'\0' header; do
105 mv -f "${header}" "${ED}$(python_get_includedir)/mx" || return 1
106 done
107 }
108 python_execute_function -q installation_of_headers
109 }