commit: 1abe210bec6f9eac5b29a9ee563d8222847a0c86 Author: Chris Kerr <debdepba <AT> dasganma <DOT> tk> AuthorDate: Tue Jan 20 11:56:32 2015 +0000 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> CommitDate: Tue Jan 20 12:02:09 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=1abe210b
New ebuild for NeXus --- sci-libs/nexus/metadata.xml | 26 ++++++++++++++++++ sci-libs/nexus/nexus-4.3.1.ebuild | 58 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) diff --git a/sci-libs/nexus/metadata.xml b/sci-libs/nexus/metadata.xml new file mode 100644 index 0000000..c7dbbdb --- /dev/null +++ b/sci-libs/nexus/metadata.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci</herd> +<maintainer> + <email>[email protected]</email> + <name>Chris Kerr</name> + <description>I don't develop this software, I'm just a Gentoo user who wanted to install it</description> +</maintainer> +<longdescription>Libraries and tools for the NeXus data format, developed + collaboratively by scientists from major scientific facilities to facilitate + analysis and visualisation of neutron, x-ray and muon data. + NeXus is based on HDF5.</longdescription> +<use> + <flag name="xml">Allow using the verbose XML representation of NeXus data</flag> + <flag name="doc">Generate library documentation with <pkg>app-doc/doxygen</pkg></flag> + <flag name="swig">Generate bindings with <pkg>dev-lang/swig</pkg></flag> + <flag name="cbf">Support for Crystallographic Binary Format files with sci-libs/cbflib</flag> + <flag name="fortran">Build the Fortran bindings</flag> + <flag name="guile">Build the Scheme bindings</flag> + <flag name="tcl">Build the TCL bindings</flag> + <flag name="java">Build the Java bindings</flag> + <flag name="python">Build the Python bindings</flag> +</use> + +</pkgmetadata> diff --git a/sci-libs/nexus/nexus-4.3.1.ebuild b/sci-libs/nexus/nexus-4.3.1.ebuild new file mode 100644 index 0000000..9444e9e --- /dev/null +++ b/sci-libs/nexus/nexus-4.3.1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +FORTRAN_NEEDED=fortran +FORTRAN_STANDARD=90 +PYTHON_COMPAT=( python2_7 ) +inherit fortran-2 java-pkg-opt-2 flag-o-matic python-single-r1 + +DESCRIPTION="Data format for neutron and x-ray scattering data" +HOMEPAGE="http://nexusformat.org/" +SRC_URI="http://download.nexusformat.org/kits/${PV}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64" +IUSE="cbf doc fortran guile java python swig tcl xml" + +RDEPEND=" + sci-libs/hdf5 + python? ( ${PYTHON_DEPS} ) + xml? ( dev-libs/mxml ) + cbf? ( sci-libs/cbflib ) + guile? ( dev-scheme/guile ) +" # N.B. the website says it depends on HDF4 too, but I find it builds fine without it + +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen dev-tex/xcolor ) + swig? ( dev-lang/swig ) +" + +pkg_setup() { + use python && python-single-r1_pkg_setup + use fortran && fortran-2_pkg_setup +} + +src_configure() { + # Linking between Fortran libraries gives a relocation error, using workaround suggested at: + # http://www.gentoo.org/proj/en/base/amd64/howtos/?part=1&chap=3 + use fortran && append-fflags -fPIC + + econf $(use_with doc doxygen) \ + $(use_with fortran f90) \ + $(use_with swig) \ + $(use_with xml) \ + $(use_with cbf cbflib) \ + $(use_with guile) \ + $(use_with java) \ + $(use_with python) +} + +src_compile() { + # Handling of dependencies between Fortran module files doesn't play well with parallel make + use fortran && MAKEOPTS+=" -j1 " + default +}
