commit: 8e1c26dee1b315620a9b4623cf9431e4c8a5a019 Author: Jauhien Piatlicki <jauhien <AT> gentoo <DOT> org> AuthorDate: Mon Jun 2 17:08:17 2014 +0000 Commit: Jauhien Piatlicki <jauhien <AT> gentoo <DOT> org> CommitDate: Mon Jun 2 17:08:17 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=8e1c26de
sci-physics/qcl: version bump to 0.6.4 --- sci-physics/qcl/ChangeLog | 8 +++++- sci-physics/qcl/files/qcl-0.6.4-makefile.patch | 22 +++++++++++++++ sci-physics/qcl/qcl-0.6.4.ebuild | 38 ++++++++++++++++++++++++++ 3 files changed, 67 insertions(+), 1 deletion(-) diff --git a/sci-physics/qcl/ChangeLog b/sci-physics/qcl/ChangeLog index aa9b85b..587799c 100644 --- a/sci-physics/qcl/ChangeLog +++ b/sci-physics/qcl/ChangeLog @@ -1,7 +1,13 @@ # ChangeLog for sci-physics/qcl -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ +*qcl-0.6.4 (02 Jun 2014) + + 02 Jun 2014; Jauhien Piatlicki <jauh...@gentoo.org> +qcl-0.6.4.ebuild, + +files/qcl-0.6.4-makefile.patch: + version bump + *qcl-0.6.3-r1 (26 May 2010) 26 May 2010; Sébastien Fabbro <bicat...@gentoo.org> diff --git a/sci-physics/qcl/files/qcl-0.6.4-makefile.patch b/sci-physics/qcl/files/qcl-0.6.4-makefile.patch new file mode 100644 index 0000000..e73cee4 --- /dev/null +++ b/sci-physics/qcl/files/qcl-0.6.4-makefile.patch @@ -0,0 +1,22 @@ +--- Makefile ++++ Makefile +@@ -32,7 +32,7 @@ + + #DEBUG = -g -pg -DQCL_DEBUG -DQC_DEBUG + #DEBUG = -g -DQCL_DEBUG -DQC_DEBUG +-DEBUG = -O2 -g -DQCL_DEBUG -DQC_DEBUG ++DEBUG = -DQCL_DEBUG -DQC_DEBUG + #DEBUG = -O2 + + # Plotting support +@@ -81,8 +81,8 @@ + + #CXX = g++ + #CPP = $(CC) -E +-CXXFLAGS = -c $(ARCHOPT) $(DEBUG) $(PLOPT) $(RLOPT) $(IRQOPT) $(ENCOPT) -I$(QCDIR) -DDEF_INCLUDE_PATH="\"$(QCLDIR)\"" +-LDFLAGS = $(ARCHOPT) -L$(QCDIR) $(DEBUG) $(PLLIB) -lm -lfl -lqc $(RLLIB) ++CXXFLAGS += -c $(DEBUG) $(PLOPT) $(RLOPT) $(IRQOPT) $(ENCOPT) -I$(QCDIR) -DDEF_INCLUDE_PATH="\"$(QCLDIR)\"" ++LDFLAGS += -L$(QCDIR) $(PLLIB) -lm -lfl -lqc $(RLLIB) + + FILESCC = $(wildcard *.cc) + FILESH = $(wildcard *.h) diff --git a/sci-physics/qcl/qcl-0.6.4.ebuild b/sci-physics/qcl/qcl-0.6.4.ebuild new file mode 100644 index 0000000..9338be1 --- /dev/null +++ b/sci-physics/qcl/qcl-0.6.4.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit 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="~amd64 ~x86" +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}" + +src_prepare() { + epatch "${FILESDIR}/${PN}-0.6.3-gcc43.patch" "${FILESDIR}/${P}-makefile.patch" +} + +src_install() { + emake \ + QCLDIR="${D}/usr/share/${PN}" \ + QCLBIN="${D}/usr/bin" install + dodoc README CHANGES + if use doc; then + insinto /usr/share/doc/${PF} + doins "${DISTDIR}"/{structquprog,qcldoc,quprog}.pdf || die + fi +}