aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-physics/qcl/qcl-0.6.3-r1.ebuild')
-rw-r--r--sci-physics/qcl/qcl-0.6.3-r1.ebuild19
1 files changed, 11 insertions, 8 deletions
diff --git a/sci-physics/qcl/qcl-0.6.3-r1.ebuild b/sci-physics/qcl/qcl-0.6.3-r1.ebuild
index 6419134e9..c67baa64b 100644
--- a/sci-physics/qcl/qcl-0.6.3-r1.ebuild
+++ b/sci-physics/qcl/qcl-0.6.3-r1.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
-EAPI=2
+EAPI=5
+
inherit eutils flag-o-matic
DESCRIPTION="Quantum Computation Language with an emulator of a quantum computer"
@@ -21,19 +22,21 @@ DEPEND="media-libs/plotutils
sys-libs/readline"
RDEPEND="${DEPEND}"
+PATCHES=(
+ "${FILESDIR}/${P}"-gcc43.patch
+ "${FILESDIR}/${P}"-makefile.patch
+)
+
src_prepare() {
- epatch "${FILESDIR}"/${P}-gcc43.patch
- epatch "${FILESDIR}"/${P}-makefile.patch
+ epatch ${PATCHES[@]}
}
src_install() {
emake \
QCLDIR="${D}/usr/share/${PN}" \
- QCLBIN="${D}/usr/bin" install \
- || die "emake install failed"
+ QCLBIN="${D}/usr/bin" install
dodoc README CHANGES
if use doc; then
- insinto /usr/share/doc/${PF}
- doins "${DISTDIR}"/{structquprog,qcldoc,quprog}.pdf || die
+ dodoc {structquprog,qcldoc,quprog}.pdf
fi
}