1 |
commit: af17e687b7022a5f4727d594ef29c24b983d9dc2 |
2 |
Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de> |
3 |
AuthorDate: Sun May 31 09:17:22 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 31 09:17:22 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=af17e687 |
7 |
|
8 |
dev-python/meshpy: Version bump; Implement python_test() |
9 |
|
10 |
Package-Manager: portage-2.2.18 |
11 |
|
12 |
dev-python/meshpy/ChangeLog | 7 +++++- |
13 |
dev-python/meshpy/meshpy-2014.1.ebuild | 46 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 52 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/dev-python/meshpy/ChangeLog b/dev-python/meshpy/ChangeLog |
17 |
index 1f223ae..084d36c 100644 |
18 |
--- a/dev-python/meshpy/ChangeLog |
19 |
+++ b/dev-python/meshpy/ChangeLog |
20 |
@@ -1,7 +1,12 @@ |
21 |
# ChangeLog for dev-python/meshpy |
22 |
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
23 |
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
24 |
# $Header: $ |
25 |
|
26 |
+*meshpy-2014.1 (31 May 2015) |
27 |
+ |
28 |
+ 31 May 2015; Marius Brehler <marbre@××××××××××××××.de> +meshpy-2014.1.ebuild: |
29 |
+ Version bump; Implement python_test() |
30 |
+ |
31 |
*meshpy-2013.1.2 (14 Jun 2013) |
32 |
|
33 |
14 Jun 2013; Justin Lecher <jlec@g.o> -meshpy-0.91.2.ebuild, |
34 |
|
35 |
diff --git a/dev-python/meshpy/meshpy-2014.1.ebuild b/dev-python/meshpy/meshpy-2014.1.ebuild |
36 |
new file mode 100644 |
37 |
index 0000000..9727775 |
38 |
--- /dev/null |
39 |
+++ b/dev-python/meshpy/meshpy-2014.1.ebuild |
40 |
@@ -0,0 +1,46 @@ |
41 |
+# Copyright 1999-2015 Gentoo Foundation |
42 |
+# Distributed under the terms of the GNU General Public License v2 |
43 |
+# $Header: $ |
44 |
+ |
45 |
+EAPI=5 |
46 |
+ |
47 |
+PYTHON_COMPAT=( python2_7 python{3_3,3_4} ) |
48 |
+ |
49 |
+inherit distutils-r1 |
50 |
+ |
51 |
+MY_PN="MeshPy" |
52 |
+ |
53 |
+DESCRIPTION="Quality triangular and tetrahedral mesh generation for Python" |
54 |
+HOMEPAGE="http://mathema.tician.de/software/meshpy http://pypi.python.org/pypi/MeshPy" |
55 |
+SRC_URI="mirror://pypi/M/${MY_PN}/${MY_PN}-${PV}.tar.gz" |
56 |
+ |
57 |
+LICENSE="MIT" |
58 |
+SLOT="0" |
59 |
+KEYWORDS="~amd64 ~x86" |
60 |
+IUSE="test" |
61 |
+ |
62 |
+RDEPEND=" |
63 |
+ dev-libs/boost[python,${PYTHON_USEDEP}] |
64 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
65 |
+ dev-python/pytools[${PYTHON_USEDEP}] |
66 |
+ dev-python/six[${PYTHON_USEDEP}]" |
67 |
+DEPEND="${RDEPEND} |
68 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
69 |
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )" |
70 |
+ |
71 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
72 |
+ |
73 |
+python_prepare_all() { |
74 |
+ sed 's: delay = 10: delay = 1:g' -i aksetup_helper.py || die |
75 |
+ distutils-r1_python_prepare_all |
76 |
+} |
77 |
+ |
78 |
+python_compile() { |
79 |
+ mkdir "${BUILD_DIR}" || die |
80 |
+ echo "BOOST_PYTHON_LIBNAME = [\'boost_${EPYTHON}-mt\']">> "${BUILD_DIR}"/siteconf.py |
81 |
+ distutils-r1_python_compile |
82 |
+} |
83 |
+ |
84 |
+python_test() { |
85 |
+ py.test || die |
86 |
+} |