aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sci-libs/xraylib/ChangeLog8
-rw-r--r--sci-libs/xraylib/Manifest1
-rw-r--r--sci-libs/xraylib/xraylib-3.1.0.ebuild84
3 files changed, 91 insertions, 2 deletions
diff --git a/sci-libs/xraylib/ChangeLog b/sci-libs/xraylib/ChangeLog
index 0698f696d..d29b543b2 100644
--- a/sci-libs/xraylib/ChangeLog
+++ b/sci-libs/xraylib/ChangeLog
@@ -1,7 +1,11 @@
# ChangeLog for sci-libs/xraylib
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*xraylib-3.1.0 (03 Apr 2015)
+
+ 03 Apr 2015; Marius Brehler <marbre@linux.sungazer.de> +xraylib-3.1.0.ebuild:
+ Version bump, fixes Bug 538232
+
08 Dec 2013; Justin Lecher <jlec@gentoo.org> xraylib-2.16.0.ebuild:
Make python stuff optional under USE=python
-
diff --git a/sci-libs/xraylib/Manifest b/sci-libs/xraylib/Manifest
index eaaa7282f..40ddde60f 100644
--- a/sci-libs/xraylib/Manifest
+++ b/sci-libs/xraylib/Manifest
@@ -1 +1,2 @@
DIST xraylib-2.16.0.tar.gz 39669898 SHA256 84dcf6b3171d17ac8f78ac85d39c1a0e1f8567e69eac8552ece0cea5c85c2733 SHA512 0232bea0f934cb13fd30a9964aa52fc8eeae82fc40c263f7196041d58b272c99e177254268b43f091361b51c0046bedb9dfce88684a01c9da0ad33878b2b753c WHIRLPOOL 3e44e524380657a940a77ed210cf054a00c8b636cece794a6d2bdc32cce82f8bdd1c3eb77c5eae80d21a7e9c73ab4c104414e60c57147cfbf02d8b279db7aeeb
+DIST xraylib-3.1.0.tar.gz 32882324 SHA256 32263a234801ab12641b4660cb5fecf531edf85be09ca936a14b18b053324015 SHA512 0b090e6096d047a32552477a4cfe46203b69f8d858bae2b053f877cf713219432b8a0779dfc6eaa48c82568407ba56bbf565c8491d6416001f9c8fb80b714f01 WHIRLPOOL 2d4c74a590d80bdd6d2325f49db61582eab86041af527f4bb44b1357f8b66cdf9daad68351077eeae830632bfaad9dcc1203644afa476e24b0dac73c1dbe223b
diff --git a/sci-libs/xraylib/xraylib-3.1.0.ebuild b/sci-libs/xraylib/xraylib-3.1.0.ebuild
new file mode 100644
index 000000000..e899018ab
--- /dev/null
+++ b/sci-libs/xraylib/xraylib-3.1.0.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=true
+FORTRAN_NEEDED=fortran
+FORTRAN_STANDARD=2003
+PYTHON_COMPAT=( python{2_6,2_7} ) # python 3 supported by github master
+
+inherit eutils autotools-utils python-single-r1 java-pkg-opt-2 fortran-2
+
+DESCRIPTION="A library for X-ray matter interaction cross sections for X-ray fluorescence applications"
+HOMEPAGE="https://github.com/tschoonj/xraylib"
+SRC_URI="https://github.com/tschoonj/xraylib/archive/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="examples fortran java lua perl python"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="
+ java? ( >=virtual/jre-1.4 )
+ lua? ( dev-lang/lua )
+ perl? ( dev-lang/perl )
+ python? ( ${PYTHON_DEPS} )"
+
+DEPEND="${RDEPEND}
+ java? ( >=virtual/jdk-1.4 )"
+
+S="${WORKDIR}/${PN}-${P}"
+
+DOCS=(AUTHORS BUGS Changelog README TODO)
+
+pkg_setup() {
+ fortran-2_pkg_setup
+ java-pkg-opt-2_pkg_setup
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ java-pkg-opt-2_src_prepare
+ autotools-utils_src_prepare
+}
+
+src_configure() {
+ local myeconfargs=(
+ --disable-idl
+ $(use_enable fortran fortran2003)
+ $(use_enable java)
+ $(use_enable lua)
+ $(use_enable perl)
+ $(use_enable python)
+ $(use_enable python python-integration)
+ )
+ autotools-utils_src_configure
+}
+
+src_compile() {
+ # see https://github.com/tschoonj/xraylib/issues/11
+ if use fortran || use java; then
+ MAKEOPTS+=" -j1"
+ fi
+ autotools-utils_src_compile
+}
+
+src_install() {
+ autotools-utils_src_install
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}/examples
+ doins example/*.c example/*.cpp
+ use java && doins example/*.java
+ use lua && doins example/*.lua
+ use perl && doins example/*.pl
+ use python && doins example/*.py
+ docompress -x /usr/share/doc/${PF}/examples # Don't compress examples
+ fi
+
+ use java && java-pkg_regso /usr/share/xraylib/java/libxraylib.so
+}