summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-physics/xrayutilities/xrayutilities-1.1.2.ebuild')
-rw-r--r--sci-physics/xrayutilities/xrayutilities-1.1.2.ebuild38
1 files changed, 38 insertions, 0 deletions
diff --git a/sci-physics/xrayutilities/xrayutilities-1.1.2.ebuild b/sci-physics/xrayutilities/xrayutilities-1.1.2.ebuild
new file mode 100644
index 0000000..c44dbd3
--- /dev/null
+++ b/sci-physics/xrayutilities/xrayutilities-1.1.2.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+PYTHON_COMPAT=(python{2_7,3_3,3_4} )
+
+inherit distutils-r1
+
+DESCRIPTION="package with useful scripts for X-ray diffraction physicists"
+HOMEPAGE="http://sourceforge.net/projects/xrayutilities"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="openmp test"
+
+DEPEND="dev-python/numpy
+ sci-libs/scipy
+ dev-python/pytables
+ >sys-devel/gcc-4.2:*[openmp?]"
+RDEPEND="${DEPEND}"
+
+DOCS=(README.txt CHANGES.txt xrayutilities.pdf)
+EXAMPLES=( examples/. )
+
+python_configure_all() {
+ if ! use openmp; then
+ mydistutilsargs=( --without-openmp )
+ fi
+}
+
+python_test() {
+ cd xrayutilities/tests
+ $PYTHON -m unittest discover || die
+}