summaryrefslogtreecommitdiff
blob: fbbbaa08058095f425ed9e2db72cd9c07f5d4947 (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
37
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5
inherit systemd
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_install() {
	systemd_dounit "${FILESDIR}"/lircd.service
}

pkg_preinst() {
    enewgroup lirc
    enewuser lirc -1 /bin/false /dev/null "lirc,daemon"
}