summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2013-06-02 18:40:18 +0000
committerMichael Weber <xmw@gentoo.org>2013-06-02 18:40:18 +0000
commit36049baef0a5f59b072c11ffcfced8cb6097ad47 (patch)
tree5ee4ca57e66c5f3fbb47fe130759eca79eb19dd2 /media-tv
parentStable for amd64 wrt bug #471692 (diff)
downloadhistorical-36049baef0a5f59b072c11ffcfced8cb6097ad47.tar.gz
historical-36049baef0a5f59b072c11ffcfced8cb6097ad47.tar.bz2
historical-36049baef0a5f59b072c11ffcfced8cb6097ad47.zip
Add alevt videotext decoder support (bug 423687, thanks Tobias Leupold), add perl DEPEND (bug 433155, thanks bay), rename scan to scan-dvb (bug 348371, thanks Bill Prendergast), support LDFLAGS (bug 331095, thanks Olivier Huber and thomasg).
Package-Manager: portage-2.2.0_alpha177/cvs/Linux x86_64 Manifest-Sign-Key: 0x62EEF090
Diffstat (limited to 'media-tv')
-rw-r--r--media-tv/linuxtv-dvb-apps/ChangeLog16
-rw-r--r--media-tv/linuxtv-dvb-apps/Manifest37
-rw-r--r--media-tv/linuxtv-dvb-apps/files/linuxtv-dvb-apps-1.1.1.20100223-alevt.patch37
-rw-r--r--media-tv/linuxtv-dvb-apps/files/linuxtv-dvb-apps-1.1.1.20100223-ldflags.patch20
-rw-r--r--media-tv/linuxtv-dvb-apps/linuxtv-dvb-apps-1.1.1.20100223-r1.ebuild86
-rw-r--r--media-tv/linuxtv-dvb-apps/metadata.xml3
6 files changed, 179 insertions, 20 deletions
diff --git a/media-tv/linuxtv-dvb-apps/ChangeLog b/media-tv/linuxtv-dvb-apps/ChangeLog
index 4cf2f33a8b02..53b4dac7e3d6 100644
--- a/media-tv/linuxtv-dvb-apps/ChangeLog
+++ b/media-tv/linuxtv-dvb-apps/ChangeLog
@@ -1,6 +1,17 @@
# ChangeLog for media-tv/linuxtv-dvb-apps
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-tv/linuxtv-dvb-apps/ChangeLog,v 1.48 2012/02/15 18:27:38 hd_brummy Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-tv/linuxtv-dvb-apps/ChangeLog,v 1.49 2013/06/02 18:40:08 xmw Exp $
+
+*linuxtv-dvb-apps-1.1.1.20100223-r1 (02 Jun 2013)
+
+ 02 Jun 2013; Michael Weber <xmw@gentoo.org>
+ +files/linuxtv-dvb-apps-1.1.1.20100223-alevt.patch,
+ +files/linuxtv-dvb-apps-1.1.1.20100223-ldflags.patch,
+ +linuxtv-dvb-apps-1.1.1.20100223-r1.ebuild, metadata.xml:
+ Add alevt videotext decoder support (bug 423687, thanks Tobias Leupold), add
+ perl DEPEND (bug 433155, thanks bay), rename scan to scan-dvb (bug 348371,
+ thanks Bill Prendergast), support LDFLAGS (bug 331095, thanks Olivier Huber
+ and thomasg).
15 Feb 2012; Joerg Bornkessel <hd_brummy@gentoo.org>
linuxtv-dvb-apps-1.1.1.20070114.ebuild,
@@ -259,4 +270,3 @@
04 Jul 2005; Thomas Raschbacher <lordvan@gentoo.org> +linuxtv-dvb-apps-1.1.0.ebuild, +metadata.xml,
+linuxtv-dvb-apps-1.1.0.ebuild:
initial import
-
diff --git a/media-tv/linuxtv-dvb-apps/Manifest b/media-tv/linuxtv-dvb-apps/Manifest
index 51e36f62a023..5a1c35702d30 100644
--- a/media-tv/linuxtv-dvb-apps/Manifest
+++ b/media-tv/linuxtv-dvb-apps/Manifest
@@ -1,22 +1,25 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
+Hash: SHA256
-AUX linuxtv-dvb-apps-20070114-linux-headers-2.6.22.diff 485 RMD160 770c70019cecfcd4202aa7c59598bdfddfc3e3df SHA1 47fc8e8bae1fc3c53d522c20b509618bf6aa2bcc SHA256 a75badcabe081924d0fdcdfa844b81b429478e042c9902e619f95e929f8c81e8
-DIST linuxtv-dvb-apps-20060917.tar.bz2 278797 RMD160 7d4478f0baa698ed62327993c5d9fd2e51c852f8 SHA1 17d1281adede30215466edbaa5b521f963e3ea60 SHA256 535f9d68e5f49650f12ec39aa3b7f4c9a5a07af9a7cd7addc210d8083743aaf0
-DIST linuxtv-dvb-apps-20070114.tar.bz2 311657 RMD160 7903be5c782d76829d00f16345e1f869e663bbc9 SHA1 026c3e45fb778e399384f23d4eab7dc03c66dd9c SHA256 c4fbe3df4cf02a63fb8b6c6343b33b13cfa0400559224e40421f227fa27e5afd
-DIST linuxtv-dvb-apps-20080317.tar.bz2 314588 RMD160 0f3248ecddd82e33304797d1ab1df1cc631e2871 SHA1 cd29d7a4658e922cf2e947c9034e051f9d35d2d7 SHA256 639c9240e8944b95f7e78efdbb42ad866b965af68e420f614dabefd22adf5cdf
-DIST linuxtv-dvb-apps-20100223.tar.bz2 429129 RMD160 586c1ead07cc9f288d67dd923b1a327029f09bf9 SHA1 bbedcfa4a3ff0e1ab3da66c3b0d19bb081a725af SHA256 8a657a1479de665a6d95d8f5585ffd0228232e1a030b88435d4c40d85e983461
-EBUILD linuxtv-dvb-apps-1.1.1.20060917.ebuild 2503 RMD160 a689fa1ba1d1baace9bece08887f9f318f9b4954 SHA1 dc4b71d01dc66bdd90722d6527bc9b0e5507fd67 SHA256 0ae707007a834d8b2d503787f7ddf5bf634ead41ededad9860eed43b624eb39a
-EBUILD linuxtv-dvb-apps-1.1.1.20070114.ebuild 2447 RMD160 4df8a95bc0f0f9374af31d1efddb890fae38cb19 SHA1 cd73c0d7097e3c422696a8363b8fd18accf70e06 SHA256 0cac97840ea091d35daf99e9c6645220e658bdd33d9f68bfba36939199d2ef6b
-EBUILD linuxtv-dvb-apps-1.1.1.20080317.ebuild 2262 RMD160 a649501ceffa953d10341f434e4e33714ec56ff4 SHA1 189c884b05d23dd7e3a9cac0047fff80a11cf053 SHA256 be288461c2a2303896b39450343fe58d79e92688545aaab11e880956201a77c6
-EBUILD linuxtv-dvb-apps-1.1.1.20100223.ebuild 2110 RMD160 aa9aec8083dd5631a7b71e186e8c70cf4fa0f273 SHA1 87dd782aceb6fdae53f57de999cde6a5cba550fd SHA256 3ca5d6862b7f7369858b3ca720b716d239293010aeb337b44e498cf5d71cd542
-MISC ChangeLog 9562 RMD160 58f4c96e05df7b9a9cc58990c85112af64c0f0dd SHA1 8857ce7b4f42d08f0b9af65434960be727a1b25a SHA256 caf5ccab0eb0eda98d81470e3d55f5b8e6ce01707fceb158cff0be6d49210b98
-MISC metadata.xml 161 RMD160 fee76f69ba822cd04301c58fa0c26ecaf8cc8fb9 SHA1 0aee2176f15a238a6d8fbbf83e4e0fd58653a3fa SHA256 82d33b3ca60662bc745d30d53bb20d04ea588d5aae556ed16efcacdcc37fd4bd
+AUX linuxtv-dvb-apps-1.1.1.20100223-alevt.patch 1418 SHA256 1707ddbdac648059c84837fdabdcb2fa2d73661748f82163023a187d0ecc9ffd SHA512 7490d18c3408bc412a3f3a3bb54544885f863ee146176dd8f9caae624043b5ad797f9fe9edc1ae627fd82b0fdb392e6f458d814e68a11ef4efa253c1add4016d WHIRLPOOL 3feab555bd3c4b721fb815a19799ed04f2228a4e8841a1b1de2913770d34cdd1b616738031cf3b7b077cafa66c27febd683b69441caaad0f7d1a7ca357f3a0dd
+AUX linuxtv-dvb-apps-1.1.1.20100223-ldflags.patch 607 SHA256 8eb444d72c922db4166c5f926ae80537c56e1087ef792be34749caa6629f7e94 SHA512 abaf61336531e33148a8a0d5d4dfa545a607b077430e6e9ae363a667524fcf3d41e5fec1112e795dcf6be5160a8ef57049b224dac42b1211d3ea3b9f865dba48 WHIRLPOOL bfe1e4b63c54eb4b903030fe33ef1a5332756f652ace3b423b03e695e4959c9fd26eb03bc15ed67b8ef324cce508e53b90dc66b6766a7e466e2d5ee085708591
+AUX linuxtv-dvb-apps-20070114-linux-headers-2.6.22.diff 485 SHA256 a75badcabe081924d0fdcdfa844b81b429478e042c9902e619f95e929f8c81e8 SHA512 ce383c52ff46a4e8e2c1a3b2e27e896f2d556dcf9bf4da692a27f3b50bbdba148b25a810343ea45857057bfc4a1075cd58b4b27fade4484b044b66038a990e41 WHIRLPOOL 3cd36ec828175a82bf2e86917d4cb82b83f8684e55760e56451c7408e7dec98c3825733a042cfa0e8451b42409c253ce42610625bab3b9fee80f452b3c1c5bd4
+DIST linuxtv-dvb-apps-1.1.1.20100223.tar.bz2 429129 SHA256 8a657a1479de665a6d95d8f5585ffd0228232e1a030b88435d4c40d85e983461 SHA512 0950197e2a199b1ab4392fa2e893d9b537d2b8fed05b24d8b81a2abf11ed2373dcb299a51e217c6508ea68b81691728b120328e4080de68519449fc5fd506161 WHIRLPOOL 5129c13fbc1cc65c9a5177d29de87563c22f4a8c78bbe4534e65a9c46b3683344c5a296cd157379c7af9500a9079daea8418b927a65ed1596d24d6300441ed20
+DIST linuxtv-dvb-apps-20060917.tar.bz2 278797 SHA256 535f9d68e5f49650f12ec39aa3b7f4c9a5a07af9a7cd7addc210d8083743aaf0
+DIST linuxtv-dvb-apps-20070114.tar.bz2 311657 SHA256 c4fbe3df4cf02a63fb8b6c6343b33b13cfa0400559224e40421f227fa27e5afd
+DIST linuxtv-dvb-apps-20080317.tar.bz2 314588 SHA256 639c9240e8944b95f7e78efdbb42ad866b965af68e420f614dabefd22adf5cdf
+DIST linuxtv-dvb-apps-20100223.tar.bz2 429129 SHA256 8a657a1479de665a6d95d8f5585ffd0228232e1a030b88435d4c40d85e983461 SHA512 0950197e2a199b1ab4392fa2e893d9b537d2b8fed05b24d8b81a2abf11ed2373dcb299a51e217c6508ea68b81691728b120328e4080de68519449fc5fd506161 WHIRLPOOL 5129c13fbc1cc65c9a5177d29de87563c22f4a8c78bbe4534e65a9c46b3683344c5a296cd157379c7af9500a9079daea8418b927a65ed1596d24d6300441ed20
+EBUILD linuxtv-dvb-apps-1.1.1.20060917.ebuild 2503 SHA256 0ae707007a834d8b2d503787f7ddf5bf634ead41ededad9860eed43b624eb39a SHA512 a302b7a15c66a2e198f6cda44902efcd4e41f1e03b3ebfe54e55e139ec4060aa08bdd1997bcf65c86651c27acc034d5d6f5935eeca6eaa4d2652ac5895eb1b52 WHIRLPOOL 35df0c4b6f0e28e9a04b0122935098598eaadfb4309c67e737dde370b5b8a51b7719cdcae862de038ac7a2e1a5cea7c4a9a8e59fe7f5d960f3399e6b89c91fc1
+EBUILD linuxtv-dvb-apps-1.1.1.20070114.ebuild 2447 SHA256 0cac97840ea091d35daf99e9c6645220e658bdd33d9f68bfba36939199d2ef6b SHA512 b12a725bbdc07b4a03dec67234bb99e1cd9cc488ecff3c716ef4d3f3ae7447dff06aa183b9d0d0634d1c56b441b3923f65a16f1fbe6ab39c491a162372439d57 WHIRLPOOL b58efcbfb34e60c59a7aed4d74ca98dd5d2ac053da2783a50c97d81419b4939b78d874c9322f8be89be8c020b95d6de660c4e4313f9ecd711f0c5621ca900f9f
+EBUILD linuxtv-dvb-apps-1.1.1.20080317.ebuild 2262 SHA256 be288461c2a2303896b39450343fe58d79e92688545aaab11e880956201a77c6 SHA512 2c99cd4aed5661affe8ecb9fb0d42b428c2fd9a525bf7f2911f9e8db06224b632979c87be9362e227590490d55db4eb62e930e4a267a77969b5695693d66b135 WHIRLPOOL bba24e3022241dbaf6ebdd4f18b1a30a3845454809203b38822410e741963f7bb2bba72b38bf801d34976f3e60b0a54b3171d5ddf0cf5de62d349fef2f738b75
+EBUILD linuxtv-dvb-apps-1.1.1.20100223-r1.ebuild 2178 SHA256 2c898aab8ac7e13b4f5d4fce6d039ac3bdf6ea2d6b314f1b98bbf71391634fb5 SHA512 9ee5f238640d493d120b25c9e8473b67c06d15d19936e01e5bbbfb08a422ed53540c70ca47c2a06c46696f00b4dfebd3457b54b79d187d55acb7bd974a87d92b WHIRLPOOL 7d84b7234524bec015dbe9ec1ee4ee5c38eba7c8bef5fd89ae42472a5b128ec35068e07b2279bae7083d01193616e6646049c5637ddf27388f3eb7425256be97
+EBUILD linuxtv-dvb-apps-1.1.1.20100223.ebuild 2110 SHA256 3ca5d6862b7f7369858b3ca720b716d239293010aeb337b44e498cf5d71cd542 SHA512 9cad44fd3ce72a9ef2e4bbba4a7537bf6fd1a51ec593e286f48389406637f6307a169a913e33e9334f509dda89b2acc52518c381ca440de5c6c77b8e23de4a98 WHIRLPOOL b1a0fa81223bdfb8ad70dd766e2d6d43b0c02d0490728b5b533399c362b4db83bed4ba78a940676a7080d1703e995a3089217d3fb04e2d463ed7cc46e37fdc92
+MISC ChangeLog 10074 SHA256 8287c655b35d752ea6b391b46e303a1bb9b5c148d2075ad61e8d5040be69b8f6 SHA512 56c4c5bc7284f4340eb56f9c977f1d2441324f435717d4cac7875b71ca2fb3a89050e47cf638ea91a5135dfd5b564dd04c15a8bf73d9294cdb813166b130e097 WHIRLPOOL 076bd8dfb088c7930b02e265f38973480ed27097714d188f517ccf071379914379a15d128088bd18a4238ac30e5ce1ec807284eae544be917489fb95a734d3c2
+MISC metadata.xml 225 SHA256 3bada61d7f0f943acf12f3c99a7977bbad11dd497348b913e2b569936d48edcd SHA512 d32cb8c50954d0c94e46f7b5b7d4d15c869e0a654f567c3ce6c320d3df27352bca71a888b32b571788e4233eb5033849b398e0b314f9d5e61c6ae404bdc59eb6 WHIRLPOOL 96aacf105e5301f50cf09aa971095a5cacd76574db52829545dad9174fe29288b34d1ae2879e91908b41d808853e52bf0d052e78d666a7f27f831722aed62228
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.5 (GNU/Linux)
-Comment: added by hd_brummy@gentoo.org
+Version: GnuPG v2.0.19 (GNU/Linux)
-iD8DBQFPO/kodn07HTTCgIoRApTgAJ9d7HYozvXJ88b72p7JgEXjlybj0ACeJkuk
-U5457rkAVnoMvWo2qPkulDk=
-=xq15
+iF4EAREIAAYFAlGrkYIACgkQknrdDGLu8JAw/AEAmXNrwOu+RypTckWy5EAsJkgF
+vxbcdXNGYRyOq/xDYz8A/iL/mhckTWCTjbmHlQzFuKOF7rOUZWvIPmkXlU07wDkE
+=f/Q1
-----END PGP SIGNATURE-----
diff --git a/media-tv/linuxtv-dvb-apps/files/linuxtv-dvb-apps-1.1.1.20100223-alevt.patch b/media-tv/linuxtv-dvb-apps/files/linuxtv-dvb-apps-1.1.1.20100223-alevt.patch
new file mode 100644
index 000000000000..d19ac7e4878f
--- /dev/null
+++ b/media-tv/linuxtv-dvb-apps/files/linuxtv-dvb-apps-1.1.1.20100223-alevt.patch
@@ -0,0 +1,37 @@
+--- linuxtv-dvb-apps-1.1.1.20100223/util/alevt/exp-gfx.c
++++ linuxtv-dvb-apps-1.1.1.20100223/util/alevt/exp-gfx.c
+@@ -137,6 +137,7 @@
+
+ #ifdef WITH_PNG
+
++#include <zlib.h>
+ #include <png.h>
+ static int png_open(struct export *e);
+ static int png_option(struct export *e, int opt, char *arg);
+--- linuxtv-dvb-apps-1.1.1.20100223/util/alevt/Makefile
++++ linuxtv-dvb-apps-1.1.1.20100223/util/alevt/Makefile
+@@ -25,13 +25,13 @@
+ all: alevt alevt-date alevt-cap alevt.1 alevt-date.1 alevt-cap.1
+
+ alevt: $(OBJS)
+- $(CC) $(OPT) $(OBJS) -o alevt -L$(PREFIX)/lib -L$(PREFIX)/lib64 -lX11 $(EXPLIBS)
++ $(CC) $(OPT) $(OBJS) -o alevt -L$(PREFIX)/lib -L$(PREFIX)/lib64 -lX11 $(EXPLIBS) $(LDFLAGS)
+
+ alevt-date: $(TOBJS)
+- $(CC) $(OPT) $(TOBJS) -o alevt-date $(ZVBILIB)
++ $(CC) $(OPT) $(TOBJS) -o alevt-date $(ZVBILIB) $(LDFLAGS)
+
+ alevt-cap: $(COBJS)
+- $(CC) $(OPT) $(COBJS) -o alevt-cap $(EXPLIBS)
++ $(CC) $(OPT) $(COBJS) -o alevt-cap $(EXPLIBS) $(LDFLAGS)
+
+ font.o: font1.xbm font2.xbm font3.xbm font4.xbm
+ fontsize.h: font1.xbm font2.xbm font3.xbm font4.xbm
+@@ -73,7 +73,6 @@
+ install -m 0644 alevt.1 $(DESTDIR)$(PREFIX)/share/man/man1
+ install -m 0644 alevt-date.1 $(DESTDIR)$(PREFIX)/share/man/man1
+ install -m 0644 alevt-cap.1 $(DESTDIR)$(PREFIX)/share/man/man1
+- install -m 0644 alevt.png $(DESTDIR)$(PREFIX)/share/pixmaps
+ install -m 0644 alevt.desktop $(DESTDIR)$(PREFIX)/share/applications
+
+ uninstall: clean
diff --git a/media-tv/linuxtv-dvb-apps/files/linuxtv-dvb-apps-1.1.1.20100223-ldflags.patch b/media-tv/linuxtv-dvb-apps/files/linuxtv-dvb-apps-1.1.1.20100223-ldflags.patch
new file mode 100644
index 000000000000..063b4b6c479d
--- /dev/null
+++ b/media-tv/linuxtv-dvb-apps/files/linuxtv-dvb-apps-1.1.1.20100223-ldflags.patch
@@ -0,0 +1,20 @@
+--- linuxtv-dvb-apps-1.1.1.20100223/Make.rules
++++ linuxtv-dvb-apps-1.1.1.20100223/Make.rules
+@@ -46,7 +46,7 @@
+ %: %.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) -MMD $(LDFLAGS) -o $@ $< $(filter-out %.h %.c,$^) $(LOADLIBES) $(LDLIBS)
+ %.so:
+- $(CC) -shared -o $@ $^
++ $(CC) $(LDFLAGS) -Wl,-soname -Wl,$@ -shared -o $@ $^
+ %.a:
+ $(AR) rcs $@ $^
+ clean::
+@@ -76,7 +76,7 @@
+ @$(CC) $(CPPFLAGS) $(CFLAGS) -MMD $(LDFLAGS) -o $@ $< $(filter-out %.h %.c,$^) $(LOADLIBES) $(LDLIBS)
+ %.so:
+ @echo CC $@
+- @$(CC) -shared -o $@ $^
++ @$(CC) $(LDFLAGS) -Wl,-soname -Wl,$@ -shared -o $@ $^
+ %.a:
+ @echo AR $@
+ @$(AR) rcs $@ $^
diff --git a/media-tv/linuxtv-dvb-apps/linuxtv-dvb-apps-1.1.1.20100223-r1.ebuild b/media-tv/linuxtv-dvb-apps/linuxtv-dvb-apps-1.1.1.20100223-r1.ebuild
new file mode 100644
index 000000000000..3d878d9ffbc3
--- /dev/null
+++ b/media-tv/linuxtv-dvb-apps/linuxtv-dvb-apps-1.1.1.20100223-r1.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-tv/linuxtv-dvb-apps/linuxtv-dvb-apps-1.1.1.20100223-r1.ebuild,v 1.1 2013/06/02 18:40:08 xmw Exp $
+
+EAPI=5
+
+inherit eutils multilib toolchain-funcs vcs-snapshot
+
+HOMEPAGE="http://www.linuxtv.org/"
+DESCRIPTION="small utils for DVB to scan, zap, view signal strength, ..."
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="alevt test usb"
+
+RDEPEND="alevt? ( !media-video/alevt
+ media-libs/libpng
+ media-libs/zvbi[v4l]
+ sys-libs/zlib
+ x11-libs/libX11 )
+ usb? ( virtual/libusb:0 )
+ !dev-db/xbase"
+DEPEND="${RDEPEND}
+ dev-lang/perl
+ virtual/linuxtv-dvb-headers"
+# !dev-db/xbase (bug #208596)
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-ldflags.patch \
+ "${FILESDIR}"/${P}-alevt.patch
+
+ # do not compile test-progs, incompartible with videodev2.h
+ sed -e '/-C test/d' \
+ -i Makefile || die
+
+ # remove copy of header-files
+ rm -rf "${S}"/include || die
+}
+
+src_compile() {
+ emake V=1 CC=$(tc-getCC) $(usex usb "ttusb_dec_reset=1" "")
+ if use alevt ; then
+ emake -C util/alevt CC=$(tc-getCC) OPT="${CFLAGS}"
+ fi
+}
+
+src_install() {
+ insinto /usr/bin
+ emake V=1 prefix="${EROOT}usr" libdir="${EROOT}usr/$(get_libdir)" \
+ $(usex usb "ttusb_dec_reset=1" "") \
+ DESTDIR="${D}" INSTDIR="${T}" install
+ if use alevt ; then
+ dodir /usr/share/applications
+ dodir /usr/share/man/man1
+ emake -C util/alevt DESTDIR="${D}" install
+ fi
+
+ # rename scan to scan-dvb
+ mv "${D}"/usr/bin/scan{,-dvb} || die
+
+ # install zap-files
+ local dir=""
+ for dir in dvb-{s,c,t} atsc ; do
+ insinto /usr/share/dvb/zap/${dir}
+ doins "${S}"/util/szap/channels-conf/${dir}/*
+ done
+
+ # install remote-key files
+ insinto /usr/share/dvb/av7110_loadkeys
+ doins util/av7110_loadkeys/*.rc*
+
+ # install Documentation
+ dodoc README
+ newdoc util/scan/README README.scan-dvb
+ newdoc util/szap/README README.zap
+ newdoc util/av7110_loadkeys/README README.av7110_loadkeys
+
+ use usb && newdoc util/ttusb_dec_reset/README README.ttusb_dec_reset
+}
+
+pkg_postinst() {
+ elog "/usr/bin/scan has been installed as scan-dvb."
+}
diff --git a/media-tv/linuxtv-dvb-apps/metadata.xml b/media-tv/linuxtv-dvb-apps/metadata.xml
index a6b9e38a1b93..cd4366c20fb3 100644
--- a/media-tv/linuxtv-dvb-apps/metadata.xml
+++ b/media-tv/linuxtv-dvb-apps/metadata.xml
@@ -2,4 +2,7 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>media-tv</herd>
+<use>
+ <flag name="alevt">Build videotext decoder</flag>
+</use>
</pkgmetadata>