1 |
commit: 2f160fdf8f3accbd270a8e853dd35d7f9d6d8592 |
2 |
Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 8 04:47:31 2013 +0000 |
4 |
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 8 04:47:31 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=2f160fdf |
7 |
|
8 |
sci-libs/lemon: Version bump |
9 |
|
10 |
Package-Manager: portage-2.2.7-prefix |
11 |
RepoMan-Options: --force |
12 |
|
13 |
--- |
14 |
sci-libs/lemon/ChangeLog | 6 +++ |
15 |
sci-libs/lemon/files/lemon-1.2.3-gcc47.patch | 59 ---------------------- |
16 |
sci-libs/lemon/lemon-1.2.3.ebuild | 39 --------------- |
17 |
sci-libs/lemon/lemon-1.3.ebuild | 75 ++++++++++++++++++++++++++++ |
18 |
sci-libs/lemon/metadata.xml | 9 ++-- |
19 |
5 files changed, 87 insertions(+), 101 deletions(-) |
20 |
|
21 |
diff --git a/sci-libs/lemon/ChangeLog b/sci-libs/lemon/ChangeLog |
22 |
index e49c34a..7499141 100644 |
23 |
--- a/sci-libs/lemon/ChangeLog |
24 |
+++ b/sci-libs/lemon/ChangeLog |
25 |
@@ -2,6 +2,12 @@ |
26 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
27 |
# $Header: $ |
28 |
|
29 |
+*lemon-1.3 (08 Dec 2013) |
30 |
+ |
31 |
+ 08 Dec 2013; Sébastien Fabbro <bicatali@g.o> +lemon-1.3.ebuild, |
32 |
+ -files/lemon-1.2.3-gcc47.patch, -lemon-1.2.3.ebuild, metadata.xml: |
33 |
+ sci-libs/lemon: Version bump |
34 |
+ |
35 |
10 Jul 2013; Sébastien Fabbro <bicatali@g.o> |
36 |
+files/lemon-1.2.3-gcc47.patch, lemon-1.2.3.ebuild, metadata.xml: |
37 |
sci-libs/lemon: Add patch for gcc-4.7. Install docs properly. Add coin and |
38 |
|
39 |
diff --git a/sci-libs/lemon/files/lemon-1.2.3-gcc47.patch b/sci-libs/lemon/files/lemon-1.2.3-gcc47.patch |
40 |
deleted file mode 100644 |
41 |
index e165e32..0000000 |
42 |
--- a/sci-libs/lemon/files/lemon-1.2.3-gcc47.patch |
43 |
+++ /dev/null |
44 |
@@ -1,59 +0,0 @@ |
45 |
-diff -Nur lemon-1.2.3.orig/lemon/adaptors.h lemon-1.2.3/lemon/adaptors.h |
46 |
---- lemon-1.2.3.orig/lemon/adaptors.h 2013-07-10 09:28:46.293503981 -0700 |
47 |
-+++ lemon-1.2.3/lemon/adaptors.h 2013-07-10 09:30:05.968962785 -0700 |
48 |
-@@ -1371,7 +1371,7 @@ |
49 |
- /// Creates a subgraph for the given graph with the given node |
50 |
- /// and edge filter maps. |
51 |
- SubGraph(GR& graph, NF& node_filter, EF& edge_filter) { |
52 |
-- initialize(graph, node_filter, edge_filter); |
53 |
-+ this->initialize(graph, node_filter, edge_filter); |
54 |
- } |
55 |
- |
56 |
- /// \brief Sets the status of the given node |
57 |
-@@ -2277,7 +2277,7 @@ |
58 |
- /// |
59 |
- /// Creates an undirected graph from the given digraph. |
60 |
- Undirector(DGR& digraph) { |
61 |
-- initialize(digraph); |
62 |
-+ this->initialize(digraph); |
63 |
- } |
64 |
- |
65 |
- /// \brief Arc map combined from two original arc maps |
66 |
-diff -Nur lemon-1.2.3.orig/lemon/bits/edge_set_extender.h lemon-1.2.3/lemon/bits/edge_set_extender.h |
67 |
---- lemon-1.2.3.orig/lemon/bits/edge_set_extender.h 2013-07-10 09:28:46.293503981 -0700 |
68 |
-+++ lemon-1.2.3/lemon/bits/edge_set_extender.h 2013-07-10 09:32:23.647752824 -0700 |
69 |
-@@ -523,13 +523,13 @@ |
70 |
- // |
71 |
- // Returns the base node of the iterator |
72 |
- Node baseNode(const IncEdgeIt &e) const { |
73 |
-- return e.direction ? u(e) : v(e); |
74 |
-+ return e.direction ? this->u(e) : this->v(e); |
75 |
- } |
76 |
- // Running node of the iterator |
77 |
- // |
78 |
- // Returns the running node of the iterator |
79 |
- Node runningNode(const IncEdgeIt &e) const { |
80 |
-- return e.direction ? v(e) : u(e); |
81 |
-+ return e.direction ? this->v(e) : this->u(e); |
82 |
- } |
83 |
- |
84 |
- |
85 |
-diff -Nur lemon-1.2.3.orig/lemon/bits/graph_extender.h lemon-1.2.3/lemon/bits/graph_extender.h |
86 |
---- lemon-1.2.3.orig/lemon/bits/graph_extender.h 2013-07-10 09:28:46.293503981 -0700 |
87 |
-+++ lemon-1.2.3/lemon/bits/graph_extender.h 2013-07-10 09:30:45.954190124 -0700 |
88 |
-@@ -587,13 +587,13 @@ |
89 |
- // |
90 |
- // Returns the base node of the iterator |
91 |
- Node baseNode(const IncEdgeIt &edge) const { |
92 |
-- return edge._direction ? u(edge) : v(edge); |
93 |
-+ return edge._direction ? this->u(edge) : this->v(edge); |
94 |
- } |
95 |
- // Running node of the iterator |
96 |
- // |
97 |
- // Returns the running node of the iterator |
98 |
- Node runningNode(const IncEdgeIt &edge) const { |
99 |
-- return edge._direction ? v(edge) : u(edge); |
100 |
-+ return edge._direction ? this->v(edge) : this->u(edge); |
101 |
- } |
102 |
- |
103 |
- // Mappable extension |
104 |
|
105 |
diff --git a/sci-libs/lemon/lemon-1.2.3.ebuild b/sci-libs/lemon/lemon-1.2.3.ebuild |
106 |
deleted file mode 100644 |
107 |
index 0e46da6..0000000 |
108 |
--- a/sci-libs/lemon/lemon-1.2.3.ebuild |
109 |
+++ /dev/null |
110 |
@@ -1,39 +0,0 @@ |
111 |
-# Copyright 1999-2013 Gentoo Foundation |
112 |
-# Distributed under the terms of the GNU General Public License v2 |
113 |
-# $Header: $ |
114 |
- |
115 |
-EAPI=5 |
116 |
- |
117 |
-AUTOTOOLS_IN_SOURCE_BUILD=1 |
118 |
-inherit autotools-utils eutils |
119 |
- |
120 |
-DESCRIPTION="C++ template static library of common data structures and algorithms" |
121 |
-HOMEPAGE="https://lemon.cs.elte.hu/trac/lemon/" |
122 |
-SRC_URI="http://lemon.cs.elte.hu/pub/sources/${P}.tar.gz" |
123 |
- |
124 |
-LICENSE="Boost-1.0" |
125 |
-SLOT="0" |
126 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
127 |
-IUSE="coin doc static-libs test tools" |
128 |
- |
129 |
-RDEPEND=" |
130 |
- sci-mathematics/glpk |
131 |
- coin? ( sci-libs/coinor-cbc sci-libs/coinor-clp )" |
132 |
-DEPEND="${RDEPEND} |
133 |
- test? ( dev-util/valgrind )" |
134 |
- |
135 |
-PATCHES=( "${FILESDIR}"/${P}-gcc47.patch ) |
136 |
- |
137 |
-src_configure() { |
138 |
- # $(use_enable test valgrind) |
139 |
- local myeconfargs=( |
140 |
- $(use_enable tools) |
141 |
- $(use_with coin) |
142 |
- ) |
143 |
- autotools-utils_src_configure |
144 |
-} |
145 |
- |
146 |
-src_install() { |
147 |
- autotools-utils_src_install |
148 |
- use doc && emake DESTDIR="${D}" install-html |
149 |
-} |
150 |
|
151 |
diff --git a/sci-libs/lemon/lemon-1.3.ebuild b/sci-libs/lemon/lemon-1.3.ebuild |
152 |
new file mode 100644 |
153 |
index 0000000..f599106 |
154 |
--- /dev/null |
155 |
+++ b/sci-libs/lemon/lemon-1.3.ebuild |
156 |
@@ -0,0 +1,75 @@ |
157 |
+# Copyright 1999-2013 Gentoo Foundation |
158 |
+# Distributed under the terms of the GNU General Public License v2 |
159 |
+# $Header: $ |
160 |
+ |
161 |
+EAPI=5 |
162 |
+ |
163 |
+inherit cmake-utils |
164 |
+ |
165 |
+DESCRIPTION="C++ template static library of common data structures and algorithms" |
166 |
+HOMEPAGE="https://lemon.cs.elte.hu/trac/lemon/" |
167 |
+SRC_URI="http://lemon.cs.elte.hu/pub/sources/${P}.tar.gz" |
168 |
+ |
169 |
+LICENSE="Boost-1.0" |
170 |
+SLOT="0" |
171 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
172 |
+IUSE="+coin doc glpk static-libs test tools" |
173 |
+ |
174 |
+RDEPEND=" |
175 |
+ glpk? ( sci-mathematics/glpk ) |
176 |
+ coin? ( sci-libs/coinor-cbc sci-libs/coinor-clp )" |
177 |
+DEPEND="${RDEPEND} |
178 |
+ doc? ( |
179 |
+ app-text/ghostscript-gpl |
180 |
+ dev-libs/mathjax |
181 |
+ app-doc/doxygen )" |
182 |
+ |
183 |
+REQUIRED_USE="|| ( coin glpk )" |
184 |
+ |
185 |
+src_prepare() { |
186 |
+ sed -i \ |
187 |
+ -e '/ADD_SUBDIRECTORY(demo)/d' \ |
188 |
+ CMakeLists.txt || die |
189 |
+ |
190 |
+ use doc || sed -i \ |
191 |
+ -e '/ADD_SUBDIRECTORY(doc)/d' \ |
192 |
+ CMakeLists.txt || die |
193 |
+ |
194 |
+ use tools || sed -i \ |
195 |
+ -e '/ADD_SUBDIRECTORY(tools)/d' \ |
196 |
+ CMakeLists.txt || die |
197 |
+ |
198 |
+ use test || sed -i \ |
199 |
+ -e '/ADD_SUBDIRECTORY(test)/d' \ |
200 |
+ CMakeLists.txt || die |
201 |
+ |
202 |
+ for t in \ |
203 |
+ max_clique \ |
204 |
+ max_flow \ |
205 |
+ graph_utils \ |
206 |
+ random \ |
207 |
+ time_measure \ |
208 |
+ tsp; do |
209 |
+ sed -i -e "/${t}_test/d" test/CMakeLists.txt || die |
210 |
+ done |
211 |
+ sed -i \ |
212 |
+ -e '/ADD_TEST(lp_test lp_test)/d' \ |
213 |
+ -e '/ADD_DEPENDENCIES(check lp_test)/d' \ |
214 |
+ test/CMakeLists.txt || die |
215 |
+} |
216 |
+ |
217 |
+src_configure() { |
218 |
+ local mycmakeargs=( |
219 |
+ -DBUILD_SHARED_LIBS=TRUE |
220 |
+ -DLEMON_DOC_MATHJAX_RELPATH="${EPREFIX}/usr/share/mathjax" |
221 |
+ $(cmake-utils_use doc LEMON_DOC_SOURCE_BROWSER) |
222 |
+ $(cmake-utils_use doc LEMON_DOC_USE_MATHJAX) |
223 |
+ $(cmake-utils_use coin LEMON_ENABLE_COIN) |
224 |
+ $(cmake-utils_use glpk LEMON_ENABLE_GLPK) |
225 |
+ ) |
226 |
+ cmake-utils_src_configure |
227 |
+} |
228 |
+ |
229 |
+src_test() { |
230 |
+ emake -C "${BUILD_DIR}" check |
231 |
+} |
232 |
|
233 |
diff --git a/sci-libs/lemon/metadata.xml b/sci-libs/lemon/metadata.xml |
234 |
index ff6ff78..3cea904 100644 |
235 |
--- a/sci-libs/lemon/metadata.xml |
236 |
+++ b/sci-libs/lemon/metadata.xml |
237 |
@@ -1,7 +1,7 @@ |
238 |
<?xml version="1.0" encoding="UTF-8"?> |
239 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
240 |
<pkgmetadata> |
241 |
-<herd>sci-biology</herd> |
242 |
+<herd>sci</herd> |
243 |
<maintainer> |
244 |
<email>mmokrejs@×××××××××××××××.cz</email> |
245 |
<name>Martin Mokrejs</name> |
246 |
@@ -14,7 +14,10 @@ |
247 |
networks. |
248 |
</longdescription> |
249 |
<use> |
250 |
- <flag name="coin">Enable the CoinOR-Clp and CoinOR-CBC graph algorithms</flag> |
251 |
- <flag name="tools">Build additional tools</flag> |
252 |
+ <flag name="coin">Enable the <pkg>coinor-clp</pkg> and |
253 |
+ <pkg>coinor-cbc</pkg> graph algorithms</flag> |
254 |
+ <flag name='glpk'>Enable GNU Linear Programming Kit |
255 |
+ <pkg>sci-mathematics/glpk</pkg> support</flag> |
256 |
+ <flag name="tools">Build additional tools</flag> |
257 |
</use> |
258 |
</pkgmetadata> |