aboutsummaryrefslogtreecommitdiff
blob: a24974dfaf0c1ad02c00cac874af91dcd3b819af (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-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit flag-o-matic eutils

DESCRIPTION="Quantum Computation Language with an emulator of a quantum computer"
HOMEPAGE="http://tph.tuwien.ac.at/~oemer/qcl.html"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~x86"
IUSE="doc"
RESTRICT="nomirror"
SRC_URI="http://tph.tuwien.ac.at/~oemer/tgz/qcl-0.6.2.tgz
	doc? ( http://tph.tuwien.ac.at/~oemer/doc/structquprog.pdf
		http://tph.tuwien.ac.at/~oemer/doc/qcldoc.pdf
		http://tph.tuwien.ac.at/~oemer/doc/quprog.pdf )"
DEPENDS="media-libs/plotutils"

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch "${FILESDIR}/qcl-0.6.2.patch"
}

src_compile() {
	strip-flags
	emake QCLDIR="/usr/share/${PN}" OPT="${CXXFLAGS}" || die "emake failed"
}

src_install() {
	make QCLDIR="${D}/usr/share/${PN}" QCLBIN="${D}/usr/bin" install \
		|| die "install failed"
	dodoc README CHANGES
	if use doc ; then
		insinto "/usr/share/doc/${PF}"
		cd "${DISTDIR}"
		doins structquprog.pdf qcldoc.pdf quprog.pdf
	fi
}