summaryrefslogtreecommitdiff
blob: 1643c67211988a834efd8f3489727428d07cea60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5
inherit systemd user
DESCRIPTION="decode and send infra-red signals of many commonly used remote controls"
HOMEPAGE="http://www.lirc.org/"

MY_P=${PN}-${PV/_/}

if [[ "${PV/_pre/}" = "${PV}" ]]; then
    SRC_URI="mirror://sourceforge/lirc/${MY_P}.tar.bz2"
else
    SRC_URI="http://www.lirc.org/software/snapshots/${MY_P}.tar.bz2"
fi

LICENSE="GPL-2
         MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""

DEPEND="x11-libs/libX11
        x11-libs/libSM
		x11-libs/libICE
		"
RDEPEND="${DEPEND}"
src_prepare() {
	epatch "${FILESDIR}/lircd.service.patch"
}

pkg_preinst() {
    enewgroup lirc
    enewuser lirc -1 -1 -1 "lirc,daemon"
}