app-doc/ford: pass name of the system C preprocessor

Closes: https://bugs.gentoo.org/839300

Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
This commit is contained in:
Sergey Torokhov
2022-04-29 20:42:37 +03:00
parent 1ff1e0590d
commit 2af33a430c
3 changed files with 18 additions and 3 deletions

View File

@@ -4,7 +4,7 @@
EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
inherit distutils-r1 toolchain-funcs
MY_PN="FORD"
DESCRIPTION="FORD, automatic documentation generator for modern Fortran programs"
@@ -36,6 +36,11 @@ DOCS=( CHANGELOG.md README.md README.rst )
distutils_enable_tests pytest
src_prepare() {
default
sed -i -e 's/"cpp /"'"$(tc-getCPP)"' /' ford/__init__.py || die # bug: 839300
}
python_test(){
# The 'test/test_projects' tests use subprocess, i.e. require FORD to be installed.
distutils_install_for_testing

View File

@@ -4,7 +4,7 @@
EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
inherit distutils-r1 toolchain-funcs
MY_PN="FORD"
DESCRIPTION="FORD, automatic documentation generator for modern Fortran programs"
@@ -36,6 +36,11 @@ DOCS=( CHANGELOG.md README.md README.rst )
distutils_enable_tests pytest
src_prepare() {
default
sed -i -e 's/"cpp /"'"$(tc-getCPP)"' /' ford/__init__.py || die # bug: 839300
}
python_test(){
# The 'test/test_projects' tests use subprocess, i.e. require FORD to be installed.
distutils_install_for_testing

View File

@@ -4,7 +4,7 @@
EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
inherit distutils-r1 toolchain-funcs
MY_PN="FORD"
DESCRIPTION="FORD, automatic documentation generator for modern Fortran programs"
@@ -41,6 +41,11 @@ EPYTEST_IGNORE=(
test/test_projects/test_external_project.py
)
src_prepare() {
default
sed -i -e 's/"cpp /"'"$(tc-getCPP)"' /' ford/__init__.py || die # bug: 839300
}
python_test(){
# The 'test/test_projects' tests use subprocess, i.e. require FORD to be installed.
distutils_install_for_testing