aboutsummaryrefslogtreecommitdiff
blob: e21553a462f6d7e0cdd9e370d95ad99a26f11eab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

AUTOTOOLS_AUTORECONF=1

inherit autotools-utils 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"

DEPEND=""
RDEPEND="${DEPEND}"

PATCHES=( "${FILESDIR}/${PN}-openmp.patch" )

src_configure() {
	local myconf=$(use_enable openmp)
	econf ${myconf}
}

src_compile() {
	default
}