You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-misc/inputlircd/inputlircd-0.0.1_pre15-r1.e...

35 lines
790 B

# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
inherit toolchain-funcs
DESCRIPTION="Inputlirc daemon to utilize /dev/input/event*"
HOMEPAGE="http://svn.sliepen.eu.org/inputlirc/trunk"
SRC_URI="http://gentooexperimental.org/~genstef/dist/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~x86"
IUSE=""
DEPEND=""
RDEPEND=""
src_unpack() {
unpack ${A}
cd "${S}"
sed -e 's:$(CFLAGS):$(CFLAGS) $(LDFLAGS):' -i Makefile || die
}
src_compile() {
emake CC="$(tc-getCC)" || die "make failed"
}
src_install() {
emake DESTDIR="${D}" PREFIX=/usr install || die "emake install failed"
newinitd "${FILESDIR}"/inputlircd.init.2 inputlircd
newconfd "${FILESDIR}"/inputlircd.conf inputlircd
}