Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-libs/libfakekey/
Date: Sat, 30 May 2020 08:37:59
Message-Id: 1590827865.fec1848c871caea335f7651f5898ce476b81ca90.asturm@gentoo
1 commit: fec1848c871caea335f7651f5898ce476b81ca90
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 30 08:36:17 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat May 30 08:37:45 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fec1848c
7
8 x11-libs/libfakekey: --disable-static
9
10 Closes: https://bugs.gentoo.org/726146
11 Package-Manager: Portage-2.3.100, Repoman-2.3.22
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 x11-libs/libfakekey/libfakekey-0.3-r1.ebuild | 48 ++++++++++++++++++++++++++++
15 1 file changed, 48 insertions(+)
16
17 diff --git a/x11-libs/libfakekey/libfakekey-0.3-r1.ebuild b/x11-libs/libfakekey/libfakekey-0.3-r1.ebuild
18 new file mode 100644
19 index 00000000000..ba84cd53b00
20 --- /dev/null
21 +++ b/x11-libs/libfakekey/libfakekey-0.3-r1.ebuild
22 @@ -0,0 +1,48 @@
23 +# Copyright 1999-2020 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=7
27 +
28 +inherit autotools
29 +
30 +DESCRIPTION="Helper library for the x11-misc/matchbox-keyboard package"
31 +HOMEPAGE="https://www.yoctoproject.org/tools-resources/projects/matchbox"
32 +SRC_URI="https://git.yoctoproject.org/cgit/cgit.cgi/${PN}/snapshot/${P}.tar.bz2"
33 +
34 +LICENSE="GPL-2"
35 +SLOT="0"
36 +KEYWORDS="amd64 ~arm ~arm64 ~hppa ppc ~ppc64 x86"
37 +IUSE="debug doc"
38 +
39 +BDEPEND="doc? ( app-doc/doxygen )"
40 +DEPEND="x11-libs/libXtst"
41 +RDEPEND="${DEPEND}"
42 +
43 +PATCHES=( "${FILESDIR}/${P}-ac.patch" ) # Allow configure to use libtool-2
44 +
45 +src_prepare() {
46 + default
47 +
48 + # Fix underlinking bug #367595
49 + sed -i -e 's/^fakekey_test_LDADD=/fakekey_test_LDADD=-lX11 /' \
50 + tests/Makefile.am || die 'Cannot sed Makefile.am'
51 + sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac || die
52 + eautoreconf
53 +}
54 +
55 +src_configure() {
56 + local myeconfargs=(
57 + # --with/without-x is ignored by configure script and X is used.
58 + --with-x
59 + --disable-static
60 + $(use_enable debug)
61 + $(use_enable doc doxygen-docs)
62 + )
63 + econf "${myeconfargs[@]}"
64 +}
65 +
66 +src_install() {
67 + use doc && local HTML_DOCS=( doc/html/. )
68 + default
69 + find "${D}" -name '*.la' -type f -delete || die
70 +}