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/files/, x11-libs/libfakekey/
Date: Mon, 26 Feb 2018 22:46:36
Message-Id: 1519685174.5e170dd844a9d4eb1726cf05ed41b70c61afd696.asturm@gentoo
1 commit: 5e170dd844a9d4eb1726cf05ed41b70c61afd696
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 26 22:41:08 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 26 22:46:14 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e170dd8
7
8 x11-libs/libfakekey: EAPI 6, homepage, src_uri, drop eutils
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 x11-libs/libfakekey/files/libfakekey-0.1-ac.patch | 4 +-
13 x11-libs/libfakekey/libfakekey-0.1-r3.ebuild | 48 +++++++++++++++++++++++
14 2 files changed, 50 insertions(+), 2 deletions(-)
15
16 diff --git a/x11-libs/libfakekey/files/libfakekey-0.1-ac.patch b/x11-libs/libfakekey/files/libfakekey-0.1-ac.patch
17 index 65c0b083aa7..7158ad220ef 100644
18 --- a/x11-libs/libfakekey/files/libfakekey-0.1-ac.patch
19 +++ b/x11-libs/libfakekey/files/libfakekey-0.1-ac.patch
20 @@ -1,5 +1,5 @@
21 ---- configure.ac.old 2011-05-22 14:59:45.801746472 +0100
22 -+++ configure.ac 2011-05-22 15:02:59.437159981 +0100
23 +--- a/configure.ac 2011-05-22 14:59:45.801746472 +0100
24 ++++ b/configure.ac 2011-05-22 15:02:59.437159981 +0100
25 @@ -14,16 +14,14 @@ AC_HEADER_STDC
26
27 dnl ------ libtool versioning -----------------------------------------------
28
29 diff --git a/x11-libs/libfakekey/libfakekey-0.1-r3.ebuild b/x11-libs/libfakekey/libfakekey-0.1-r3.ebuild
30 new file mode 100644
31 index 00000000000..ac34a6d782c
32 --- /dev/null
33 +++ b/x11-libs/libfakekey/libfakekey-0.1-r3.ebuild
34 @@ -0,0 +1,48 @@
35 +# Copyright 1999-2018 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=6
39 +
40 +inherit autotools
41 +
42 +DESCRIPTION="Helper library for the x11-misc/matchbox-keyboard package"
43 +HOMEPAGE="https://www.yoctoproject.org/tools-resources/projects/matchbox"
44 +SRC_URI="http://downloads.yoctoproject.org/releases/matchbox/${PN}/${PV}/${P}.tar.bz2"
45 +LICENSE="GPL-2"
46 +SLOT="0"
47 +
48 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
49 +IUSE="debug doc"
50 +
51 +RDEPEND="x11-libs/libXtst"
52 +
53 +DEPEND="${RDEPEND}
54 + doc? ( app-doc/doxygen )"
55 +
56 +PATCHES=(
57 + # Allow configure to use libtool-2
58 + "${FILESDIR}/${P}-ac.patch"
59 +)
60 +
61 +src_prepare() {
62 + default
63 +
64 + # Fix underlinking bug #367595
65 + sed -i -e 's/^fakekey_test_LDADD=/fakekey_test_LDADD=-lX11 /' \
66 + tests/Makefile.am || die 'Cannot sed Makefile.am'
67 + sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac || die
68 + eautoreconf
69 +}
70 +
71 +src_configure() {
72 + # --with/without-x is ignored by configure script and X is used.
73 + econf --with-x \
74 + $(use_enable debug) \
75 + $(use_enable doc doxygen-docs)
76 +}
77 +
78 +src_install() {
79 + emake DESTDIR="${D}" install
80 + use doc && local HTML_DOCS=( doc/html/. )
81 + einstalldocs
82 +}