Gentoo Archives: gentoo-commits

From: "Andreas Huettel (dilfridge)" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-tv/xawtv: ChangeLog xawtv-3.95-r3.ebuild
Date: Sat, 02 May 2015 15:48:50
Message-Id: 20150502154847.782009AC@oystercatcher.gentoo.org
1 dilfridge 15/05/02 15:48:47
2
3 Modified: ChangeLog
4 Added: xawtv-3.95-r3.ebuild
5 Log:
6 Port to EAPI=5
7
8 (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 84AD142F)
9
10 Revision Changes Path
11 1.72 media-tv/xawtv/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/xawtv/ChangeLog?rev=1.72&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/xawtv/ChangeLog?rev=1.72&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/xawtv/ChangeLog?r1=1.71&r2=1.72
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-tv/xawtv/ChangeLog,v
20 retrieving revision 1.71
21 retrieving revision 1.72
22 diff -u -r1.71 -r1.72
23 --- ChangeLog 29 Jan 2015 19:07:44 -0000 1.71
24 +++ ChangeLog 2 May 2015 15:48:47 -0000 1.72
25 @@ -1,6 +1,11 @@
26 # ChangeLog for media-tv/xawtv
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-tv/xawtv/ChangeLog,v 1.71 2015/01/29 19:07:44 mgorny Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-tv/xawtv/ChangeLog,v 1.72 2015/05/02 15:48:47 dilfridge Exp $
30 +
31 +*xawtv-3.95-r3 (02 May 2015)
32 +
33 + 02 May 2015; Andreas K. Huettel <dilfridge@g.o> +xawtv-3.95-r3.ebuild:
34 + Port to EAPI=5
35
36 29 Jan 2015; Michał Górny <mgorny@g.o> xawtv-3.95-r2.ebuild:
37 Convert to CPU_FLAGS_X86.
38
39
40
41 1.1 media-tv/xawtv/xawtv-3.95-r3.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/xawtv/xawtv-3.95-r3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-tv/xawtv/xawtv-3.95-r3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: xawtv-3.95-r3.ebuild
47 ===================================================================
48 # Copyright 1999-2015 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-tv/xawtv/xawtv-3.95-r3.ebuild,v 1.1 2015/05/02 15:48:47 dilfridge Exp $
51
52 EAPI=5
53
54 inherit eutils font autotools flag-o-matic
55
56 PATCHLEVEL="4"
57
58 IUSE="aalib alsa dv lirc cpu_flags_x86_mmx motif nls opengl quicktime X xv zvbi xext"
59
60 MY_FONT=tv-fonts-1.1
61 DESCRIPTION="Small suite of video4linux related software"
62 HOMEPAGE="http://bytesex.org/xawtv/"
63 SRC_URI="http://dl.bytesex.org/releases/xawtv/${P}.tar.gz
64 X? ( http://dl.bytesex.org/releases/tv-fonts/${MY_FONT}.tar.bz2 )
65 mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2"
66
67 SLOT="0"
68 LICENSE="GPL-2"
69 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
70
71 RDEPEND=">=sys-libs/ncurses-5.1
72 virtual/jpeg
73 X? (
74 x11-libs/libFS
75 x11-libs/libXmu
76 x11-libs/libX11
77 x11-libs/libXaw
78 x11-libs/libXt
79 x11-libs/libXext
80 x11-libs/libXrender
81 xext? (
82 x11-libs/libXinerama
83 x11-libs/libXxf86dga
84 x11-libs/libXrandr
85 x11-libs/libXxf86vm
86 )
87 x11-apps/xset
88 xv? ( x11-libs/libXv )
89 )
90 motif? ( >=x11-libs/motif-2.3:0
91 app-text/recode )
92 alsa? ( media-libs/alsa-lib )
93 aalib? ( media-libs/aalib )
94 dv? ( media-libs/libdv )
95 lirc? ( app-misc/lirc )
96 opengl? ( virtual/opengl )
97 quicktime? ( media-libs/libquicktime )
98 zvbi? ( media-libs/zvbi
99 media-libs/libpng )"
100
101 DEPEND="${RDEPEND}
102 X? (
103 x11-apps/xset
104 x11-apps/bdftopcf
105 x11-proto/videoproto
106 xext? ( x11-proto/xineramaproto )
107 )"
108
109 pkg_setup() {
110 if use X; then
111 font_pkg_setup
112 fi
113 }
114
115 src_prepare() {
116 if use X; then
117 cd "${WORKDIR}/${MY_FONT}"
118 epatch "${WORKDIR}/patches/extra/${MY_FONT}-nox.patch"
119 fi
120 cd "${S}"
121
122 EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
123 epatch "${FILESDIR}/${P}-libquicktime-compat.patch"
124 epatch "${FILESDIR}/${P}-pagemask-fix.patch"
125 epatch "${FILESDIR}/${P}-jpeg-7.patch"
126 eautoreconf
127 }
128
129 src_configure() {
130 # It tries to include FSlib.h directly, but this seems to have moved.
131 use X && has_version x11-libs/libFS && append-flags -I/usr/include/X11/fonts
132
133 econf \
134 $(use_with X x) \
135 $(use_enable xext xfree-ext) \
136 $(use_enable xv xvideo) \
137 $(use_enable dv) \
138 $(use_enable cpu_flags_x86_mmx mmx) \
139 $(use_enable motif) \
140 $(use_enable quicktime) \
141 $(use_enable alsa) \
142 $(use_enable lirc) \
143 $(use_enable opengl gl) \
144 $(use_enable zvbi) \
145 $(use_enable aalib aa)
146 }
147
148 src_compile() {
149 emake verbose=yes
150
151 if use X; then
152 cd "${WORKDIR}/${MY_FONT}"
153 emake -j1 DISPLAY=
154 fi
155 }
156
157 src_install() {
158 make install DESTDIR="${D}" resdir="${D}"/usr/share/X11 || die
159
160 # v4lctl is only installed automatically if the X USE flag is enabled
161 use X || \
162 dobin x11/v4lctl
163
164 dodoc Changes README* TODO "${FILESDIR}"/webcamrc
165 docinto cgi-bin
166 dodoc scripts/webcam.cgi
167
168 use X || \
169 rm -f "${D}"/usr/share/man/man1/{pia,propwatch}.1 \
170 "${D}"/usr/share/{man,man/fr,man/es}/man1/xawtv.1 \
171 "${D}"/usr/share/{man,man/es}/man1/rootv.1
172
173 use motif || \
174 rm -f "${D}"/usr/share/man/man1/{motv,mtt}.1
175
176 use zvbi || \
177 rm -f "${D}"/usr/share/man/man1/{alevtd,mtt}.1 \
178 "${D}"/usr/share/{man,man/es}/man1/scantv.1
179
180 use nls || \
181 rm -f "${D}"/usr/share/man/fr \
182 "${D}"/usr/share/man/es
183
184 # The makefile seems to be fubar'd for some data
185 dodir /usr/share/${PN}
186 mv "${D}"/usr/share/*.list "${D}"/usr/share/${PN}
187 mv "${D}"/usr/share/Index* "${D}"/usr/share/${PN}
188
189 if use X; then
190 cd "${WORKDIR}/${MY_FONT}"
191 insinto /usr/share/fonts/xawtv
192 doins *.gz fonts.alias
193
194 font_xfont_config
195 fi
196 }
197
198 pkg_postinst() {
199 if use X; then
200 ebegin "installing teletype fonts into /usr/share/fonts/xawtv"
201 cd /usr/share/fonts/xawtv
202 mkfontdir
203 eend
204 fi
205 }