Gentoo Archives: gentoo-commits

From: Akinori Hattori <hattya@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/xvnkb/
Date: Tue, 19 Oct 2021 14:42:14
Message-Id: 1634654519.966eed05a6bb4f9f01d341709428656e1bcb0a16.hattya@gentoo
1 commit: 966eed05a6bb4f9f01d341709428656e1bcb0a16
2 Author: Akinori Hattori <hattya <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 19 14:33:28 2021 +0000
4 Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 19 14:41:59 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=966eed05
7
8 app-i18n/xvnkb: tidy
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org>
12
13 app-i18n/xvnkb/metadata.xml | 14 ++++++-------
14 app-i18n/xvnkb/xvnkb-0.2.9a-r1.ebuild | 38 +++++++++++++++++------------------
15 2 files changed, 26 insertions(+), 26 deletions(-)
16
17 diff --git a/app-i18n/xvnkb/metadata.xml b/app-i18n/xvnkb/metadata.xml
18 index 5a3a0aa5676..0df6a83c250 100644
19 --- a/app-i18n/xvnkb/metadata.xml
20 +++ b/app-i18n/xvnkb/metadata.xml
21 @@ -1,11 +1,11 @@
22 <?xml version="1.0" encoding="UTF-8"?>
23 <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
24 <pkgmetadata>
25 - <maintainer type="project">
26 - <email>cjk@g.o</email>
27 - <name>Cjk</name>
28 - </maintainer>
29 - <upstream>
30 - <remote-id type="sourceforge">xvnkb</remote-id>
31 - </upstream>
32 + <maintainer type="project">
33 + <email>cjk@g.o</email>
34 + <name>Cjk</name>
35 + </maintainer>
36 + <upstream>
37 + <remote-id type="sourceforge">xvnkb</remote-id>
38 + </upstream>
39 </pkgmetadata>
40
41 diff --git a/app-i18n/xvnkb/xvnkb-0.2.9a-r1.ebuild b/app-i18n/xvnkb/xvnkb-0.2.9a-r1.ebuild
42 index 3f52d6d81c3..90dd4d5e6e3 100644
43 --- a/app-i18n/xvnkb/xvnkb-0.2.9a-r1.ebuild
44 +++ b/app-i18n/xvnkb/xvnkb-0.2.9a-r1.ebuild
45 @@ -1,47 +1,47 @@
46 -# Copyright 1999-2019 Gentoo Authors
47 +# Copyright 1999-2021 Gentoo Authors
48 # Distributed under the terms of the GNU General Public License v2
49
50 -EAPI=7
51 +EAPI="7"
52
53 inherit toolchain-funcs
54
55 DESCRIPTION="Vietnamese input keyboard for X"
56 -SRC_URI="http://xvnkb.sourceforge.net/${P}.tar.bz2"
57 HOMEPAGE="http://xvnkb.sourceforge.net/"
58 +SRC_URI="http://${PN}.sourceforge.net/${P}.tar.bz2"
59
60 LICENSE="GPL-2"
61 SLOT="0"
62 KEYWORDS="amd64 ppc x86"
63 IUSE="spell xft"
64
65 -RDEPEND="
66 - x11-libs/libX11:=
67 +RDEPEND="x11-libs/libX11:=
68 xft? ( x11-libs/libXft:= )"
69 -DEPEND="
70 - ${RDEPEND}
71 +DEPEND="${RDEPEND}
72 x11-base/xorg-proto"
73 +BDEPEND="xft? ( virtual/pkgconfig )"
74
75 PATCHES=( "${FILESDIR}"/${P}-ldflags.patch )
76
77 -src_configure() {
78 +src_prepare() {
79 + default
80 tc-export CC
81 +}
82
83 - local myconf=()
84 - ! use spell && myconf+=( --no-spellcheck )
85 - ! use xft && myconf+=( --no-xft )
86 -
87 +src_configure() {
88 # *not* autotools
89 ./configure \
90 - --use-extstroke "${myconf[@]}" \
91 + $(usex spell '' '--no-spellcheck') \
92 + $(usex xft '' '--no-xft') \
93 + --use-extstroke \
94 || die "./configure failed"
95 }
96
97 src_install() {
98 - dobin xvnkb
99 - dobin tools/xvnkb_ctrl
100 + dobin ${PN}
101 + dobin tools/${PN}_ctrl
102
103 - dolib.so xvnkb.so.${PV}
104 - dosym xvnkb.so.${PV} /usr/$(get_libdir)/xvnkb.so
105 + dolib.so ${PN}.so.${PV}
106 + dosym ${PN}.so.${PV} /usr/$(get_libdir)/${PN}.so
107
108 einstalldocs
109 dodoc -r doc/. scripts contrib
110 @@ -51,10 +51,10 @@ pkg_postinst() {
111 elog "Remember to"
112 elog "$ export LANG=en_US.UTF-8"
113 elog "(or any other UTF-8 locale) and"
114 - elog "$ export LD_PRELOAD=/usr/$(get_libdir)/xvnkb.so"
115 + elog "$ export LD_PRELOAD=/usr/$(get_libdir)/${PN}.so"
116 elog "before starting X Window"
117 elog "More documents are in ${EROOT}/usr/share/doc/${PF}"
118
119 ewarn "Programs with suid/sgid will have LD_PRELOAD cleared"
120 - ewarn "You have to unset suid/sgid to use with xvnkb"
121 + ewarn "You have to unset suid/sgid to use with ${PN}"
122 }