1 |
commit: 3a7cceb642afa4fcb78d5dadc6d2ad8982db1913 |
2 |
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 30 15:24:23 2019 +0000 |
4 |
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 30 15:24:52 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a7cceb6 |
7 |
|
8 |
sci-libs/cantera: remove 2.4.0-r0 as request by proxy-maintainer |
9 |
|
10 |
Package-Manager: Portage-2.3.69, Repoman-2.3.16 |
11 |
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org> |
12 |
|
13 |
sci-libs/cantera/cantera-2.4.0.ebuild | 129 --------------------- |
14 |
.../files/cantera_2.4.0_libdirname_variable.patch | 28 ----- |
15 |
2 files changed, 157 deletions(-) |
16 |
|
17 |
diff --git a/sci-libs/cantera/cantera-2.4.0.ebuild b/sci-libs/cantera/cantera-2.4.0.ebuild |
18 |
deleted file mode 100644 |
19 |
index 6e83a5c6988..00000000000 |
20 |
--- a/sci-libs/cantera/cantera-2.4.0.ebuild |
21 |
+++ /dev/null |
22 |
@@ -1,129 +0,0 @@ |
23 |
-# Copyright 1999-2019 Gentoo Authors |
24 |
-# Distributed under the terms of the GNU General Public License v2 |
25 |
- |
26 |
-EAPI=6 |
27 |
- |
28 |
-PYTHON_COMPAT=( python3_{5,6} ) |
29 |
- |
30 |
-FORTRAN_NEEDED=fortran |
31 |
-FORTRAN_STANDARD=90 |
32 |
- |
33 |
-inherit desktop fortran-2 python-single-r1 scons-utils toolchain-funcs |
34 |
- |
35 |
-DESCRIPTION="Object-oriented tool suite for chemical kinetics, thermodynamics, and transport" |
36 |
-HOMEPAGE="http://www.cantera.org" |
37 |
-SRC_URI="https://github.com/Cantera/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
38 |
- |
39 |
-LICENSE="BSD" |
40 |
-SLOT="0" |
41 |
-KEYWORDS="~amd64 ~x86" |
42 |
-IUSE="+cti fortran pch +python test" |
43 |
- |
44 |
-REQUIRED_USE=" |
45 |
- cti? ( ${PYTHON_REQUIRED_USE} ) |
46 |
- python? ( cti ) |
47 |
- ${PYTHON_REQUIRED_USE} |
48 |
- " |
49 |
- |
50 |
-RDEPEND=" |
51 |
- python? ( |
52 |
- dev-python/numpy[${PYTHON_USEDEP}] |
53 |
- ) |
54 |
- sci-libs/sundials:0= |
55 |
-" |
56 |
- |
57 |
-DEPEND=" |
58 |
- ${RDEPEND} |
59 |
- dev-cpp/eigen |
60 |
- dev-libs/boost |
61 |
- dev-libs/libfmt |
62 |
- python? ( |
63 |
- dev-python/cython[${PYTHON_USEDEP}] |
64 |
- ) |
65 |
- test? ( |
66 |
- >=dev-cpp/gtest-1.8.0 |
67 |
- ) |
68 |
-" |
69 |
- |
70 |
-PATCHES=( "${FILESDIR}/${PN}_${PV}_libdirname_variable.patch" ) |
71 |
- |
72 |
-pkg_setup() { |
73 |
- fortran-2_pkg_setup |
74 |
- python-single-r1_pkg_setup |
75 |
-} |
76 |
- |
77 |
-src_prepare() { |
78 |
- default |
79 |
- # patch to work 'scons test' properly in case of set up 'renamed_shared_libraries="no"' option |
80 |
- sed -i "s/, libs=\['cantera_shared'\]//" "${S}"/test_problems/SConscript || die "failed to modify 'test_problems/SConscript'" |
81 |
- # patch env to pass CCACHE_DIR variable |
82 |
- sed -i "s/ENV={'PATH': os.environ\['PATH'\]}/ENV={'PATH': os.environ\['PATH'\], 'CCACHE_DIR': os.environ.get('CCACHE_DIR','')}/" "${S}"/SConstruct || die "failed to modify 'SConstruct'" |
83 |
-} |
84 |
- |
85 |
-## Full list of configuration options of Cantera is presented here: |
86 |
-## http://cantera.org/docs/sphinx/html/compiling/config-options.html |
87 |
- |
88 |
-src_configure() { |
89 |
- scons_vars=( |
90 |
- CC="$(tc-getCC)" |
91 |
- CXX="$(tc-getCXX)" |
92 |
- cc_flags="${CXXFLAGS}" |
93 |
- cxx_flags="-std=c++11" |
94 |
- debug="no" |
95 |
- FORTRAN="$(tc-getFC)" |
96 |
- FORTRANFLAGS="${CXXFLAGS}" |
97 |
- renamed_shared_libraries="no" |
98 |
- use_pch=$(usex pch) |
99 |
-## In some cases other order can break the detection of right location of Boost: ## |
100 |
- system_fmt="y" |
101 |
- system_sundials="y" |
102 |
- system_eigen="y" |
103 |
- env_vars="all" |
104 |
- extra_inc_dirs="/usr/include/eigen3" |
105 |
- ) |
106 |
- use test || scons_vars+=( googletest="none" ) |
107 |
- |
108 |
- scons_targets=( |
109 |
- f90_interface=$(usex fortran y n) |
110 |
- python2_package="none" |
111 |
- ) |
112 |
- |
113 |
- if use cti ; then |
114 |
- local scons_python=$(usex python full minimal) |
115 |
- scons_targets+=( python3_package="${scons_python}" python3_cmd="${EPYTHON}" ) |
116 |
- else |
117 |
- scons_targets+=( python3_package="none" ) |
118 |
- fi |
119 |
-} |
120 |
- |
121 |
-src_compile() { |
122 |
- escons build "${scons_vars[@]}" "${scons_targets[@]}" prefix="/usr" |
123 |
-} |
124 |
- |
125 |
-src_test() { |
126 |
- escons test |
127 |
-} |
128 |
- |
129 |
-src_install() { |
130 |
- escons install stage_dir="${D%/}" libdirname="$(get_libdir)" |
131 |
- if ! use cti ; then |
132 |
- rm -r "${D%/}/usr/share/man" || die "Can't remove man files." |
133 |
- else |
134 |
- # Run the byte-compile of modules |
135 |
- python_optimize "${D%/}/$(python_get_sitedir)/${PN}" |
136 |
- fi |
137 |
-} |
138 |
- |
139 |
-pkg_postinst() { |
140 |
- if use cti && ! use python ; then |
141 |
- elog "Cantera was build without 'python' use-flag therefore the CTI tool 'ck2cti'" |
142 |
- elog "will convert Chemkin files to Cantera format without verification of kinetic mechanism." |
143 |
- fi |
144 |
- |
145 |
- local post_msg=$(usex fortran "and Fortran " "") |
146 |
- elog "C++ ${post_msg}samples are installed to '/usr/share/${PN}/samples/' directory." |
147 |
- |
148 |
- if use python ; then |
149 |
- elog "Python examples are installed to '$(python_get_sitedir)/${PN}/examples/' directories." |
150 |
- fi |
151 |
-} |
152 |
|
153 |
diff --git a/sci-libs/cantera/files/cantera_2.4.0_libdirname_variable.patch b/sci-libs/cantera/files/cantera_2.4.0_libdirname_variable.patch |
154 |
deleted file mode 100644 |
155 |
index a16f5670b55..00000000000 |
156 |
--- a/sci-libs/cantera/files/cantera_2.4.0_libdirname_variable.patch |
157 |
+++ /dev/null |
158 |
@@ -1,28 +0,0 @@ |
159 |
-diff -Naur old/SConstruct new/SConstruct |
160 |
---- old/SConstruct 2018-08-24 16:24:45.000000000 +0300 |
161 |
-+++ new/SConstruct 2018-11-05 03:07:07.000000000 +0300 |
162 |
-@@ -327,6 +327,10 @@ |
163 |
- 'prefix', |
164 |
- 'Set this to the directory where Cantera should be installed.', |
165 |
- defaults.prefix, PathVariable.PathAccept), |
166 |
-+ PathVariable( |
167 |
-+ 'libdirname', |
168 |
-+ 'Set this to the directory where Cantera libraries should be installed.', |
169 |
-+ '', PathVariable.PathAccept), |
170 |
- EnumVariable( |
171 |
- 'python_package', |
172 |
- """If you plan to work in Python, then you need the ``full`` Cantera Python |
173 |
-@@ -1465,10 +1469,9 @@ |
174 |
- # *** Set additional configuration variables *** |
175 |
- # ********************************************** |
176 |
- |
177 |
--# Some distributions (e.g. Fedora/RHEL) use 'lib64' instead of 'lib' on 64-bit systems |
178 |
--if any(name.startswith('/usr/lib64/python') for name in sys.path): |
179 |
-- env['libdirname'] = 'lib64' |
180 |
--else: |
181 |
-+# Some distributions use 'lib64' (e.g. Fedora/RHEL) or something else instead of 'lib' on 64-bit systems. |
182 |
-+# If user didn't set 'libdirname' configuration variable set it to default value 'lib' |
183 |
-+if not env['libdirname']: |
184 |
- env['libdirname'] = 'lib' |
185 |
- |
186 |
- # On Debian-based systems, need to special-case installation to |