/[gentoo-x86]/media-plugins/vdr-xine/vdr-xine-0.9.4-r1.ebuild
Gentoo

Contents of /media-plugins/vdr-xine/vdr-xine-0.9.4-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Apr 12 12:47:44 2014 UTC (5 years, 6 months ago) by billie
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +4 -5 lines
Remove dependency on media-video/y4mscaler which is scheduled for removal as it is now part of media-video/mjpegtools (#492886).

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 215AD14D)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-xine/vdr-xine-0.9.4-r1.ebuild,v 1.1 2013/01/27 16:57:24 hd_brummy Exp $
4
5 EAPI="5"
6
7 inherit vdr-plugin-2
8
9 DESCRIPTION="VDR plugin: for 'software only' playback using xine"
10 HOMEPAGE="http://home.vr-web.de/~rnissl/"
11 SRC_URI="http://home.vr-web.de/~rnissl/${P}.tgz"
12
13 SLOT="0"
14 LICENSE="GPL-2"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="yaepg"
17
18 COMMON_DEP=">=media-video/vdr-1.5.7
19 >=media-libs/xine-lib-1.1.8[vdr]"
20 DEPEND="${COMMON_DEP}"
21 RDEPEND="${COMMON_DEP}
22 >=media-video/mjpegtools-2.1.0
23 media-libs/netpbm"
24
25 src_prepare() {
26 epatch "${FILESDIR}/${P}-gentoo.diff"
27 epatch "${FILESDIR}/${P}-build-system.patch"
28
29 use yaepg && sed -i Makefile -e "s:#VDR_XINE_SET_VIDEO_WINDOW:VDR_XINE_SET_VIDEO_WINDOW:"
30
31 vdr-plugin-2_src_prepare
32
33 if has_version ">=media-video/vdr-1.7.33"; then
34 sed -e "s:pid == patPmtParser.PmtPid():patPmtParser.IsPmtPid(pid):" \
35 -i xineDevice.c
36 fi
37
38 # remove i18n crap
39 sed -e "s:^#include[[:space:]]*\"xineI18n.h\"::" -i xine.c
40
41 BUILD_PARAMS="VDR_XINE_FIFO_DIR=/var/vdr/xine"
42 }
43
44 src_install() {
45 vdr-plugin-2_src_install
46
47 dobin xineplayer || die
48
49 insinto /usr/share/vdr/xine
50 doins data/* || die
51
52 dodoc MANUAL
53 }
54
55 pkg_postinst() {
56 vdr-plugin-2_pkg_postinst
57
58 if [[ -d ${ROOT}/etc/vdr/plugins/xine ]]; then
59 ewarn "You have a leftover directory of vdr-xine."
60 ewarn "You can safely remove it with:"
61 ewarn "# rm -rf /etc/vdr/plugins/xine"
62 fi
63 }

  ViewVC Help
Powered by ViewVC 1.1.20