app-misc/inputlircd: drop 0.0.1_pre15-r2, EAPI-6--

Closes: https://bugs.gentoo.org/865439
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Andreas Sturmlechner
2022-08-17 12:52:16 +02:00
parent d8c0773482
commit 19b6abc3ab

View File

@@ -1,37 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit toolchain-funcs versionator
DESCRIPTION="Inputlirc daemon to utilize /dev/input/event*"
HOMEPAGE="https://github.com/ferdinandhuebner/inputlirc"
SRC_URI="http://gentooexperimental.org/~genstef/dist/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm ~arm64 ~ia64 ppc ppc64 ~riscv x86"
src_prepare() {
local ver="$(best_version sys-kernel/linux-headers)"
ver=${ver#sys-kernel/linux-headers-}
if version_is_at_least 4.4 ${ver} ; then
eapply "${FILESDIR}/inputlircd-linux-4.4-fix.patch"
fi
sed -e 's:$(CFLAGS):$(CFLAGS) $(LDFLAGS):' -i Makefile || die
default
}
src_compile() {
emake CC="$(tc-getCC)"
}
src_install() {
emake DESTDIR="${D}" PREFIX=/usr install
newinitd "${FILESDIR}"/inputlircd.init.2 inputlircd
newconfd "${FILESDIR}"/inputlircd.conf inputlircd
}