blob: 84a6a4853402b24dc114fcac2cd946cd7ace989b (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit flag-o-matic
GIT_VERSION="e9345b965492b4b2c2e6cf9795d43ad15c8758cc"
#git commit 2016/08/12
DESCRIPTION="minisatip, a SAT>IP server using local DVB-S2, DVB-C, DVB-T or ATSC cards"
HOMEPAGE="https://minisatip.org/"
SRC_URI="https://github.com/catalinii/minisatip/archive/${GIT_VERSION}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="-dvbcsa"
DEPEND="media-libs/libdvbcsa"
# libdvbcsa default installed without use-flag handling,
# as it fails on compile without it, need fixing by upstream
S="${WORKDIR}/minisatip-${GIT_VERSION}"
pkg_setup() {
append-flags -lpthread -fPIC -lrt
}
src_configure() {
local config_dvbcsa=""
! use dvbcsa && config_dvbcsa="--disable-dvbcsa"
econf \
--prefix=/usr/bin \
${config_dvbcsa} \
|| die "configure failed"
}
src_install() {
dobin minisatip
newinitd "${FILESDIR}"/minisatip.init minisatip
newconfd "${FILESDIR}"/minisatip.conf minisatip
local HTML_DOCS="html/*"
einstalldocs
}
|