x11-lib/gtk-fortran: fix test fail due to DISPLAY absence

The issue bellow isn't related to 'lto' and was to absence
of virtual DISPLAY while running test.

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

Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
This commit is contained in:
Sergey Torokhov 2022-10-30 01:17:01 +03:00
parent f83445e50d
commit 20bd1b614f
No known key found for this signature in database
GPG Key ID: 6787AA71304915E3
2 changed files with 20 additions and 8 deletions

View File

@ -1,12 +1,13 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
CMAKE_MAKEFILE_GENERATOR="emake"
FORTRAN_STANDARD=2003
VIRTUALX_REQUIRED="test"
inherit cmake fortran-2
inherit cmake fortran-2 virtualx
DESCRIPTION="A GTK+ binding to build Graphical User Interfaces in Fortran"
HOMEPAGE="https://github.com/vmagnin/gtk-fortran"
@ -16,8 +17,9 @@ LICENSE="GPL-3"
SLOT="3"
KEYWORDS="~amd64 ~x86"
IUSE="examples high-level plplot static-libs"
IUSE="examples high-level plplot static-libs test"
REQUIRED_USE="plplot? ( high-level )"
RESTRICT="!test? ( test )"
RDEPEND="
x11-libs/gtk+:3
@ -55,6 +57,10 @@ src_configure() {
cmake_src_configure
}
src_test() {
virtx cmake_src_test
}
src_install() {
cmake_src_install

View File

@ -1,12 +1,13 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
CMAKE_MAKEFILE_GENERATOR="emake"
FORTRAN_STANDARD=2003
VIRTUALX_REQUIRED="test"
inherit cmake fortran-2
inherit cmake fortran-2 virtualx
DESCRIPTION="A GTK+ binding to build Graphical User Interfaces in Fortran"
HOMEPAGE="https://github.com/vmagnin/gtk-fortran"
@ -16,8 +17,9 @@ LICENSE="GPL-3"
SLOT="4"
KEYWORDS="~amd64 ~x86"
IUSE="examples high-level plplot static-libs"
IUSE="examples high-level plplot static-libs test"
REQUIRED_USE="plplot? ( high-level )"
RESTRICT="!test? ( test )"
RDEPEND="
gui-libs/gtk:4
@ -55,6 +57,10 @@ src_configure() {
cmake_src_configure
}
src_test() {
virtx cmake_src_test
}
src_install() {
cmake_src_install