commit: eac650cb3780df02c139a2f9e2d9d90e5cc0eda3
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 6 11:47:58 2016 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Sun Mar 6 11:47:58 2016 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=eac650cb
sci-libs/spglib: Version bump to latest 1.9.0
Gentoo-Bug: 575656
* EAPI=6
Package-Manager: portage-2.2.27
sci-libs/spglib/files/spglib-1.9.0-openmp.patch | 22 +++++++++++++++
sci-libs/spglib/spglib-1.9.0.ebuild | 37 +++++++++++++++++++++++++
2 files changed, 59 insertions(+)
diff --git a/sci-libs/spglib/files/spglib-1.9.0-openmp.patch
b/sci-libs/spglib/files/spglib-1.9.0-openmp.patch
new file mode 100644
index 0000000..2600d1b
--- /dev/null
+++ b/sci-libs/spglib/files/spglib-1.9.0-openmp.patch
@@ -0,0 +1,22 @@
+--- spglib-1.9.0/configure.ac
++++ spglib-1.9.0/configure.ac
+@@ -17,6 +17,9 @@
+ # Checks for libraries.
+ AC_CHECK_FUNCS([sqrt])
+
++# Checks for OpenMP.
++AC_OPENMP
++
+ # Checks for header files.
+ AC_HEADER_STDC
+ AC_CHECK_HEADERS([stdlib.h string.h math.h])
+--- spglib-1.9.0/src/Makefile.am
++++ spglib-1.9.0/src/Makefile.am
+@@ -60,4 +60,6 @@
+ version.h
+
+ # libsymspg_la_LDFLAGS = -version-info 0:1:0
+-libsymspg_la_LIBADD = -lm
++libsymspg_la_LIBADD = -lm @OPENMP_CFLAGS@
++
++AM_CFLAGS = @OPENMP_CFLAGS@
diff --git a/sci-libs/spglib/spglib-1.9.0.ebuild
b/sci-libs/spglib/spglib-1.9.0.ebuild
new file mode 100644
index 0000000..1ebafac
--- /dev/null
+++ b/sci-libs/spglib/spglib-1.9.0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit autotools eutils versionator
+
+MY_PV=$(get_version_component_range 1-2 ${PV})
+
+DESCRIPTION="Spglib is a C library for finding and handling crystal symmetries"
+HOMEPAGE="http://spglib.sourceforge.net/"
+SRC_URI="http://downloads.sourceforge.net/project/${PN}/${PN}/${PN}-${MY_PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="openmp"
+
+PATCHES=(
+ "${FILESDIR}/${P}-openmp.patch"
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf --disable-static \
+ $(use_enable openmp)
+}
+
+src_install() {
+ default
+ prune_libtool_files --all
+}