1 |
commit: a1ef8915f75cbbcb838d2ec1c27263debc74a984 |
2 |
Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 4 01:05:02 2017 +0000 |
4 |
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 7 00:17:16 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1ef8915 |
7 |
|
8 |
sci-libs/adolc: version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.4, Repoman-2.3.2 |
11 |
|
12 |
sci-libs/adolc/Manifest | 1 + |
13 |
sci-libs/adolc/adolc-2.6.2.ebuild | 53 ++++++++ |
14 |
.../files/adolc-2.5.0-pkgconfig-no-ldflags.patch | 4 +- |
15 |
sci-libs/adolc/files/adolc-2.6.2-dash.patch | 146 +++++++++++++++++++++ |
16 |
4 files changed, 202 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/sci-libs/adolc/Manifest b/sci-libs/adolc/Manifest |
19 |
index 39489cbe99b..1b3eb2eb743 100644 |
20 |
--- a/sci-libs/adolc/Manifest |
21 |
+++ b/sci-libs/adolc/Manifest |
22 |
@@ -1,3 +1,4 @@ |
23 |
DIST ADOL-C-2.4.1.tgz 2210414 SHA256 05bf946cc1764e2b3fa7e708ccc4303f289699d9f36b9d525f6a9a6129b4d578 SHA512 5e5135ca587d159510bf77338fdff3d324f4d32c4ec6f8cf64ddc92253b427b8ee26a30bc1d83fe18121bbfdc7454c3536f58849c0c335e1b240e39d46acdccc WHIRLPOOL cd66a895dc3cb1f6f4f705a9fbce5a93dcb6856b6288704c3d3420be7f90e57296acd3fb2ea897ba5362e706429ec56b070bf0baa7094edcbf46c92d535bc492 |
24 |
DIST ADOL-C-2.5.0.tgz 2313753 SHA256 908753153e0eca31752222150977eabd8ab97c4ab8fcd19f92667aba69a048a6 SHA512 e680565ed911bc15165c27281428c1daf35e95292dc3abc64aab6633068ec0d7e7ae626e692e0574b2c696a0c4aec2c79b2b02c3760acd2bd1b579a4c42d9585 WHIRLPOOL c0301c9a8f1357aa06be8e6a53bee9825a5d56cd31a2734862bcfd1f7c944935a4cd2c8c2ed49028493cb7c998008c9853b2d4bd7f6e0519ed353bbd3b7d0a8c |
25 |
DIST ADOL-C-2.5.2.tgz 2320010 SHA256 2fa514d9799989d6379738c2bcf75070d9834e4d227eb32a5b278840893b2af9 SHA512 3d2ef6e42504de9e9c1b5777afda8ece83fa61ab7c22fd471dce6bcb74af0a789d37cd2a6c9c9ead13f6c78e07ba985e7d14e79bcdf35fa56f8e73a2411905b5 WHIRLPOOL 55043cabe44b9913a7fba73ddaf0d64caa234d7002582d78dd9cfc05510ce3fbcb6dd3d1c40a2d6425f5ee1b7cc986d525d065671191096fbb303e122089c954 |
26 |
+DIST ADOL-C-2.6.2.tgz 2413458 SHA256 f6326e7ba994d02074816132d4461915221069267c31862b31fab7020965c658 SHA512 7825b57a06ea146b5095f3345592566887622e4a8b93bf8ef946083486652b5ecd6a44b7b5f1c7a5b5c45cfdb14d78ab2dd5f4d228114226046e99a46257f5be WHIRLPOOL 24a2013e99b2fcbab348f2051a5592b5040ccd0349801838397a60833ba3baf36a21f125234bb8a721dcda7e504f3f4e79e792bdf8ad4965dae6158ccbef0054 |
27 |
|
28 |
diff --git a/sci-libs/adolc/adolc-2.6.2.ebuild b/sci-libs/adolc/adolc-2.6.2.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..5ef274ec40a |
31 |
--- /dev/null |
32 |
+++ b/sci-libs/adolc/adolc-2.6.2.ebuild |
33 |
@@ -0,0 +1,53 @@ |
34 |
+# Copyright 1999-2017 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=6 |
38 |
+ |
39 |
+inherit autotools toolchain-funcs eutils |
40 |
+ |
41 |
+MYPN=ADOL-C |
42 |
+ |
43 |
+DESCRIPTION="Automatic differentiation system for C/C++" |
44 |
+HOMEPAGE="https://projects.coin-or.org/ADOL-C/" |
45 |
+SRC_URI="http://www.coin-or.org/download/source/${MYPN}/${MYPN}-${PV}.tgz" |
46 |
+ |
47 |
+LICENSE="|| ( EPL-1.0 GPL-2 )" |
48 |
+SLOT="0/2" |
49 |
+KEYWORDS="~alpha ~amd64 ~x86 ~amd64-linux ~x86-linux" |
50 |
+IUSE="mpi sparse static-libs" |
51 |
+ |
52 |
+RDEPEND=" |
53 |
+ mpi? ( sys-cluster/ampi:0= ) |
54 |
+ sparse? ( sci-libs/colpack:0= ) |
55 |
+" |
56 |
+DEPEND="${RDEPEND}" |
57 |
+ |
58 |
+S="${WORKDIR}/${MYPN}-${PV}" |
59 |
+ |
60 |
+PATCHES=( |
61 |
+ "${FILESDIR}"/${PN}-2.5.0-no-colpack.patch |
62 |
+ "${FILESDIR}"/${PN}-2.5.0-pkgconfig-no-ldflags.patch |
63 |
+ "${FILESDIR}"/${PN}-2.6.2-dash.patch |
64 |
+) |
65 |
+ |
66 |
+src_prepare() { |
67 |
+ default |
68 |
+ eautoreconf |
69 |
+} |
70 |
+ |
71 |
+src_configure() { |
72 |
+ econf \ |
73 |
+ $(use_enable static-libs static) \ |
74 |
+ $(use_enable mpi ampi) \ |
75 |
+ $(use_enable sparse) \ |
76 |
+ $(use_with sparse colpack "${EPREFIX}"/usr) |
77 |
+} |
78 |
+ |
79 |
+src_test() { |
80 |
+ emake test |
81 |
+} |
82 |
+ |
83 |
+src_install() { |
84 |
+ default |
85 |
+ use static-libs || prune_libtool_files --all |
86 |
+} |
87 |
|
88 |
diff --git a/sci-libs/adolc/files/adolc-2.5.0-pkgconfig-no-ldflags.patch b/sci-libs/adolc/files/adolc-2.5.0-pkgconfig-no-ldflags.patch |
89 |
index 4a6296e2db7..258f835ca9e 100644 |
90 |
--- a/sci-libs/adolc/files/adolc-2.5.0-pkgconfig-no-ldflags.patch |
91 |
+++ b/sci-libs/adolc/files/adolc-2.5.0-pkgconfig-no-ldflags.patch |
92 |
@@ -1,5 +1,5 @@ |
93 |
---- adolclib.pc.in.orig 2014-05-21 09:09:10.060824555 -0700 |
94 |
-+++ adolclib.pc.in 2014-05-21 09:09:10.060824555 -0700 |
95 |
+--- a/adolclib.pc.in 2014-05-21 09:09:10.060824555 -0700 |
96 |
++++ b/adolclib.pc.in 2014-05-21 09:09:10.060824555 -0700 |
97 |
@@ -7,5 +7,5 @@ |
98 |
Version: @PACKAGE_VERSION@ |
99 |
Description: Algorithmic Differentiation Library for C/C++ |
100 |
|
101 |
diff --git a/sci-libs/adolc/files/adolc-2.6.2-dash.patch b/sci-libs/adolc/files/adolc-2.6.2-dash.patch |
102 |
new file mode 100644 |
103 |
index 00000000000..b8d4fe5ad64 |
104 |
--- /dev/null |
105 |
+++ b/sci-libs/adolc/files/adolc-2.6.2-dash.patch |
106 |
@@ -0,0 +1,146 @@ |
107 |
+--- a/configure.ac 2016-08-31 12:49:35.000000000 +0000 |
108 |
++++ b/configure.ac 2017-03-04 00:58:02.354372332 +0000 |
109 |
+@@ -29,12 +29,12 @@ |
110 |
+ |
111 |
+ adolclib=adolc |
112 |
+ |
113 |
+-if test "x$CFLAGS" == x ; then |
114 |
++if test "x$CFLAGS" = x ; then |
115 |
+ ac_shell_cflags="not_set" |
116 |
+ else |
117 |
+ ac_shell_cflags="$CFLAGS" |
118 |
+ fi |
119 |
+-if test "x$CXXFLAGS" == x ; then |
120 |
++if test "x$CXXFLAGS" = x ; then |
121 |
+ ac_shell_cxxflags="not_set" |
122 |
+ else |
123 |
+ ac_shell_cxxflags="$CXXFLAGS" |
124 |
+@@ -231,12 +231,12 @@ |
125 |
+ AC_MSG_RESULT(no) |
126 |
+ ]) |
127 |
+ |
128 |
+-if test x$adolc_harddebug == xyes ; then |
129 |
++if test x$adolc_harddebug = xyes ; then |
130 |
+ adolc_debug=yes |
131 |
+ AC_DEFINE(ADOLC_HARDDEBUG,1,[ADOL-C hard debug mode]) |
132 |
+ fi |
133 |
+ |
134 |
+-if test x$adolc_debug == xyes ; then |
135 |
++if test x$adolc_debug = xyes ; then |
136 |
+ AC_DEFINE(ADOLC_DEBUG,1,[ADOL-C debug mode]) |
137 |
+ fi |
138 |
+ |
139 |
+@@ -254,7 +254,7 @@ |
140 |
+ AC_MSG_RESULT(yes) |
141 |
+ ]) |
142 |
+ |
143 |
+-if test x$adolc_stdczero == xyes; then |
144 |
++if test x$adolc_stdczero = xyes; then |
145 |
+ AC_DEFINE(ADOLC_ADOUBLE_STDCZERO,1,[ADOL-C adouble zeroing mode]) |
146 |
+ fi |
147 |
+ |
148 |
+@@ -271,7 +271,7 @@ |
149 |
+ AC_MSG_RESULT(no) |
150 |
+ ]) |
151 |
+ |
152 |
+-if test x$adolc_late_init == xyes; then |
153 |
++if test x$adolc_late_init = xyes; then |
154 |
+ AC_DEFINE(ADOLC_ADOUBLE_LATEINIT,1,[ADOL-C adouble late initialization mode]) |
155 |
+ fi |
156 |
+ |
157 |
+@@ -288,7 +288,7 @@ |
158 |
+ AC_MSG_RESULT(no) |
159 |
+ ]) |
160 |
+ |
161 |
+-if test x$adolc_tserrno == xyes ; then |
162 |
++if test x$adolc_tserrno = xyes ; then |
163 |
+ AC_DEFINE(ADOLC_THREADSAVE_ERRNO,1,[ADOL-C thread save errno mode]) |
164 |
+ fi |
165 |
+ |
166 |
+@@ -376,8 +376,8 @@ |
167 |
+ [AS_HELP_STRING([--with-cflags=FLAGS], |
168 |
+ [use CFLAGS=FLAGS (default: -O2)])], |
169 |
+ [ac_adolc_cflags="$withval" |
170 |
+- if test x${adolc_debug} == xyes || |
171 |
+- test x${adolc_harddebug} == xyes ; then |
172 |
++ if test "x${adolc_debug}" = xyes || |
173 |
++ test "x${adolc_harddebug}" = xyes ; then |
174 |
+ ac_adolc_cflags="$ac_adolc_cflags -g -O0" |
175 |
+ fi |
176 |
+ ac_adolc_cflags="$ac_adolc_cflags $ac_adolc_openmpflag" |
177 |
+@@ -385,8 +385,8 @@ |
178 |
+ AC_MSG_RESULT($ac_adolc_cflags)], |
179 |
+ [if test "$ac_shell_cflags" = "not_set"; then |
180 |
+ ac_adolc_cflags="-O2" |
181 |
+- if test x${adolc_debug} == xyes || |
182 |
+- test x${adolc_harddebug} == xyes ; then |
183 |
++ if test "x${adolc_debug}" = xyes || |
184 |
++ test "x${adolc_harddebug}" = xyes ; then |
185 |
+ ac_adolc_cflags="-g -O0 -Wall -ansi" |
186 |
+ fi |
187 |
+ else |
188 |
+@@ -402,8 +402,8 @@ |
189 |
+ [AS_HELP_STRING([--with-cxxflags=FLAGS], |
190 |
+ [use CXXFLAGS=FLAGS (default: -O2)])], |
191 |
+ [ac_adolc_cxxflags="$withval" |
192 |
+- if test x${adolc_debug} == xyes || |
193 |
+- test x${adolc_harddebug} == xyes ; then |
194 |
++ if test x${adolc_debug} = xyes || |
195 |
++ test x${adolc_harddebug} = xyes ; then |
196 |
+ ac_adolc_cxxflags="$ac_adolc_cxxflags -g -O0" |
197 |
+ fi |
198 |
+ ac_adolc_cxxflags="$ac_adolc_cxxflags $ac_adolc_openmpflag" |
199 |
+@@ -411,8 +411,8 @@ |
200 |
+ AC_MSG_RESULT($ac_adolc_cxxflags)], |
201 |
+ [if test "$ac_shell_cxxflags" = "not_set"; then |
202 |
+ ac_adolc_cxxflags="-O2" |
203 |
+- if test x${adolc_debug} == xyes || |
204 |
+- test x${adolc_harddebug} == xyes ; then |
205 |
++ if test x${adolc_debug} = xyes || |
206 |
++ test x${adolc_harddebug} = xyes ; then |
207 |
+ ac_adolc_cxxflags="-g -O0 -Wall" |
208 |
+ fi |
209 |
+ else |
210 |
+@@ -445,7 +445,7 @@ |
211 |
+ ]) |
212 |
+ AC_MSG_RESULT($tapedoc_values) |
213 |
+ |
214 |
+-if test x$tapedoc_values == xyes; then |
215 |
++if test x$tapedoc_values = xyes; then |
216 |
+ AC_DEFINE(ADOLC_TAPE_DOC_VALUES,1,[ADOL-C tape_doc routine computes values]) |
217 |
+ fi |
218 |
+ |
219 |
+@@ -614,7 +614,7 @@ |
220 |
+ break |
221 |
+ fi |
222 |
+ done |
223 |
+-if test "x${pdir}" == "x/" ; then |
224 |
++if test "x${pdir}" = "x/" ; then |
225 |
+ writable=false |
226 |
+ fi |
227 |
+ if ! ${writable} ; then |
228 |
+@@ -626,15 +626,6 @@ |
229 |
+ warn=true |
230 |
+ fi |
231 |
+ |
232 |
+-case ${prefix} in |
233 |
+- ${HOME}|${HOME}/*) |
234 |
+-if $warn ; then |
235 |
+- for (( i=5; i>0; i-- )); do |
236 |
+- echo -ne "\rPlease read the above messages carefully, continuing in ${i} seconds" |
237 |
+- sleep 1 |
238 |
+- done |
239 |
+- echo -e "\rPlease read the above messages carefully " |
240 |
+-fi |
241 |
+ echo \ |
242 |
+ " |
243 |
+ ***************************************************************************** |
244 |
+@@ -660,8 +651,6 @@ |
245 |
+ |
246 |
+ ***************************************************************************** |
247 |
+ " |
248 |
+-;; |
249 |
+-esac |
250 |
+ if test "x$enable_static" != "xno" ; then |
251 |
+ echo \ |
252 |
+ " Linking a user program with a static ADOL-C library will always result |