/[gentoo-x86]/media-tv/tvheadend/tvheadend-9999.ebuild
Gentoo

Contents of /media-tv/tvheadend/tvheadend-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Jun 22 20:05:06 2014 UTC (6 years ago) by prometheanfire
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +4 -9 lines
fixes, thanks amak79

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x2471eb3e40ac5ac3)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-tv/tvheadend/tvheadend-9999.ebuild,v 1.1 2014/06/21 21:15:09 prometheanfire Exp $
4
5 EAPI=5
6
7 inherit eutils git-2 linux-info systemd toolchain-funcs user
8
9 DESCRIPTION="Tvheadend is a TV streaming server and digital video recorder"
10 HOMEPAGE="https://tvheadend.org/"
11 EGIT_REPO_URI="git://github.com/tvheadend/tvheadend.git"
12
13 LICENSE="GPL-3"
14 SLOT="0"
15 KEYWORDS=""
16
17 IUSE="avahi ccache +dvb +dvbscan ffmpeg imagecache inotify uriparser xmltv zlib"
18
19 DEPEND="dev-libs/openssl
20 avahi? ( net-dns/avahi )
21 ccache? ( dev-util/ccache )
22 dvb? ( virtual/linuxtv-dvb-headers )
23 ffmpeg? ( virtual/ffmpeg )
24 uriparser? ( dev-libs/uriparser )
25 zlib? ( sys-libs/zlib )
26 virtual/pkgconfig"
27
28 RDEPEND="${DEPEND}
29 dvbscan? ( media-tv/linuxtv-dvb-apps )
30 xmltv? ( media-tv/xmltv )"
31
32 CONFIG_CHECK="~INOTIFY_USER"
33
34 DOCS=( README.md )
35
36 pkg_setup() {
37 enewuser tvheadend -1 -1 /dev/null video
38 }
39
40 src_prepare() {
41 # remove '-Werror' wrt bug #438424
42 sed -e 's:-Werror::' -i Makefile || die 'sed failed!'
43 }
44
45 src_configure() {
46 econf --prefix="${EPREFIX}"/usr \
47 --datadir="${EPREFIX}"/usr/share \
48 $(use_enable avahi) \
49 $(use_enable ccache) \
50 --disable-dvbscan \
51 $(use_enable dvb linuxdvb) \
52 $(use_enable ffmpeg libav) \
53 $(use_enable imagecache) \
54 $(use_enable inotify) \
55 $(use_enable uriparser) \
56 $(use_enable zlib)
57 }
58
59 src_compile() {
60 emake CC="$(tc-getCC)"
61 }
62
63 src_install() {
64 default
65
66 newinitd "${FILESDIR}/tvheadend.initd" tvheadend
67 newconfd "${FILESDIR}/tvheadend.confd" tvheadend
68
69 systemd_dounit "${FILESDIR}/tvheadend.service"
70
71 dodir /etc/tvheadend
72 fperms 0700 /etc/tvheadend
73 fowners tvheadend:video /etc/tvheadend
74 }
75
76 pkg_postinst() {
77 elog "The Tvheadend web interface can be reached at:"
78 elog "http://localhost:9981/"
79 elog
80 elog "Make sure that you change the default username"
81 elog "and password via the Configuration / Access control"
82 elog "tab in the web interface."
83 }

  ViewVC Help
Powered by ViewVC 1.1.20