1 |
commit: b8407e77728489cb3da158b77f0afb01291371f2 |
2 |
Author: Horea Christian <chr <AT> chymera <DOT> eu> |
3 |
AuthorDate: Tue Jun 22 23:44:08 2021 +0000 |
4 |
Commit: Horea Christian <horea.christ <AT> gmail <DOT> com> |
5 |
CommitDate: Tue Jun 22 23:44:08 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=b8407e77 |
7 |
|
8 |
sci-libs/ciftilib: fixed boost version checking |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Horea Christian <chr <AT> chymera.eu> |
12 |
|
13 |
sci-libs/ciftilib/ciftilib-1.6.0.ebuild | 6 +++++ |
14 |
.../ciftilib/files/ciftilib-1.6.0-version.patch | 27 ++++++++++++++++++++++ |
15 |
2 files changed, 33 insertions(+) |
16 |
|
17 |
diff --git a/sci-libs/ciftilib/ciftilib-1.6.0.ebuild b/sci-libs/ciftilib/ciftilib-1.6.0.ebuild |
18 |
index 062fa44ef..fffd4f9c1 100644 |
19 |
--- a/sci-libs/ciftilib/ciftilib-1.6.0.ebuild |
20 |
+++ b/sci-libs/ciftilib/ciftilib-1.6.0.ebuild |
21 |
@@ -24,6 +24,12 @@ RDEPEND="${DEPEND}" |
22 |
|
23 |
S="${WORKDIR}/CiftiLib-${PV}" |
24 |
|
25 |
+# fix submitted upstream |
26 |
+# https://github.com/Washington-University/CiftiLib/pull/23 |
27 |
+PATCHES=( |
28 |
+ "${FILESDIR}/${P}-version.patch" |
29 |
+) |
30 |
+ |
31 |
#TODO: Enable doc building and installation |
32 |
|
33 |
src_prepare(){ |
34 |
|
35 |
diff --git a/sci-libs/ciftilib/files/ciftilib-1.6.0-version.patch b/sci-libs/ciftilib/files/ciftilib-1.6.0-version.patch |
36 |
new file mode 100644 |
37 |
index 000000000..e64a55f2f |
38 |
--- /dev/null |
39 |
+++ b/sci-libs/ciftilib/files/ciftilib-1.6.0-version.patch |
40 |
@@ -0,0 +1,27 @@ |
41 |
+--- a/CMakeLists.txt |
42 |
++++ b/CMakeLists.txt |
43 |
+@@ -83,18 +83,18 @@ ENDIF (NOT QT_FOUND) |
44 |
+ INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS}) |
45 |
+ SET(LIBS ${LIBS} ${Boost_LIBRARIES}) |
46 |
+ #boost quirks |
47 |
+-IF (Boost_VERSION LESS 104400) |
48 |
++IF (Boost_VERSION VERSION_LESS 1.44.00) |
49 |
+ #absolute() was added in 1.44.0, with filesystem v3 |
50 |
+ ADD_DEFINITIONS(-DCIFTILIB_BOOST_NO_FSV3) |
51 |
+-ENDIF (Boost_VERSION LESS 104400) |
52 |
+-IF (Boost_VERSION LESS 104800) |
53 |
++ENDIF (Boost_VERSION VERSION_LESS 1.44.00) |
54 |
++IF (Boost_VERSION VERSION_LESS 1.48.00) |
55 |
+ #canonical() was added in 1.48.0 |
56 |
+ ADD_DEFINITIONS(-DCIFTILIB_BOOST_NO_CANONICAL) |
57 |
+-ENDIF (Boost_VERSION LESS 104800) |
58 |
+-IF (Boost_VERSION LESS 105600) |
59 |
++ENDIF (Boost_VERSION VERSION_LESS 1.48.00) |
60 |
++IF (Boost_VERSION VERSION_LESS 1.56.00) |
61 |
+ #try_lexical_cast was added in 1.56.0 |
62 |
+ ADD_DEFINITIONS(-DCIFTILIB_BOOST_NO_TRY_LEXICAL) |
63 |
+-ENDIF (Boost_VERSION LESS 105600) |
64 |
++ENDIF (Boost_VERSION VERSION_LESS 1.56.00) |
65 |
+ |
66 |
+ #zlib, useful for volume reading |
67 |
+ FIND_PACKAGE(ZLIB) |