From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7FD7D1382C5 for ; Sat, 10 Apr 2021 00:09:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A30ADE0876; Sat, 10 Apr 2021 00:09:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 38C93E0876 for ; Sat, 10 Apr 2021 00:09:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7AF94335C30 for ; Sat, 10 Apr 2021 00:09:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CD77763A for ; Sat, 10 Apr 2021 00:09:12 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1618013337.3edb1ce84c666c8bb84f289e9992020d945788a9.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/cantera/, sci-libs/cantera/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/cantera/cantera-2.5.1-r1.ebuild sci-libs/cantera/files/cantera-2.5.1_env.patch X-VCS-Directories: sci-libs/cantera/ sci-libs/cantera/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 3edb1ce84c666c8bb84f289e9992020d945788a9 X-VCS-Branch: master Date: Sat, 10 Apr 2021 00:09:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: bc2ab4cc-1511-47dc-a408-abd73b1ec898 X-Archives-Hash: 907046d99d4a7240948862cc40c4fcf9 commit: 3edb1ce84c666c8bb84f289e9992020d945788a9 Author: Sergey Torokhov yandex ru> AuthorDate: Fri Apr 9 21:16:53 2021 +0000 Commit: Sam James gentoo org> CommitDate: Sat Apr 10 00:08:57 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3edb1ce8 sci-libs/cantera: 2.5.1 fix USE="cti -python" test and installation USE="cti -python" provides python_minimal Cantera installation but thisinterface had no appropriate patch to install in proper site_packages directory in Gentoo. Thus installation in this case was broken. Also 'dev-python/ruamel-yaml' is required as RDEPEND in this case and as DEPEND for test phase. Signed-off-by: Sergey Torokhov yandex.ru> Closes: https://github.com/gentoo/gentoo/pull/20317 Signed-off-by: Sam James gentoo.org> sci-libs/cantera/cantera-2.5.1-r1.ebuild | 6 +++- sci-libs/cantera/files/cantera-2.5.1_env.patch | 44 ++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 1 deletion(-) diff --git a/sci-libs/cantera/cantera-2.5.1-r1.ebuild b/sci-libs/cantera/cantera-2.5.1-r1.ebuild index 2bf3e5d6a74..6f5345f106d 100644 --- a/sci-libs/cantera/cantera-2.5.1-r1.ebuild +++ b/sci-libs/cantera/cantera-2.5.1-r1.ebuild @@ -28,10 +28,14 @@ REQUIRED_USE=" RDEPEND=" ${PYTHON_DEPS} lapack? ( virtual/lapack ) + cti? ( + $(python_gen_cond_dep ' + dev-python/ruamel-yaml[${PYTHON_MULTI_USEDEP}] + ') + ) python? ( $(python_gen_cond_dep ' dev-python/numpy[${PYTHON_MULTI_USEDEP}] - dev-python/ruamel-yaml[${PYTHON_MULTI_USEDEP}] ') ) dev-cpp/yaml-cpp diff --git a/sci-libs/cantera/files/cantera-2.5.1_env.patch b/sci-libs/cantera/files/cantera-2.5.1_env.patch index b6b5deaf3fe..576e2de2d57 100644 --- a/sci-libs/cantera/files/cantera-2.5.1_env.patch +++ b/sci-libs/cantera/files/cantera-2.5.1_env.patch @@ -45,6 +45,50 @@ diff -Naur old/interfaces/cython/SConscript new/interfaces/cython/SConscript else: extra = '--user' localenv.AppendENVPath( +diff -Naur old/interfaces/python_minimal/SConscript new/interfaces/python_minimal/SConscript +--- old/interfaces/python_minimal/SConscript 2021-02-13 00:57:15.000000000 +0300 ++++ new/interfaces/python_minimal/SConscript 2021-04-09 23:26:28.000000000 +0300 +@@ -8,7 +8,7 @@ + make_setup = build(localenv.SubstFile('setup.py', 'setup.py.in')) + + # copy scripts from the full Cython module +-for script in ['ctml_writer', 'ck2cti']: ++for script in ['ctml_writer', 'ck2cti', 'ck2yaml', 'cti2yaml', 'ctml2yaml']: + # The actual script + s = build(env.Command('cantera/{}.py'.format(script), + '#interfaces/cython/cantera/{}.py'.format(script), +@@ -38,8 +38,7 @@ + elif localenv['libdirname'] != 'lib': + # 64-bit RHEL / Fedora etc. or e.g. x32 Gentoo profile + extra = localenv.subst( +- ' --prefix=${{python_prefix}}' +- ' --install-lib=${{python_prefix}}/${{libdirname}}/python{}/site-packages'.format(py_version)) ++ ' --prefix=${stage_dir}${prefix} --install-lib=${python_prefix}') + else: + extra = '--user' + localenv.AppendENVPath( +diff -Naur old/interfaces/python_minimal/cantera/__init__.py new/interfaces/python_minimal/cantera/__init__.py +--- old/interfaces/python_minimal/cantera/__init__.py 2021-02-13 00:57:15.000000000 +0300 ++++ new/interfaces/python_minimal/cantera/__init__.py 2021-04-10 00:07:38.000000000 +0300 +@@ -1,2 +1,5 @@ + from . import ck2cti + from . import ctml_writer ++from . import ck2yaml ++from . import cti2yaml ++from . import ctml2yaml +diff -Naur old/interfaces/python_minimal/setup.py.in new/interfaces/python_minimal/setup.py.in +--- old/interfaces/python_minimal/setup.py.in 2021-02-13 00:57:15.000000000 +0300 ++++ new/interfaces/python_minimal/setup.py.in 2021-04-09 23:32:09.000000000 +0300 +@@ -12,6 +12,9 @@ + 'console_scripts': [ + 'ck2cti=cantera.ck2cti:script_entry_point', + 'ctml_writer=cantera.ctml_writer:main', ++ 'ck2yaml=cantera.ck2yaml:script_entry_point', ++ 'cti2yaml=cantera.cti2yaml:main', ++ 'ctml2yaml=cantera.ctml2yaml:main', + ], + }, + ) diff -Naur old/test_problems/SConscript new/test_problems/SConscript --- old/test_problems/SConscript 2021-03-21 01:18:43.000000000 +0300 +++ new/test_problems/SConscript 2021-03-21 01:42:19.000000000 +0300