Gentoo Archives: gentoo-commits

From: Sam Jorna <wraeth@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/inputlircd/, app-misc/inputlircd/files/
Date: Sat, 30 Apr 2016 11:36:13
Message-Id: 1462016061.dfddec86a5787c2dc3633a0468d681126181d6a2.wraeth@gentoo
1 commit: dfddec86a5787c2dc3633a0468d681126181d6a2
2 Author: Sam Jorna <wraeth <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 30 11:32:51 2016 +0000
4 Commit: Sam Jorna <wraeth <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 30 11:34:21 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfddec86
7
8 app-misc/inputlircd: revbump, fix build with headers-4.4
9
10 Introduces conditional patch for building against linux-headers-4.4, fixing a
11 runtime issue with using unknown commands for the lirc socket. Patch and
12 initial ebuild submitted by user Michael Cook, ebuild updated to EAPI6.
13
14 Gentoo-bug: 581410
15 Package-Manager: portage-2.2.28
16
17 .../files/inputlircd-linux-4.4-fix.patch | 13 ++++++++
18 .../inputlircd/inputlircd-0.0.1_pre15-r2.ebuild | 37 ++++++++++++++++++++++
19 2 files changed, 50 insertions(+)
20
21 diff --git a/app-misc/inputlircd/files/inputlircd-linux-4.4-fix.patch b/app-misc/inputlircd/files/inputlircd-linux-4.4-fix.patch
22 new file mode 100644
23 index 0000000..c605e34
24 --- /dev/null
25 +++ b/app-misc/inputlircd/files/inputlircd-linux-4.4-fix.patch
26 @@ -0,0 +1,13 @@
27 +diff --git a/Makefile b/Makefile
28 +index 71bc693..3904632 100644
29 +--- a/Makefile
30 ++++ b/Makefile
31 +@@ -27,7 +27,7 @@ MANDIR ?= $(SHAREDIR)/man
32 +
33 + all: $(SBIN)
34 +
35 +-names.h: /usr/include/linux/input.h gennames
36 ++names.h: /usr/include/linux/input-event-codes.h gennames
37 + ./gennames $< > $@
38 +
39 + inputlircd: inputlircd.c /usr/include/linux/input.h names.h
40
41 diff --git a/app-misc/inputlircd/inputlircd-0.0.1_pre15-r2.ebuild b/app-misc/inputlircd/inputlircd-0.0.1_pre15-r2.ebuild
42 new file mode 100644
43 index 0000000..d428d3f
44 --- /dev/null
45 +++ b/app-misc/inputlircd/inputlircd-0.0.1_pre15-r2.ebuild
46 @@ -0,0 +1,37 @@
47 +# Copyright 1999-2016 Gentoo Foundation
48 +# Distributed under the terms of the GNU General Public License v2
49 +# $Id$
50 +
51 +EAPI=6
52 +inherit toolchain-funcs eutils versionator
53 +
54 +DESCRIPTION="Inputlirc daemon to utilize /dev/input/event*"
55 +HOMEPAGE="http://svn.sliepen.eu.org/inputlirc/trunk"
56 +SRC_URI="http://gentooexperimental.org/~genstef/dist/${P}.tar.gz"
57 +
58 +LICENSE="GPL-2"
59 +SLOT="0"
60 +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~x86"
61 +
62 +src_prepare() {
63 + local ver="$(best_version sys-kernel/linux-headers)"
64 + ver=${ver#sys-kernel/linux-headers-}
65 + if version_is_at_least 4.4 ${ver} ; then
66 + epatch "${FILESDIR}/inputlircd-linux-4.4-fix.patch"
67 + fi
68 +
69 + sed -e 's:$(CFLAGS):$(CFLAGS) $(LDFLAGS):' -i Makefile || die
70 +
71 + default
72 +}
73 +
74 +src_compile() {
75 + emake CC="$(tc-getCC)"
76 +}
77 +
78 +src_install() {
79 + emake DESTDIR="${D}" PREFIX=/usr install
80 +
81 + newinitd "${FILESDIR}"/inputlircd.init.2 inputlircd
82 + newconfd "${FILESDIR}"/inputlircd.conf inputlircd
83 +}