summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Koltsov <maksbotan@gentoo.org>2011-12-24 10:42:56 +0000
committerMaxim Koltsov <maksbotan@gentoo.org>2011-12-24 10:42:56 +0000
commit2b93b24afee420d2bf973d95ad84ea66255d90bf (patch)
treef823eb85c42c318c84a2ba950770187fdaa619a0 /dev-python/egenix-mx-base
parentVersion bump. (diff)
downloadgentoo-2-2b93b24afee420d2bf973d95ad84ea66255d90bf.tar.gz
gentoo-2-2b93b24afee420d2bf973d95ad84ea66255d90bf.tar.bz2
gentoo-2-2b93b24afee420d2bf973d95ad84ea66255d90bf.zip
Make build system respect user CFLAGS, bug 394917
(Portage version: 2.1.10.41/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/egenix-mx-base')
-rw-r--r--dev-python/egenix-mx-base/ChangeLog8
-rw-r--r--dev-python/egenix-mx-base/egenix-mx-base-3.2.1-r1.ebuild61
2 files changed, 68 insertions, 1 deletions
diff --git a/dev-python/egenix-mx-base/ChangeLog b/dev-python/egenix-mx-base/ChangeLog
index ec118f8c74d9..0f720bfc3de1 100644
--- a/dev-python/egenix-mx-base/ChangeLog
+++ b/dev-python/egenix-mx-base/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/egenix-mx-base
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/egenix-mx-base/ChangeLog,v 1.58 2011/09/12 16:22:00 neurogeek Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/egenix-mx-base/ChangeLog,v 1.59 2011/12/24 10:42:56 maksbotan Exp $
+
+*egenix-mx-base-3.2.1-r1 (24 Dec 2011)
+
+ 24 Dec 2011; Maxim Koltsov <maksbotan@gentoo.org>
+ +egenix-mx-base-3.2.1-r1.ebuild:
+ Make build system respect user CFLAGS, bug 394917
*egenix-mx-base-3.2.1 (12 Sep 2011)
diff --git a/dev-python/egenix-mx-base/egenix-mx-base-3.2.1-r1.ebuild b/dev-python/egenix-mx-base/egenix-mx-base-3.2.1-r1.ebuild
new file mode 100644
index 000000000000..27e9a8de8146
--- /dev/null
+++ b/dev-python/egenix-mx-base/egenix-mx-base-3.2.1-r1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $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 $
+
+EAPI="3"
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.* *-jython"
+
+inherit distutils flag-o-matic
+
+DESCRIPTION="eGenix utils for Python"
+HOMEPAGE="http://www.egenix.com/products/python/mxBase http://pypi.python.org/pypi/egenix-mx-base"
+SRC_URI="http://downloads.egenix.com/python/${P}.tar.gz"
+
+LICENSE="eGenixPublic-1.1"
+SLOT="0"
+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"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+PYTHON_MODNAME="mx"
+
+src_prepare() {
+ distutils_src_prepare
+ # doesn't play well with -fstack-protector (#63762)
+ rm "mx/TextTools/Examples/pytag.py"
+
+ # We do the optimization ourselves
+ sed -i \
+ -e 's/^\(optimize\) = 1/\1 = 0/' \
+ setup.cfg || die "sed failed"
+
+ # And we don't want the docs in site-packages
+ sed -i \
+ -e '/\/Doc\//d' \
+ egenix_mx_base.py || die "sed failed"
+}
+
+src_compile() {
+ replace-flags "-O[3s]" "-O2"
+ #Build system wants to have BASECFLAGS in environ, not CFLAGS.
+ BASECFLAGS="${CFLAGS}" distutils_src_compile
+}
+
+src_install() {
+ distutils_src_install
+ dohtml -a html -r mx
+ insinto /usr/share/doc/${PF}
+ find -iname "*.pdf" | xargs doins
+
+ installation_of_headers() {
+ dodir "$(python_get_includedir)/mx" || return 1
+ find "${ED}$(python_get_sitedir)/mx" -type f -name "*.h" -print0 | while read -d $'\0' header; do
+ mv -f "${header}" "${ED}$(python_get_includedir)/mx" || return 1
+ done
+ }
+ python_execute_function -q installation_of_headers
+}