1 |
commit: 8e1c26dee1b315620a9b4623cf9431e4c8a5a019 |
2 |
Author: Jauhien Piatlicki <jauhien <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 2 17:08:17 2014 +0000 |
4 |
Commit: Jauhien Piatlicki <jauhien <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 2 17:08:17 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=8e1c26de |
7 |
|
8 |
sci-physics/qcl: version bump to 0.6.4 |
9 |
|
10 |
--- |
11 |
sci-physics/qcl/ChangeLog | 8 +++++- |
12 |
sci-physics/qcl/files/qcl-0.6.4-makefile.patch | 22 +++++++++++++++ |
13 |
sci-physics/qcl/qcl-0.6.4.ebuild | 38 ++++++++++++++++++++++++++ |
14 |
3 files changed, 67 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/sci-physics/qcl/ChangeLog b/sci-physics/qcl/ChangeLog |
17 |
index aa9b85b..587799c 100644 |
18 |
--- a/sci-physics/qcl/ChangeLog |
19 |
+++ b/sci-physics/qcl/ChangeLog |
20 |
@@ -1,7 +1,13 @@ |
21 |
# ChangeLog for sci-physics/qcl |
22 |
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
23 |
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
24 |
# $Header: $ |
25 |
|
26 |
+*qcl-0.6.4 (02 Jun 2014) |
27 |
+ |
28 |
+ 02 Jun 2014; Jauhien Piatlicki <jauhien@g.o> +qcl-0.6.4.ebuild, |
29 |
+ +files/qcl-0.6.4-makefile.patch: |
30 |
+ version bump |
31 |
+ |
32 |
*qcl-0.6.3-r1 (26 May 2010) |
33 |
|
34 |
26 May 2010; Sébastien Fabbro <bicatali@g.o> |
35 |
|
36 |
diff --git a/sci-physics/qcl/files/qcl-0.6.4-makefile.patch b/sci-physics/qcl/files/qcl-0.6.4-makefile.patch |
37 |
new file mode 100644 |
38 |
index 0000000..e73cee4 |
39 |
--- /dev/null |
40 |
+++ b/sci-physics/qcl/files/qcl-0.6.4-makefile.patch |
41 |
@@ -0,0 +1,22 @@ |
42 |
+--- Makefile |
43 |
++++ Makefile |
44 |
+@@ -32,7 +32,7 @@ |
45 |
+ |
46 |
+ #DEBUG = -g -pg -DQCL_DEBUG -DQC_DEBUG |
47 |
+ #DEBUG = -g -DQCL_DEBUG -DQC_DEBUG |
48 |
+-DEBUG = -O2 -g -DQCL_DEBUG -DQC_DEBUG |
49 |
++DEBUG = -DQCL_DEBUG -DQC_DEBUG |
50 |
+ #DEBUG = -O2 |
51 |
+ |
52 |
+ # Plotting support |
53 |
+@@ -81,8 +81,8 @@ |
54 |
+ |
55 |
+ #CXX = g++ |
56 |
+ #CPP = $(CC) -E |
57 |
+-CXXFLAGS = -c $(ARCHOPT) $(DEBUG) $(PLOPT) $(RLOPT) $(IRQOPT) $(ENCOPT) -I$(QCDIR) -DDEF_INCLUDE_PATH="\"$(QCLDIR)\"" |
58 |
+-LDFLAGS = $(ARCHOPT) -L$(QCDIR) $(DEBUG) $(PLLIB) -lm -lfl -lqc $(RLLIB) |
59 |
++CXXFLAGS += -c $(DEBUG) $(PLOPT) $(RLOPT) $(IRQOPT) $(ENCOPT) -I$(QCDIR) -DDEF_INCLUDE_PATH="\"$(QCLDIR)\"" |
60 |
++LDFLAGS += -L$(QCDIR) $(PLLIB) -lm -lfl -lqc $(RLLIB) |
61 |
+ |
62 |
+ FILESCC = $(wildcard *.cc) |
63 |
+ FILESH = $(wildcard *.h) |
64 |
|
65 |
diff --git a/sci-physics/qcl/qcl-0.6.4.ebuild b/sci-physics/qcl/qcl-0.6.4.ebuild |
66 |
new file mode 100644 |
67 |
index 0000000..9338be1 |
68 |
--- /dev/null |
69 |
+++ b/sci-physics/qcl/qcl-0.6.4.ebuild |
70 |
@@ -0,0 +1,38 @@ |
71 |
+# Copyright 1999-2014 Gentoo Foundation |
72 |
+# Distributed under the terms of the GNU General Public License v2 |
73 |
+# $Header: $ |
74 |
+ |
75 |
+EAPI=5 |
76 |
+ |
77 |
+inherit eutils |
78 |
+ |
79 |
+DESCRIPTION="Quantum Computation Language with an emulator of a quantum computer" |
80 |
+HOMEPAGE="http://tph.tuwien.ac.at/~oemer/qcl.html" |
81 |
+SLOT="0" |
82 |
+LICENSE="GPL-2" |
83 |
+KEYWORDS="~amd64 ~x86" |
84 |
+IUSE="doc" |
85 |
+ |
86 |
+SRC_URI="http://tph.tuwien.ac.at/~oemer/tgz/${P}.tgz |
87 |
+ doc? ( http://tph.tuwien.ac.at/~oemer/doc/structquprog.pdf |
88 |
+ http://tph.tuwien.ac.at/~oemer/doc/qcldoc.pdf |
89 |
+ http://tph.tuwien.ac.at/~oemer/doc/quprog.pdf )" |
90 |
+DEPEND="media-libs/plotutils |
91 |
+ sys-libs/ncurses |
92 |
+ sys-libs/readline" |
93 |
+RDEPEND="${DEPEND}" |
94 |
+ |
95 |
+src_prepare() { |
96 |
+ epatch "${FILESDIR}/${PN}-0.6.3-gcc43.patch" "${FILESDIR}/${P}-makefile.patch" |
97 |
+} |
98 |
+ |
99 |
+src_install() { |
100 |
+ emake \ |
101 |
+ QCLDIR="${D}/usr/share/${PN}" \ |
102 |
+ QCLBIN="${D}/usr/bin" install |
103 |
+ dodoc README CHANGES |
104 |
+ if use doc; then |
105 |
+ insinto /usr/share/doc/${PF} |
106 |
+ doins "${DISTDIR}"/{structquprog,qcldoc,quprog}.pdf || die |
107 |
+ fi |
108 |
+} |