summaryrefslogtreecommitdiff
path: root/dev-python/dynd-python/dynd-python-0.7.2.ebuild
diff options
context:
space:
mode:
authorSébastien Fabbro <bicatali@gentoo.org>2017-01-10 05:21:05 +0000
committerSébastien Fabbro <bicatali@gentoo.org>2017-01-10 05:26:41 +0000
commit18dac8ffa2683a38e973649aafbeebf9d151eba1 (patch)
tree036ae6bee826788461accfd8a9b334d841b3d5ba /dev-python/dynd-python/dynd-python-0.7.2.ebuild
parent02a4bcaa2cb79940af4b8fc89ae31aa95bad0257 (diff)
downloadgentoo-18dac8ffa2683a38e973649aafbeebf9d151eba1.tar.gz
gentoo-18dac8ffa2683a38e973649aafbeebf9d151eba1.tar.bz2
gentoo-18dac8ffa2683a38e973649aafbeebf9d151eba1.zip
dev-python/dynd-python: version bump
rework of the git forced commit tag Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'dev-python/dynd-python/dynd-python-0.7.2.ebuild')
-rw-r--r--dev-python/dynd-python/dynd-python-0.7.2.ebuild58
1 files changed, 58 insertions, 0 deletions
diff --git a/dev-python/dynd-python/dynd-python-0.7.2.ebuild b/dev-python/dynd-python/dynd-python-0.7.2.ebuild
new file mode 100644
index 000000000000..3ab41b4f24a2
--- /dev/null
+++ b/dev-python/dynd-python/dynd-python-0.7.2.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5} )
+
+inherit distutils-r1
+
+# change each new dynd version, to avoid git in tree dependency
+DYND_PYTHON_GIT_SHA1=8cdef57e71c784d7fe1f3f97a2ce2ce5727a89f1
+
+DESCRIPTION="Python exposure of multidimensionnal array library libdynd"
+HOMEPAGE="http://libdynd.org/"
+SRC_URI="https://github.com/libdynd/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc test"
+
+RDEPEND="
+ ~dev-libs/libdynd-${PV}
+ dev-python/numpy[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}
+ dev-python/cython[${PYTHON_USEDEP}]
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+ test? ( dev-python/nose[${PYTHON_USEDEP}] )
+"
+src_prepare() {
+ default
+ # remove the version mangling from git stuff it requires a git clone
+ # rather force set it a configure time
+ sed -e "/--dirty/s/ver =.*/ver = 'v${PV}'/" \
+ -e '/--always/d' \
+ -i setup.py || die
+ sed -e "s/get_git.*/set(DYND_PYTHON_GIT_SHA1 ${DYND_PYTHON_GIT_SHA1})/" \
+ -e "s/git_describe.*/set(DYND_PYTHON_VERSION_STRING v${PV})/" \
+ -e 's|-g -fomit-frame-pointer||' \
+ -e 's|-Werror||g' \
+ -i CMakeLists.txt || die
+}
+
+python_compile_all() {
+ use doc && emake -C docs html
+}
+
+python_test() {
+ cd "${BUILD_DIR}/lib" || die
+ PYTHONPATH=${BUILD_DIR}/lib nosetests -v || die
+}
+
+src_install() {
+ use doc && HTML_DOCS=( docs/build/html/. )
+ distutils-r1_src_install
+}