1 |
commit: c3b31fbf6cd0020a516e092684accc3a820a7436 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
3 |
AuthorDate: Fri Jan 29 20:58:35 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Fri Jan 29 20:58:56 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=c3b31fbf |
7 |
|
8 |
sci-libs/asl: camke-utils --> cmake, fix compilation |
9 |
|
10 |
Package-Manager: Portage-3.0.14, Repoman-3.0.2 |
11 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net> |
12 |
|
13 |
sci-libs/asl/asl-0.1.6.ebuild | 47 ------------------------------------------- |
14 |
sci-libs/asl/asl-0.1.7.ebuild | 20 +++++++++++------- |
15 |
sci-libs/asl/asl-9999.ebuild | 19 +++++++++-------- |
16 |
3 files changed, 24 insertions(+), 62 deletions(-) |
17 |
|
18 |
diff --git a/sci-libs/asl/asl-0.1.6.ebuild b/sci-libs/asl/asl-0.1.6.ebuild |
19 |
deleted file mode 100644 |
20 |
index 397f4b260..000000000 |
21 |
--- a/sci-libs/asl/asl-0.1.6.ebuild |
22 |
+++ /dev/null |
23 |
@@ -1,47 +0,0 @@ |
24 |
-# Copyright 1999-2016 Gentoo Foundation |
25 |
-# Distributed under the terms of the GNU General Public License v2 |
26 |
- |
27 |
-EAPI=5 |
28 |
- |
29 |
-MY_PN=ASL |
30 |
- |
31 |
-if [[ ${PV} == "9999" ]] ; then |
32 |
- inherit git-r3 |
33 |
- EGIT_REPO_URI="git://github.com/AvtechScientific/${MY_PN}.git" |
34 |
-else |
35 |
- SRC_URI="https://github.com/AvtechScientific/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
36 |
- KEYWORDS="~amd64 ~x86" |
37 |
- S="${WORKDIR}/${MY_PN}-${PV}" |
38 |
-fi |
39 |
- |
40 |
-CMAKE_MIN_VERSION=3.0.2 |
41 |
-CMAKE_MAKEFILE_GENERATOR="${CMAKE_MAKEFILE_GENERATOR:-ninja}" |
42 |
- |
43 |
-inherit cmake-utils |
44 |
- |
45 |
-DESCRIPTION="Advanced Simulation Library - multiphysics simulation software package" |
46 |
-HOMEPAGE="http://asl.org.il/" |
47 |
-LICENSE="AGPL-3" |
48 |
-SLOT="0" |
49 |
-IUSE="doc examples matlab" |
50 |
- |
51 |
-RDEPEND=" |
52 |
- >=dev-libs/boost-1.55:= |
53 |
- >=sci-libs/vtk-6.1 |
54 |
- >=virtual/opencl-0-r2 |
55 |
-" |
56 |
-DEPEND="${RDEPEND} |
57 |
- doc? ( app-doc/doxygen[dot] ) |
58 |
- matlab? ( >=sci-libs/matio-1.5.2 ) |
59 |
-" |
60 |
- |
61 |
-src_configure() { |
62 |
- local mycmakeargs=( |
63 |
- -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${PF} |
64 |
- -DCMAKE_SKIP_RPATH=yes |
65 |
- $(cmake-utils_use_with doc API_DOC) |
66 |
- $(cmake-utils_use_with examples) |
67 |
- $(cmake-utils_use_with matlab) |
68 |
- ) |
69 |
- cmake-utils_src_configure |
70 |
-} |
71 |
|
72 |
diff --git a/sci-libs/asl/asl-0.1.7.ebuild b/sci-libs/asl/asl-0.1.7.ebuild |
73 |
index 062763511..50eaeea5d 100644 |
74 |
--- a/sci-libs/asl/asl-0.1.7.ebuild |
75 |
+++ b/sci-libs/asl/asl-0.1.7.ebuild |
76 |
@@ -1,13 +1,12 @@ |
77 |
-# Copyright 1999-2016 Gentoo Foundation |
78 |
+# Copyright 1999-2021 Gentoo Authors |
79 |
# Distributed under the terms of the GNU General Public License v2 |
80 |
|
81 |
-EAPI=6 |
82 |
+EAPI=7 |
83 |
|
84 |
MY_PN=ASL |
85 |
-CMAKE_MIN_VERSION=3.0.2 |
86 |
CMAKE_MAKEFILE_GENERATOR="${CMAKE_MAKEFILE_GENERATOR:-ninja}" |
87 |
|
88 |
-inherit cmake-utils |
89 |
+inherit cmake |
90 |
|
91 |
DESCRIPTION="Hardware accelerated multiphysics simulation platform" |
92 |
HOMEPAGE="http://asl.org.il/" |
93 |
@@ -15,21 +14,28 @@ SRC_URI="https://github.com/AvtechScientific/${MY_PN}/archive/v${PV}.tar.gz -> $ |
94 |
|
95 |
LICENSE="AGPL-3" |
96 |
SLOT="0" |
97 |
-IUSE="doc examples matlab" |
98 |
KEYWORDS="~amd64 ~x86" |
99 |
|
100 |
+IUSE="doc examples matlab" |
101 |
+ |
102 |
RDEPEND=" |
103 |
>=dev-libs/boost-1.53:= |
104 |
>=sci-libs/vtk-6.1 |
105 |
>=virtual/opencl-0-r2 |
106 |
" |
107 |
DEPEND="${RDEPEND} |
108 |
- doc? ( app-doc/doxygen[dot] ) |
109 |
matlab? ( >=sci-libs/matio-1.5.2 ) |
110 |
" |
111 |
+BDEPEND="doc? ( app-doc/doxygen[dot] )" |
112 |
|
113 |
S="${WORKDIR}/${MY_PN}-${PV}" |
114 |
|
115 |
+src_prepare() { |
116 |
+ cmake_src_prepare |
117 |
+ # allow use of vtk 8.2 |
118 |
+ sed -i -e 's/find_package(VTK 7.0/find_package(VTK 8.2/g' CMakeLists.txt || die |
119 |
+} |
120 |
+ |
121 |
src_configure() { |
122 |
local mycmakeargs=( |
123 |
-DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${PF} |
124 |
@@ -38,5 +44,5 @@ src_configure() { |
125 |
-DWITH_EXAMPLES="$(usex examples)" |
126 |
-DWITH_MATIO="$(usex matlab)" |
127 |
) |
128 |
- cmake-utils_src_configure |
129 |
+ cmake_src_configure |
130 |
} |
131 |
|
132 |
diff --git a/sci-libs/asl/asl-9999.ebuild b/sci-libs/asl/asl-9999.ebuild |
133 |
index 7f540d17a..82b464f7f 100644 |
134 |
--- a/sci-libs/asl/asl-9999.ebuild |
135 |
+++ b/sci-libs/asl/asl-9999.ebuild |
136 |
@@ -1,23 +1,20 @@ |
137 |
-# Copyright 1999-2016 Gentoo Foundation |
138 |
+# Copyright 1999-2021 Gentoo Authors |
139 |
# Distributed under the terms of the GNU General Public License v2 |
140 |
|
141 |
-EAPI=6 |
142 |
+EAPI=7 |
143 |
|
144 |
MY_PN=ASL |
145 |
-CMAKE_MIN_VERSION=3.0.2 |
146 |
CMAKE_MAKEFILE_GENERATOR="${CMAKE_MAKEFILE_GENERATOR:-ninja}" |
147 |
|
148 |
-inherit cmake-utils git-r3 |
149 |
+inherit cmake git-r3 |
150 |
|
151 |
DESCRIPTION="Hardware accelerated multiphysics simulation platform" |
152 |
HOMEPAGE="http://asl.org.il/" |
153 |
-SRC_URI="" |
154 |
EGIT_REPO_URI="git://github.com/AvtechScientific/${MY_PN}.git" |
155 |
|
156 |
LICENSE="AGPL-3" |
157 |
SLOT="0" |
158 |
IUSE="doc examples matlab" |
159 |
-KEYWORDS="" |
160 |
|
161 |
RDEPEND=" |
162 |
>=dev-libs/boost-1.53:= |
163 |
@@ -25,9 +22,15 @@ RDEPEND=" |
164 |
>=virtual/opencl-0-r2 |
165 |
" |
166 |
DEPEND="${RDEPEND} |
167 |
- doc? ( app-doc/doxygen[dot] ) |
168 |
matlab? ( >=sci-libs/matio-1.5.2 ) |
169 |
" |
170 |
+BDEPEND="doc? ( app-doc/doxygen[dot] )" |
171 |
+ |
172 |
+src_prepare() { |
173 |
+ cmake_src_prepare |
174 |
+ # allow use of vtk 8.2 |
175 |
+ sed -i -e 's/find_package(VTK 7.0/find_package(VTK 8.2/g' CMakeLists.txt || die |
176 |
+} |
177 |
|
178 |
src_configure() { |
179 |
local mycmakeargs=( |
180 |
@@ -37,5 +40,5 @@ src_configure() { |
181 |
-DWITH_EXAMPLES="$(usex examples)" |
182 |
-DWITH_MATIO="$(usex matlab)" |
183 |
) |
184 |
- cmake-utils_src_configure |
185 |
+ cmake_src_configure |
186 |
} |