summaryrefslogtreecommitdiff
blob: cac77ee13388797fa6416a92c4c244ebe0747b32 (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
35
36
37
38
39
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=2

DESCRIPTION="C library for quantum computing and quantum simulation"
HOMEPAGE="http://www.libquantum.de/"
SRC_URI="http://www.libquantum.de/files/${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~sparc ~x86"
IUSE="+lapack examples profile"

DEPEND="lapack? ( virtual/lapack )"
RDEPEND="${DEPEND}"

src_configure() {
	econf \
		$(use_with lapack) \
		$(use_enable profile profiling)
}

src_compile() {
	emake || die
	emake quobtools || die
}

src_install() {
	emake DESTDIR="${D}" install || die
	emake DESTDIR="${D}" quobtools_install || die
	dodoc CHANGES || die
	if use examples ; then
		docinto examples/
		newdoc INSTALL INSTALL.how_to_compile_own_stuff || die
		dodoc shor.c grover.c || die
	fi
}