Skip to content

Commit

Permalink
media-tv/tvheadend: bump to -4.0.6, patch to fixing issues re IUSE iconv
Browse files Browse the repository at this point in the history
patch submitted thanks to Olliver Schinagl, ebuild prepared by new
designated proxy maintainer 'wraeth' submitted via gentoo bug,
old versions removed on request of maintainer.

Gnetoo bug: #551884

Package-Manager: portage-2.2.20.1
  • Loading branch information
Ian Delaney committed Oct 13, 2015
1 parent 9d1737b commit 90707a8
Show file tree
Hide file tree
Showing 8 changed files with 185 additions and 162 deletions.
4 changes: 2 additions & 2 deletions media-tv/tvheadend/Manifest
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
DIST hts-tvheadend_2.12.tar.gz 1475053 SHA256 c2e33384b24356be036bf8e58a026efeed247b001d3674929dc0016bf2b0e11b SHA512 87808a57454b58f458e8e7db6d381e34917064a0f196ed4e91f2ee912575282e121ada72d11ce6c3f8c5e2913dc4510b0b1e6a7d252b702946c033ef35e85c68 WHIRLPOOL 953735a6796972dbf5a7b2f541fc07c7dc2666e4a15f007fdefd92b7445055c227ce8b570088e4fd0810ffebd3271a19af7fd023eb58dfd046b24d45be5053cc
DIST tvheadend-3.2.tar.gz 2155532 SHA256 4bda0da2488c2078c6bd7e92ea5099c7c1e6c52fd361af965c83e82070cfb651 SHA512 f4f87a42c10bf9989606ca932ba916f9c70d0adfc1c0f6ee1f1dd3c23545de8e1699c4f519c56a7f5df0b27521d7f714c02ea5d30432756511baefb00ddd8d22 WHIRLPOOL 8dbf8c7eeff31b132f61d7ff8cf5412659e430e3fe47733ec54e7e804b8be608bd9886d8149975a91653608edeb641781e08c6f3df819dc08a4f7d96abe41dfb
DIST dtv-scan-tables-2015-02-08-f2053b3.tar.bz2 123415 SHA256 83ed1b669009ef325e5d9ccb897e48b31e15e71e81bff442b3d0bbd650131c77 SHA512 aedf0429c2ec0a4692e19c0b4ae1e8c063a5a0fb8695359aa8f716a7f40fd88435ed8b1d2aec2461de3f49b533d6cd012c2a54d06058a5291781da4adf82d609 WHIRLPOOL afaef58cdf2ce1ca03c0a695dbf13192b544e3c5a0012cc70a55834d0b1034d509174684fd0fe3f2111becbe32aac16cad5d467adc278a4b6b16c7dbd384757f
DIST tvheadend-3.4.27.tar.gz 2201905 SHA256 50438809ff43ab332d255248096e9531ac85e6c51511206a3f68cfc1697f4ead SHA512 fb6dc59fbaf5ea43f69452ff6b034ed80b040bb15f5c43f26a3f8075601066354f82e5cf15f7c5215adf1387edfa57468f71605aacfc0824a996aee108a0f11a WHIRLPOOL b0c92d8368cf7643a238d918752f8b1816ddcfde28372fecad228ab133d4e1dd6219d5b436c396fa4013af5269b2fd05b62bb6ce6180553d835204c8c38029ca
DIST tvheadend-4.0.6.tar.gz 15826173 SHA256 348c6890a3721217c159a8cdce746686e7a8c75bc14740ac5a75a82acf6b5116 SHA512 b5b9a39a9b6f4f1aa653b0d58b311d3580d5c10b2185a96bf73619b912385bece76fdd0d1e8327d97a2f5e3888729f10cfbfd395660d12749fb7a5d586fde266 WHIRLPOOL 6584d30b4f8f3a17cd79e74b7dc9a892c27a0c214258ff146247b342a58a8eba52ffc4ded9d35d761434671b600daec09e8df05c3b7f4f54db7116fb3a79946b
40 changes: 40 additions & 0 deletions media-tv/tvheadend/files/glibc_iconv.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
From 984bcbb1acadd2957d7fc79dc4ec72e2e07a3572 Mon Sep 17 00:00:00 2001
From: Olliver Schinagl <[email protected]>
Date: Sat, 26 Sep 2015 22:36:08 +0200
Subject: [PATCH] Use glibc version iconv

