Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-tv/nvtv/files/, media-tv/nvtv/
Date: Tue, 26 Apr 2016 22:27:31
Message-Id: 1461709592.13301cad37c35e63f4f3e75507ccb3f2bca5f905.wizardedit@gentoo
1 commit: 13301cad37c35e63f4f3e75507ccb3f2bca5f905
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 26 22:25:46 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 26 22:26:32 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13301cad
7
8 media-tv/nvtv: use #!/sbin/openrc-run instead of #!/sbin/runscript
9
10 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=573846
11
12 Package-Manager: portage-2.2.26
13
14 media-tv/nvtv/files/nvtv.start | 4 +--
15 media-tv/nvtv/nvtv-0.4.7-r2.ebuild | 58 ++++++++++++++++++++++++++++++++++++++
16 2 files changed, 60 insertions(+), 2 deletions(-)
17
18 diff --git a/media-tv/nvtv/files/nvtv.start b/media-tv/nvtv/files/nvtv.start
19 index 0d80445..76091c1 100644
20 --- a/media-tv/nvtv/files/nvtv.start
21 +++ b/media-tv/nvtv/files/nvtv.start
22 @@ -1,5 +1,5 @@
23 -#!/sbin/runscript
24 -# Copyright 1999-2004 Gentoo Foundation
25 +#!/sbin/openrc-run
26 +# Copyright 1999-2016 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 # $Id$
29
30
31 diff --git a/media-tv/nvtv/nvtv-0.4.7-r2.ebuild b/media-tv/nvtv/nvtv-0.4.7-r2.ebuild
32 new file mode 100644
33 index 0000000..d017003
34 --- /dev/null
35 +++ b/media-tv/nvtv/nvtv-0.4.7-r2.ebuild
36 @@ -0,0 +1,58 @@
37 +# Copyright 1999-2016 Gentoo Foundation
38 +# Distributed under the terms of the GNU General Public License v2
39 +# $Id$
40 +
41 +EAPI=6
42 +
43 +IUSE="X gtk"
44 +
45 +DESCRIPTION="TV-Out for NVidia cards"
46 +HOMEPAGE="http://sourceforge.net/projects/nv-tv-out/"
47 +SRC_URI="mirror://sourceforge/nv-tv-out/${P}.tar.gz"
48 +
49 +SLOT="0"
50 +LICENSE="GPL-2"
51 +KEYWORDS="~x86 ~amd64"
52 +
53 +RDEPEND="sys-apps/pciutils[-zlib]
54 + gtk? ( x11-libs/gtk+:2 )
55 + X? ( x11-libs/libXi
56 + x11-libs/libXmu
57 + x11-libs/libXxf86vm )"
58 +
59 +DEPEND="${RDEPEND}
60 + X? ( x11-proto/xf86vidmodeproto )"
61 +
62 +src_configure() {
63 + local myconf
64 +
65 + if use gtk
66 + then
67 + myconf="${myconf} --with-gtk"
68 + else
69 + myconf="${myconf} --without-gtk"
70 + fi
71 +
72 + use X \
73 + && myconf="${myconf} --with-x" \
74 + || myconf="${myconf} --without-x"
75 +
76 + econf ${myconf}
77 +}
78 +
79 +src_compile() {
80 + # The CFLAGS don't seem to make it into the Makefile.
81 + cd src
82 + emake CXFLAGS="${CFLAGS}"
83 +}
84 +
85 +src_install() {
86 + dobin src/nvtv
87 + dosbin src/nvtvd
88 +
89 + dodoc ANNOUNCE BUGS FAQ INSTALL README \
90 + doc/USAGE doc/chips.txt doc/overview.txt \
91 + doc/timing.txt xine/tvxine
92 +
93 + newinitd "${FILESDIR}"/nvtv.start nvtv
94 +}