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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Jun 21 21:15:09 2014 UTC (6 years ago) by prometheanfire
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -3 lines
bup

fixing bug 442418
fixing bug 499204

(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-3.2.ebuild,v 1.1 2012/10/27 06:09:17 yngwin Exp $
4
5 EAPI=4
6
7 inherit eutils toolchain-funcs user
8
9 DESCRIPTION="A combined DVB receiver, Digital Video Recorder and Live TV streaming server"
10 HOMEPAGE="https://www.lonelycoder.com/redmine/projects/tvheadend/"
11 SRC_URI="mirror://github/tvheadend/tvheadend/v${PV}.tar.gz -> ${P}.tar.gz"
12
13 LICENSE="GPL-3"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="avahi xmltv zlib"
17
18 DEPEND="dev-libs/openssl
19 virtual/linuxtv-dvb-headers
20 avahi? ( net-dns/avahi )
21 zlib? ( sys-libs/zlib )"
22 RDEPEND="${DEPEND}
23 xmltv? ( media-tv/xmltv )"
24
25 DOCS=( README )
26
27 pkg_setup() {
28 enewuser tvheadend -1 -1 /dev/null video
29 }
30
31 src_prepare() {
32 # set the correct version number
33 sed -e "s:(3.1.694):(${PV}):" -i debian/changelog || die 'sed failed!'
34
35 # remove '-Werror' wrt bug #438424
36 sed -e 's:-Werror::' -i Makefile || die 'sed failed!'
37 }
38
39 src_configure() {
40 econf --prefix="${EPREFIX}"/usr \
41 --datadir="${EPREFIX}"/usr/share/"${PN}" \
42 --mandir="${EPREFIX}"/usr/share/man/man1 \
43 --release \
44 --disable-dvbscan \
45 $(use_enable avahi) \
46 $(use_enable zlib)
47 }
48
49 src_compile() {
50 emake CC="$(tc-getCC)"
51 }
52
53 src_install() {
54 default
55
56 newinitd "${FILESDIR}/tvheadend.initd" tvheadend
57 newconfd "${FILESDIR}/tvheadend.confd" tvheadend
58
59 dodir /etc/tvheadend
60 fperms 0700 /etc/tvheadend
61 fowners tvheadend:video /etc/tvheadend
62 }
63
64 pkg_postinst() {
65 elog "The Tvheadend web interface can be reached at:"
66 elog "http://localhost:9981/"
67 elog
68 elog "Make sure that you change the default username"
69 elog "and password via the Configuration / Access control"
70 elog "tab in the web interface."
71 }

  ViewVC Help
Powered by ViewVC 1.1.20