Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/spglib/, sci-libs/spglib/files/
Date: Sun, 06 Mar 2016 19:41:15
Message-Id: 1457264878.eac650cb3780df02c139a2f9e2d9d90e5cc0eda3.jlec@gentoo
1 commit: eac650cb3780df02c139a2f9e2d9d90e5cc0eda3
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 6 11:47:58 2016 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 6 11:47:58 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=eac650cb
7
8 sci-libs/spglib: Version bump to latest 1.9.0
9
10 Gentoo-Bug: 575656
11 * EAPI=6
12
13 Package-Manager: portage-2.2.27
14
15 sci-libs/spglib/files/spglib-1.9.0-openmp.patch | 22 +++++++++++++++
16 sci-libs/spglib/spglib-1.9.0.ebuild | 37 +++++++++++++++++++++++++
17 2 files changed, 59 insertions(+)
18
19 diff --git a/sci-libs/spglib/files/spglib-1.9.0-openmp.patch b/sci-libs/spglib/files/spglib-1.9.0-openmp.patch
20 new file mode 100644
21 index 0000000..2600d1b
22 --- /dev/null
23 +++ b/sci-libs/spglib/files/spglib-1.9.0-openmp.patch
24 @@ -0,0 +1,22 @@
25 +--- spglib-1.9.0/configure.ac
26 ++++ spglib-1.9.0/configure.ac
27 +@@ -17,6 +17,9 @@
28 + # Checks for libraries.
29 + AC_CHECK_FUNCS([sqrt])
30 +
31 ++# Checks for OpenMP.
32 ++AC_OPENMP
33 ++
34 + # Checks for header files.
35 + AC_HEADER_STDC
36 + AC_CHECK_HEADERS([stdlib.h string.h math.h])
37 +--- spglib-1.9.0/src/Makefile.am
38 ++++ spglib-1.9.0/src/Makefile.am
39 +@@ -60,4 +60,6 @@
40 + version.h
41 +
42 + # libsymspg_la_LDFLAGS = -version-info 0:1:0
43 +-libsymspg_la_LIBADD = -lm
44 ++libsymspg_la_LIBADD = -lm @OPENMP_CFLAGS@
45 ++
46 ++AM_CFLAGS = @OPENMP_CFLAGS@
47
48 diff --git a/sci-libs/spglib/spglib-1.9.0.ebuild b/sci-libs/spglib/spglib-1.9.0.ebuild
49 new file mode 100644
50 index 0000000..1ebafac
51 --- /dev/null
52 +++ b/sci-libs/spglib/spglib-1.9.0.ebuild
53 @@ -0,0 +1,37 @@
54 +# Copyright 1999-2016 Gentoo Foundation
55 +# Distributed under the terms of the GNU General Public License v2
56 +# $Id$
57 +
58 +EAPI=6
59 +
60 +inherit autotools eutils versionator
61 +
62 +MY_PV=$(get_version_component_range 1-2 ${PV})
63 +
64 +DESCRIPTION="Spglib is a C library for finding and handling crystal symmetries"
65 +HOMEPAGE="http://spglib.sourceforge.net/"
66 +SRC_URI="http://downloads.sourceforge.net/project/${PN}/${PN}/${PN}-${MY_PV}/${P}.tar.gz"
67 +
68 +LICENSE="BSD"
69 +SLOT="0"
70 +KEYWORDS="~amd64"
71 +IUSE="openmp"
72 +
73 +PATCHES=(
74 + "${FILESDIR}/${P}-openmp.patch"
75 +)
76 +
77 +src_prepare() {
78 + default
79 + eautoreconf
80 +}
81 +
82 +src_configure() {
83 + econf --disable-static \
84 + $(use_enable openmp)
85 +}
86 +
87 +src_install() {
88 + default
89 + prune_libtool_files --all
90 +}