Signed-off-by: Olliver Schinagl <[email protected]>
---
Makefile | 2 +-
configure | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 07d6965..0ec0259 100644
--- a/Makefile
+++ b/Makefile
@@ -39,7 +39,7 @@ else
LDFLAGS += -ldl -lpthread -lm
endif
ifeq ($(CONFIG_LIBICONV),yes)
-LDFLAGS += -liconv
+LDFLAGS +=
endif
ifeq ($(PLATFORM), darwin)
LDFLAGS += -framework CoreServices
diff --git a/configure b/configure
index 487456b..a6cce11 100755
--- a/configure
+++ b/configure
@@ -214,7 +214,7 @@ int test(void)
iconv_t ic = iconv_open("ASCII", "ASCII");
return 0;
}
-' -liconv
+'

if enabled_or_auto dvben50221; then
check_cc_snippet libdvben50221 '
--
2.4.6

33 changes: 21 additions & 12 deletions media-tv/tvheadend/metadata.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>proxy-maintainers</herd>
<maintainer>
<email>[email protected]</email>
<name>Leho Kraav</name>
</maintainer>
<use>
<flag name='xmltv'>Use <pkg>media-tv/xmltv</pkg></flag>
<flag name='ccache'>Use <pkg>dev-util/ccache</pkg></flag>
<flag name='dvbscan'>Use <pkg>media-tv/linuxtv-dvb-apps</pkg></flag>
<flag name='imagecache'>Enable support for image caching</flag>
<flag name='uriparser'>Use <pkg>dev-libs/uriparser</pkg></flag>
</use>
<herd>proxy-maintainers</herd>
<maintainer>
<email>[email protected]</email>
<name>Sam Jorna</name>
<description>Proxy maintaner, to be assugned to bugs</description>
</maintainer>
<use>
<flag name='capmt'>Enable support for capmt (dvbapi) protocol</flag>
<flag name='constcw'>Enable support for the constcw protocol</flag>
<flag name='cwc'>Enable support for the cwc (newcamd) protocol</flag>
<flag name='epoll'>Enable epoll Linux system call</flag>
<flag name='hdhomerun'>Enable support for the HDHomeRun device</flag>
<flag name='iptv'>Enable support for Internet Protocol TV</flag>
<flag name='satip'>Enable support for IP-based Satellite TV</flag>
<flag name='timeshift'>Enable TimeShift support</flag>
<flag name='xmltv'>Use <pkg>media-tv/xmltv</pkg></flag>
<flag name='ccache'>Use <pkg>dev-util/ccache</pkg></flag>
<flag name='dvbscan'>Use <pkg>media-tv/linuxtv-dvb-apps</pkg></flag>
<flag name='imagecache'>Enable support for image caching</flag>
<flag name='uriparser'>Use <pkg>dev-libs/uriparser</pkg></flag>
</use>
</pkgmetadata>
73 changes: 0 additions & 73 deletions media-tv/tvheadend/tvheadend-2.12.ebuild

This file was deleted.

71 changes: 0 additions & 71 deletions media-tv/tvheadend/tvheadend-3.2.ebuild

This file was deleted.

4 changes: 2 additions & 2 deletions media-tv/tvheadend/tvheadend-3.4.27.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2014 Gentoo Foundation
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

Expand All @@ -20,7 +20,7 @@ IUSE="avahi +dvb +dvbscan ffmpeg imagecache inotify xmltv zlib"

REQUIRED_USE="dvbscan? ( dvb )"

DEPEND="dev-libs/openssl
DEPEND="dev-libs/openssl:0=
avahi? ( net-dns/avahi )
dvb? ( virtual/linuxtv-dvb-headers )
ffmpeg? ( virtual/ffmpeg )
Expand Down
118 changes: 118 additions & 0 deletions media-tv/tvheadend/tvheadend-4.0.6.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

inherit eutils linux-info systemd toolchain-funcs user

