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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Oct 16 07:09:34 2012 UTC (7 years, 8 months ago) by pinkbyte
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +4 -1 lines
Remove '-Werror' wrt bug #438424

(Portage version: 2.2.0_alpha134/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-tv/tvheadend/tvheadend-2.12.ebuild,v 1.2 2012/10/15 08:23:04 pinkbyte Exp $
4
5 EAPI=4
6
7 inherit eutils toolchain-funcs user
8
9 MY_PN="hts-${PN}"
10
11 DESCRIPTION="A combined DVB receiver, Digital Video Recorder and Live TV streaming server"
12 HOMEPAGE="http://www.lonelycoder.com/hts/"
13 SRC_URI="http://www.lonelycoder.com/debian/dists/hts/main/source/${MY_PN}_${PV}.tar.gz"
14
15 LICENSE="GPL-3"
16 SLOT="0"
17 KEYWORDS="~amd64 ~x86"
18 IUSE="avahi xmltv"
19
20 DEPEND="virtual/linuxtv-dvb-headers"
21 RDEPEND="${DEPEND}
22 avahi? ( net-dns/avahi )
23 xmltv? ( media-tv/xmltv )"
24
25 S="${WORKDIR}/${MY_PN}-${PV}"
26
27 pkg_setup() {
28 enewuser tvheadend -1 -1 /dev/null video
29 }
30
31 src_prepare() {
32 # set version number to avoid subversion and git dependencies
33 sed -e 's:\$(shell support/version.sh):${PV}:' \
34 -i Makefile || die "sed failed!"
35
36 # remove stripping
37 sed -e 's:install -s:install:' \
38 -i support/posix.mk || die "sed failed!"
39
40 # remove '-Werror' wrt bug #438424
41 sed -i 's:-Werror::' Makefile || die "sed on removing '-Werror' failed!"
42 }
43
44 src_configure() {
45 econf $(use_enable avahi) --release
46 }
47
48 src_compile() {
49 emake CC="$(tc-getCC)"
50 }
51
52 src_install() {
53 emake DESTDIR="${D}" install
54
55 dodoc ChangeLog README
56 doman man/tvheadend.1
57
58 newinitd "${FILESDIR}/tvheadend.initd" tvheadend
59 newconfd "${FILESDIR}/tvheadend.confd" tvheadend
60
61 dodir /etc/tvheadend
62 fperms 0700 /etc/tvheadend
63 fowners tvheadend:video /etc/tvheadend
64 }
65
66 pkg_postinst() {
67 elog "The Tvheadend web interface can be reached at:"
68 elog "http://localhost:9981/"
69 elog
70 elog "Make sure that you change the default username"
71 elog "and password via the Configuration / Access control"
72 elog "tab in the web interface."
73 }

  ViewVC Help
Powered by ViewVC 1.1.20