Gentoo Archives: gentoo-commits

From: Marco Scardovi <marco@××××××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-boot/osk-sdl/
Date: Mon, 28 Jun 2021 17:40:15
Message-Id: 1624902001.bb974100889989e9d5b408a92dd9f256c492d986.marco@gentoo
1 commit: bb974100889989e9d5b408a92dd9f256c492d986
2 Author: Marco Scardovi <marco <AT> scardovi <DOT> com>
3 AuthorDate: Mon Jun 28 17:39:43 2021 +0000
4 Commit: Marco Scardovi <marco <AT> scardovi <DOT> com>
5 CommitDate: Mon Jun 28 17:40:01 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bb974100
7
8 sys-boot/osk-sdl: add test
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: Marco Scardovi <marco <AT> scardovi.com>
12
13 .../{osk-sdl-0.64.ebuild => osk-sdl-0.64-r1.ebuild} | 15 +++++++++++++--
14 1 file changed, 13 insertions(+), 2 deletions(-)
15
16 diff --git a/sys-boot/osk-sdl/osk-sdl-0.64.ebuild b/sys-boot/osk-sdl/osk-sdl-0.64-r1.ebuild
17 similarity index 90%
18 rename from sys-boot/osk-sdl/osk-sdl-0.64.ebuild
19 rename to sys-boot/osk-sdl/osk-sdl-0.64-r1.ebuild
20 index 4fc97688f..d7af7ff79 100644
21 --- a/sys-boot/osk-sdl/osk-sdl-0.64.ebuild
22 +++ b/sys-boot/osk-sdl/osk-sdl-0.64-r1.ebuild
23 @@ -14,7 +14,8 @@ SRC_URI="https://gitlab.com/postmarketOS/osk-sdl/-/archive/${COMMIT}.tar.gz -> $
24 LICENSE="GPL-3"
25 SLOT="0"
26 KEYWORDS="~amd64 ~arm64"
27 -RESTRICT="test"
28 +IUSE="test"
29 +RESTRICT="!test? ( test )"
30
31 RDEPEND="
32 app-portage/gentoolkit
33 @@ -28,7 +29,13 @@ RDEPEND="
34 sys-kernel/dracut
35 "
36
37 -BDEPEND="app-text/scdoc"
38 +BDEPEND="
39 + app-text/scdoc
40 + test? (
41 + x11-misc/xdotool
42 + x11-misc/xvfb-run
43 + )
44 +"
45
46 S="${WORKDIR}/${PN}-${COMMIT}"
47
48 @@ -37,6 +44,10 @@ src_prepare() {
49 sed -e s/ttf-dejavu/dejavu/ -i osk.conf || die "Failed to sed"
50 }
51
52 +src_test() {
53 + meson_src_test
54 +}
55 +
56 src_install() {
57 meson_src_install
58 insinto /etc