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/imsettings/
Date: Sun, 31 Oct 2021 13:02:07
Message-Id: 1635685318.bd59e303a275c915bf174f22ad86f491a01f7fec.hattya@gentoo
1 commit: bd59e303a275c915bf174f22ad86f491a01f7fec
2 Author: Akinori Hattori <hattya <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 31 13:01:00 2021 +0000
4 Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 31 13:01:58 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd59e303
7
8 app-i18n/imsettings: new upstream release
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org>
12
13 app-i18n/imsettings/Manifest | 1 +
14 app-i18n/imsettings/imsettings-1.8.2.ebuild | 70 +++++++++++++++++++++++++++++
15 2 files changed, 71 insertions(+)
16
17 diff --git a/app-i18n/imsettings/Manifest b/app-i18n/imsettings/Manifest
18 index 97bc272eeb7..03b0826442c 100644
19 --- a/app-i18n/imsettings/Manifest
20 +++ b/app-i18n/imsettings/Manifest
21 @@ -1 +1,2 @@
22 DIST imsettings-1.7.2.tar.bz2 595754 BLAKE2B 9964ab7ca842a7e1b9e9c61434275b55d6a58e271dd12058195573aa65c623d5152a04bc893b3ac4d983c4798bd6f4e8cdb486577be45ec43db6600f72c8cc3b SHA512 b28d67705d3d6a0ec95babaca616f750b73cdac5e01ed61e25a6527fd7f816a14654cd7233eca56d7427b9395e7ad75757b95cd7bd55c56bbdc145a3f8bfe1f0
23 +DIST imsettings-1.8.2.tar.bz2 705391 BLAKE2B 3b7f3e2ca2c08bc149be95fb97889ab58fc22be828b9801f4c342c1514a7be35644548d6a920fe657e1d85a9d35d8c2a40766f25d6420bb3da8a8f4e7a7ba739 SHA512 600315a20fd61eaa77a0add1e587861ad3ce70175d87639e43105d804cec59bfbc0219f2177c4d9e07d337231eb85514cbfd8af614a113b688ead372075b9ff4
24
25 diff --git a/app-i18n/imsettings/imsettings-1.8.2.ebuild b/app-i18n/imsettings/imsettings-1.8.2.ebuild
26 new file mode 100644
27 index 00000000000..a3af54bc07c
28 --- /dev/null
29 +++ b/app-i18n/imsettings/imsettings-1.8.2.ebuild
30 @@ -0,0 +1,70 @@
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 autotools
37 +
38 +DESCRIPTION="Delivery framework for general Input Method configuration"
39 +HOMEPAGE="https://tagoh.bitbucket.io/imsettings"
40 +SRC_URI="https://bitbucket.org/tagoh/${PN}/downloads/${P}.tar.bz2"
41 +
42 +LICENSE="LGPL-2.1"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~x86"
45 +IUSE="gconf qt5 +introspection xfconf"
46 +RESTRICT="test"
47 +
48 +RDEPEND="dev-libs/glib:2
49 + sys-apps/dbus
50 + virtual/libintl
51 + x11-libs/gtk+:3
52 + x11-libs/libX11
53 + x11-libs/libgxim
54 + x11-libs/libnotify
55 + gconf? ( gnome-base/gconf )
56 + introspection? ( dev-libs/gobject-introspection )
57 + xfconf? ( xfce-base/xfconf )"
58 +DEPEND="${RDEPEND}"
59 +BDEPEND="dev-util/glib-utils
60 + sys-devel/autoconf-archive
61 + sys-devel/gettext
62 + virtual/pkgconfig"
63 +
64 +PATCHES=( "${FILESDIR}"/${PN}-fno-common.patch )
65 +
66 +MY_XINPUTSH="90-xinput"
67 +
68 +src_prepare() {
69 + sed -i \
70 + -e "/PKG_CHECK_MODULES/s/\(gconf-2\.0\)/$(usex gconf '\1' _)/" \
71 + -e "/PKG_CHECK_MODULES/s/\(gtk+-2\.0\)/_/" \
72 + -e "/PKG_CHECK_MODULES/s/\(check\)/_/" \
73 + -e "/PKG_CHECK_MODULES/s/\(libxfconf-0\)/$(usex xfconf '\1' _)/" \
74 + -e "s/use_qt=\"yes\"/use_qt=\"$(usex qt5)\"/" \
75 + -e "/^GNOME_/d" \
76 + -e "/^CFLAGS/s/\$WARN_CFLAGS/-Wall -Wmissing-prototypes/" \
77 + configure.ac
78 +
79 + default
80 + eautoreconf
81 +}
82 +
83 +src_configure() {
84 + econf \
85 + --disable-static \
86 + --with-xinputsh=${MY_XINPUTSH}
87 +}
88 +
89 +src_install() {
90 + default
91 + find "${ED}" -name '*.la' -delete || die
92 +
93 + fperms 0755 /etc/X11/xinit/xinitrc.d/${MY_XINPUTSH}
94 +}
95 +
96 +pkg_postinst() {
97 + if [[ ! -e "${EPREFIX}"/etc/X11/xinit/xinputrc ]]; then
98 + ln -sf xinput.d/xcompose.conf "${EPREFIX}"/etc/X11/xinit/xinputrc
99 + fi
100 +}