Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/kbd/
Date: Wed, 31 Jul 2019 10:54:32
Message-Id: 1564570457.c2360b273f99e25b7bc7f1245ff0ae673e7768e2.polynomial-c@gentoo
1 commit: c2360b273f99e25b7bc7f1245ff0ae673e7768e2
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 31 10:51:53 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 31 10:54:17 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2360b27
7
8 sys-apps/kbd: Bump to version 2.2.0
9
10 Closes: https://bugs.gentoo.org/690738
11 Closes: https://bugs.gentoo.org/690806
12 Package-Manager: Portage-2.3.69, Repoman-2.3.16
13 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
14
15 sys-apps/kbd/Manifest | 1 +
16 sys-apps/kbd/kbd-2.2.0.ebuild | 74 +++++++++++++++++++++++++++++++++++++++++++
17 2 files changed, 75 insertions(+)
18
19 diff --git a/sys-apps/kbd/Manifest b/sys-apps/kbd/Manifest
20 index eca4c0877c8..93fc96d2895 100644
21 --- a/sys-apps/kbd/Manifest
22 +++ b/sys-apps/kbd/Manifest
23 @@ -1,2 +1,3 @@
24 DIST kbd-2.0.4.tar.xz 1031864 BLAKE2B 10c2bded89befda1f1d7ab199796e082a4e3b2333cf29a2abbbe843191dce41a7289d5bc3b7e55d8b25c7144ae4b4977e4321b38896917d0083af8ddd4924a3e SHA512 5e264b3695b0af0bc85e0a4fa2c43e13648d8ea82102f3b051c28da2abfc52977577c470bce48f30cec9b0d215297e48c9b05e00561c990e3770fb68f6544e0f
25 DIST kbd-2.1.0.tar.xz 1114896 BLAKE2B 273b1149ac1ba6220d786fa6fedf22432937c8e7a8c3317eecc11d4533a72f6c29566dda75be2fb0fae3c0f02d63a10e6207cbe96719051639fc661c859e1040 SHA512 bfb3e7c4ab2973bf68ee6ce8fd90b4e51cff5a466c04b375c1a6d9418319cf041a593edb4915637cd0c3b472614cd39d8184837d14e9177f163817da4e769849
26 +DIST kbd-2.2.0.tar.xz 1115220 BLAKE2B d4218f3a8f9212d16e8a14011f0e136f6aebd18f13f8d5da2bd63296e0aa857fc5e7fe927200345fca3b723bc879f87511b02c152824a73ae5743cc8175991e6 SHA512 5f407c20739487e423e8390e429d30838a1a69a0a50db083803ce56da919e25ce480b63fd1bcfac9eb362095f17e575783b09eaa55e26b442bfa3ed838e04f13
27
28 diff --git a/sys-apps/kbd/kbd-2.2.0.ebuild b/sys-apps/kbd/kbd-2.2.0.ebuild
29 new file mode 100644
30 index 00000000000..097ab17ac29
31 --- /dev/null
32 +++ b/sys-apps/kbd/kbd-2.2.0.ebuild
33 @@ -0,0 +1,74 @@
34 +# Copyright 1999-2019 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +inherit pam
40 +
41 +if [[ ${PV} == "9999" ]] ; then
42 + inherit autotools git-r3
43 + #EGIT_REPO_URI="https://git.kernel.org/pub/scm/linux/kernel/git/legion/kbd.git"
44 + EGIT_REPO_URI="https://github.com/legionus/kbd.git"
45 + EGIT_BRANCH="master"
46 +else
47 + SRC_URI="https://www.kernel.org/pub/linux/utils/kbd/${P}.tar.xz"
48 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86"
49 +fi
50 +
51 +DESCRIPTION="Keyboard and console utilities"
52 +HOMEPAGE="http://kbd-project.org/"
53 +
54 +LICENSE="GPL-2"
55 +SLOT="0"
56 +IUSE="nls pam test"
57 +
58 +RDEPEND="
59 + app-arch/gzip
60 + pam? (
61 + !app-misc/vlock
62 + virtual/pam
63 + )
64 +"
65 +DEPEND="${RDEPEND}"
66 +BDEPEND="
67 + virtual/pkgconfig
68 + test? ( dev-libs/check )
69 +"
70 +
71 +src_unpack() {
72 + if [[ ${PV} == "9999" ]] ; then
73 + git-r3_src_unpack
74 + else
75 + default
76 + fi
77 +
78 + # Rename conflicting keymaps to have unique names, bug #293228
79 + cd "${S}"/data/keymaps/i386 || die
80 + mv fgGIod/trf.map fgGIod/trf-fgGIod.map || die
81 + mv olpc/es.map olpc/es-olpc.map || die
82 + mv olpc/pt.map olpc/pt-olpc.map || die
83 + mv qwerty/cz.map qwerty/cz-qwerty.map || die
84 +}
85 +
86 +src_prepare() {
87 + default
88 + if [[ ${PV} == "9999" ]] ; then
89 + eautoreconf
90 + fi
91 +}
92 +
93 +src_configure() {
94 + local myeconfargs=(
95 + $(use_enable nls)
96 + $(use_enable pam vlock)
97 + $(use_enable test tests)
98 + )
99 + econf "${myeconfargs[@]}"
100 +}
101 +
102 +src_install() {
103 + default
104 + docinto html
105 + dodoc docs/doc/*.html
106 + use pam && pamd_mimic_system vlock auth account
107 +}