blob: e6a45780f369378e194c12022d9dc919e1ddbee3 (
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
40
41
42
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils flag-o-matic
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 ~amd64"
IUSE="doc"
SRC_URI="http://tph.tuwien.ac.at/~oemer/tgz/${P}.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 )"
DEPEND="media-libs/plotutils
sys-libs/ncurses
sys-libs/readline"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}/${P}"-gcc43.patch
"${FILESDIR}/${P}"-makefile.patch
)
src_prepare() {
epatch ${PATCHES[@]}
}
src_install() {
emake \
QCLDIR="${D}/usr/share/${PN}" \
QCLBIN="${D}/usr/bin" install
dodoc README CHANGES
if use doc; then
dodoc {structquprog,qcldoc,quprog}.pdf
fi
}
|