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: Tue, 13 Jul 2021 16:58:05
Message-Id: 1626195475.50ae0bd77ebf5d44ff426ca830863af61328842d.marco@gentoo
1 commit: 50ae0bd77ebf5d44ff426ca830863af61328842d
2 Author: Marco Scardovi <marco <AT> scardovi <DOT> com>
3 AuthorDate: Tue Jul 13 16:57:42 2021 +0000
4 Commit: Marco Scardovi <marco <AT> scardovi <DOT> com>
5 CommitDate: Tue Jul 13 16:57:55 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=50ae0bd7
7
8 sys-boot/osk-sdl: bump to 0.65
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: Marco Scardovi <marco <AT> scardovi.com>
12
13 sys-boot/osk-sdl/Manifest | 1 +
14 sys-boot/osk-sdl/osk-sdl-0.65.ebuild | 65 ++++++++++++++++++++++++++++++++++++
15 2 files changed, 66 insertions(+)
16
17 diff --git a/sys-boot/osk-sdl/Manifest b/sys-boot/osk-sdl/Manifest
18 index 907091802..baa5d6334 100644
19 --- a/sys-boot/osk-sdl/Manifest
20 +++ b/sys-boot/osk-sdl/Manifest
21 @@ -1 +1,2 @@
22 DIST osk-sdl-0.64.tar.gz 37851 BLAKE2B dc297a0b1879f7b64bceb3032275b30f10072c50a2e2ddd985e94136ebf2308819fe71ca831fcc05d413c5e74f8ab955d920cc63bd90529e0c45fd3b6aae44db SHA512 0da985e1e8d0352f53f661dd4f7f6243a8f9b48279297f4ea3b120aa239c733411a83d324b58d152cafd9c2e7a791a36506afec6449e141c6445f0420bb9fd6b
23 +DIST osk-sdl-0.65.tar.gz 38007 BLAKE2B 3b64b44f74d72ab58468ecafe2e9aea054cd8a836ce18ece7e0b407de4311af7e70e197330ff3e88091c007a82942c33c1a2b538849cb45f78bd35674cd15e97 SHA512 070dcc1073266ecbe4c4c0089f29ac8687d98bbdcbd1c1578aa737bd6fbc96adeab6bd958295d073ef95515e63f536cef67c7e7e7b492b4ee3dc81fdcc8b9464
24
25 diff --git a/sys-boot/osk-sdl/osk-sdl-0.65.ebuild b/sys-boot/osk-sdl/osk-sdl-0.65.ebuild
26 new file mode 100644
27 index 000000000..8b3e203bf
28 --- /dev/null
29 +++ b/sys-boot/osk-sdl/osk-sdl-0.65.ebuild
30 @@ -0,0 +1,65 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit meson
37 +
38 +DESCRIPTION="Lightweight On-Screen-Keyboard based on SDL2"
39 +HOMEPAGE="https://gitlab.com/postmarketOS/osk-sdl"
40 +SRC_URI="https://gitlab.com/postmarketOS/osk-sdl/-/archive/${PV}/${P}.tar.gz"
41 +
42 +LICENSE="GPL-3"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~arm64"
45 +IUSE="test"
46 +RESTRICT="!test? ( test )"
47 +
48 +RDEPEND="
49 + app-portage/gentoolkit
50 + media-libs/cogl
51 + media-fonts/dejavu
52 + media-libs/libglvnd
53 + media-libs/libsdl2[kms,haptic]
54 + media-libs/mesa
55 + media-libs/sdl2-ttf
56 + sys-fs/cryptsetup
57 + sys-kernel/dracut
58 +"
59 +
60 +BDEPEND="
61 + app-text/scdoc
62 + test? (
63 + x11-misc/xdotool
64 + x11-misc/xvfb-run
65 + )
66 +"
67 +
68 +src_prepare() {
69 + default
70 + sed -e s/ttf-dejavu/dejavu/ -i osk.conf || die "Failed to sed"
71 +}
72 +
73 +src_test() {
74 + meson_src_test
75 +}
76 +
77 +src_install() {
78 + meson_src_install
79 + insinto /etc
80 + doins osk.conf
81 + insinto /etc/dracut.conf.d/
82 + doins "${FILESDIR}"/osk-sdl-pp.conf
83 + insinto /usr/lib/dracut/modules.d/50osk-sdl
84 + doins "${FILESDIR}"/osk-sdl-pp.path
85 + doins "${FILESDIR}"/osk-sdl-pp.service
86 + exeinto /usr/lib/dracut/modules.d/50osk-sdl
87 + doexe "${FILESDIR}"/module-setup.sh
88 + doexe "${FILESDIR}"/osk-sdl.sh
89 +}
90 +
91 +pkg_postinst() {
92 + einfo "For more info on how to test osk-sdl, and how to report problems, see: ${HOMEPAGE}"
93 + einfo "To use osk-sdl to unlock encrypted root at bootime, check osk-sdl-pp.conf in /etc/dracut.conf.d"
94 + einfo "and add these boot option 'root=/dev/mapper/root cryptroot=/dev/path/to/encrypted_partition' "
95 +}