DESCRIPTION="Tvheadend is a TV streaming server and digital video recorder"
HOMEPAGE="https://tvheadend.org/"
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
dvbscan? ( http://linuxtv.org/downloads/dtv-scan-tables/dtv-scan-tables-2015-02-08-f2053b3.tar.bz2 )"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"

IUSE="avahi ccache capmt constcw +cwc dbus +dvb +dvbscan epoll ffmpeg hdhomerun libav iconv imagecache inotify iptv satip +timeshift uriparser xmltv zlib"

RDEPEND="dev-libs/openssl:=
avahi? ( net-dns/avahi )
capmt? ( virtual/linuxtv-dvb-headers )
ccache? ( dev-util/ccache sys-libs/zlib )
dbus? ( sys-apps/dbus )
dvb? ( virtual/linuxtv-dvb-headers )
ffmpeg? ( virtual/ffmpeg )
hdhomerun? ( media-libs/libhdhomerun )
iconv? ( virtual/libiconv )
libav? ( media-video/libav )
imagecache? ( net-misc/curl )
uriparser? ( dev-libs/uriparser )
zlib? ( sys-libs/zlib )
xmltv? ( media-tv/xmltv )"

DEPEND="${DEPEND}
virtual/pkgconfig"

CONFIG_CHECK="~INOTIFY_USER"

DOCS=( README.md )

src_unpack() {
unpack "${P}.tar.gz"

if use dvbscan; then
mkdir "${S}/data/dvb-scan" || die
cd "${T}"
unpack dtv-scan-tables-2015-02-08-f2053b3.tar.bz2
rmdir "${S}/data/dvb-scan" || die
mv "${T}/usr/share/dvb" "${S}/data/dvb-scan" || die

# This is needed to prevent make from removing files
touch "${S}/data/dvb-scan/.stamp" || die
fi
}

pkg_setup() {
enewuser tvheadend -1 -1 /dev/null video
}

src_prepare() {
# remove '-Werror' wrt bug #438424
sed -e 's:-Werror::' -i Makefile || die 'sed failed!'
epatch "${FILESDIR}/${PV}-use-glibc-version-iconv.patch"
}

src_configure() {
econf --prefix="${EPREFIX}"/usr \
--datadir="${EPREFIX}"/usr/share \
--mandir="${EPREFIX}"/usr/share/man/man1 \
$(use_enable avahi) \
$(use_enable ccache) \
$(use_enable capmt) \
$(use_enable constcw) \
$(use_enable cwc) \
$(use_enable dbus) \
$(use_enable dvb linuxdvb) \
$(use_enable dvbscan) \
$(use_enable epoll) \
--disable-kqueue \
$(use_enable ffmpeg libav) \
$(use_enable hdhomerun hdhomerun_client) \
$(use_enable libav) \
$(use_enable imagecache) \
$(use_enable inotify) \
$(use_enable iptv) \
$(use_enable satip satip_server) \
$(use_enable satip satip_client) \
$(use_enable timeshift) \
$(use_enable uriparser) \
$(use_enable zlib)
}

src_compile() {
emake CC="$(tc-getCC)"
}

src_install() {
default

newinitd "${FILESDIR}/tvheadend.initd" tvheadend
newconfd "${FILESDIR}/tvheadend.confd" tvheadend

systemd_dounit "${FILESDIR}/tvheadend.service"

dodir /etc/tvheadend
fperms 0700 /etc/tvheadend
fowners tvheadend:video /etc/tvheadend
}

pkg_postinst() {
elog "The Tvheadend web interface can be reached at:"
elog "http://localhost:9981/"
elog
elog "Make sure that you change the default username"
elog "and password via the Configuration / Access control"
elog "tab in the web interface."
}
4 changes: 2 additions & 2 deletions media-tv/tvheadend/tvheadend-9999.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2014 Gentoo Foundation
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

Expand All @@ -16,7 +16,7 @@ KEYWORDS=""

IUSE="avahi ccache +dvb +dvbscan ffmpeg imagecache inotify uriparser xmltv zlib"

DEPEND="dev-libs/openssl
DEPEND="dev-libs/openssl:0=
avahi? ( net-dns/avahi )
ccache? ( dev-util/ccache )
dvb? ( virtual/linuxtv-dvb-headers )
Expand Down

0 comments on commit 90707a8

Please sign in to comment.