commit:     3a7cceb642afa4fcb78d5dadc6d2ad8982db1913
Author:     Matthias Maier <tamiko <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 30 15:24:23 2019 +0000
Commit:     Matthias Maier <tamiko <AT> gentoo <DOT> org>
CommitDate: Tue Jul 30 15:24:52 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a7cceb6

sci-libs/cantera: remove 2.4.0-r0 as request by proxy-maintainer

Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>

 sci-libs/cantera/cantera-2.4.0.ebuild              | 129 ---------------------
 .../files/cantera_2.4.0_libdirname_variable.patch  |  28 -----
 2 files changed, 157 deletions(-)

diff --git a/sci-libs/cantera/cantera-2.4.0.ebuild 
b/sci-libs/cantera/cantera-2.4.0.ebuild
deleted file mode 100644
index 6e83a5c6988..00000000000
--- a/sci-libs/cantera/cantera-2.4.0.ebuild
+++ /dev/null
@@ -1,129 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-PYTHON_COMPAT=( python3_{5,6} )
-
-FORTRAN_NEEDED=fortran
-FORTRAN_STANDARD=90
-
-inherit desktop fortran-2 python-single-r1 scons-utils toolchain-funcs
-
-DESCRIPTION="Object-oriented tool suite for chemical kinetics, thermodynamics, 
and transport"
-HOMEPAGE="http://www.cantera.org";
-SRC_URI="https://github.com/Cantera/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="+cti fortran pch +python test"
-
-REQUIRED_USE="
-       cti? ( ${PYTHON_REQUIRED_USE} )
-       python? ( cti )
-       ${PYTHON_REQUIRED_USE}
-       "
-
-RDEPEND="
-       python? (
-               dev-python/numpy[${PYTHON_USEDEP}]
-       )
-       sci-libs/sundials:0=
-"
-
-DEPEND="
-       ${RDEPEND}
-       dev-cpp/eigen
-       dev-libs/boost
-       dev-libs/libfmt
-       python? (
-               dev-python/cython[${PYTHON_USEDEP}]
-       )
-       test? (
-               >=dev-cpp/gtest-1.8.0
-       )
-"
-
-PATCHES=( "${FILESDIR}/${PN}_${PV}_libdirname_variable.patch" )
-
-pkg_setup() {
-       fortran-2_pkg_setup
-       python-single-r1_pkg_setup
-}
-
-src_prepare() {
-       default
-       # patch to work 'scons test' properly in case of set up 
'renamed_shared_libraries="no"' option
-       sed -i "s/, libs=\['cantera_shared'\]//" 
"${S}"/test_problems/SConscript || die "failed to modify 
'test_problems/SConscript'"
-       # patch env to pass CCACHE_DIR variable
-       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'"
-}
-
-## Full list of configuration options of Cantera is presented here:
-## http://cantera.org/docs/sphinx/html/compiling/config-options.html
-
-src_configure() {
-       scons_vars=(
-               CC="$(tc-getCC)"
-               CXX="$(tc-getCXX)"
-               cc_flags="${CXXFLAGS}"
-               cxx_flags="-std=c++11"
-               debug="no"
-               FORTRAN="$(tc-getFC)"
-               FORTRANFLAGS="${CXXFLAGS}"
-               renamed_shared_libraries="no"
-               use_pch=$(usex pch)
-## In some cases other order can break the detection of right location of 
Boost: ##
-               system_fmt="y"
-               system_sundials="y"
-               system_eigen="y"
-               env_vars="all"
-               extra_inc_dirs="/usr/include/eigen3"
-       )
-       use test || scons_vars+=( googletest="none" )
-
-       scons_targets=(
-               f90_interface=$(usex fortran y n)
-               python2_package="none"
-       )
-
-       if use cti ; then
-               local scons_python=$(usex python full minimal)
-               scons_targets+=( python3_package="${scons_python}" 
python3_cmd="${EPYTHON}" )
-       else
-               scons_targets+=( python3_package="none" )
-       fi
-}
-
-src_compile() {
-       escons build "${scons_vars[@]}" "${scons_targets[@]}" prefix="/usr"
-}
-
-src_test() {
-       escons test
-}
-
-src_install() {
-       escons install stage_dir="${D%/}" libdirname="$(get_libdir)"
-       if ! use cti ; then
-               rm -r "${D%/}/usr/share/man" || die "Can't remove man files."
-       else
-               # Run the byte-compile of modules
-               python_optimize "${D%/}/$(python_get_sitedir)/${PN}"
-       fi
-}
-
-pkg_postinst() {
-       if use cti && ! use python ; then
-               elog "Cantera was build without 'python' use-flag therefore the 
CTI tool 'ck2cti'"
-               elog "will convert Chemkin files to Cantera format without 
verification of kinetic mechanism."
-       fi
-
-       local post_msg=$(usex fortran "and Fortran " "")
-       elog "C++ ${post_msg}samples are installed to 
'/usr/share/${PN}/samples/' directory."
-
-       if use python ; then
-               elog "Python examples are installed to 
'$(python_get_sitedir)/${PN}/examples/' directories."
-       fi
-}

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
deleted file mode 100644
index a16f5670b55..00000000000
--- a/sci-libs/cantera/files/cantera_2.4.0_libdirname_variable.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-diff -Naur old/SConstruct new/SConstruct
---- old/SConstruct     2018-08-24 16:24:45.000000000 +0300
-+++ new/SConstruct     2018-11-05 03:07:07.000000000 +0300
-@@ -327,6 +327,10 @@
-         'prefix',
-         'Set this to the directory where Cantera should be installed.',
-         defaults.prefix, PathVariable.PathAccept),
-+    PathVariable(
-+        'libdirname',
-+        'Set this to the directory where Cantera libraries should be 
installed.',
-+        '', PathVariable.PathAccept),
-     EnumVariable(
-         'python_package',
-         """If you plan to work in Python, then you need the ``full`` Cantera 
Python
-@@ -1465,10 +1469,9 @@
- # *** Set additional configuration variables ***
- # **********************************************
- 
--# Some distributions (e.g. Fedora/RHEL) use 'lib64' instead of 'lib' on 
64-bit systems
--if any(name.startswith('/usr/lib64/python') for name in sys.path):
--    env['libdirname'] = 'lib64'
--else:
-+# Some distributions use 'lib64' (e.g. Fedora/RHEL) or something else instead 
of 'lib' on 64-bit systems.
-+# If user didn't set 'libdirname' configuration variable set it to default 
value 'lib'
-+if not env['libdirname']:
-     env['libdirname'] = 'lib'
- 
- # On Debian-based systems, need to special-case installation to

Reply via email to