diff options
Diffstat (limited to 'sci-physics/qcl/qcl-0.6.3.ebuild')
-rw-r--r-- | sci-physics/qcl/qcl-0.6.3.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/sci-physics/qcl/qcl-0.6.3.ebuild b/sci-physics/qcl/qcl-0.6.3.ebuild new file mode 100644 index 000000000..e4c9d5619 --- /dev/null +++ b/sci-physics/qcl/qcl-0.6.3.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2007 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 ~amd64" +IUSE="doc" +RESTRICT="nomirror" +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 )" +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() { + emake 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 +} |