blob: 0e8590527b3a6d2aa9f836feaf6718248df5af25 (
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
52
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
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
}
|