/[gentoo-x86]/media-tv/tvtime/tvtime-1.0.2_p20110131-r3.ebuild
Gentoo

Contents of /media-tv/tvtime/tvtime-1.0.2_p20110131-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed May 2 21:32:37 2012 UTC (2 years, 7 months ago) by jdhore
Branch: MAIN
Changes since 1.4: +2 -2 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-tv/tvtime/tvtime-1.0.2_p20110131-r3.ebuild,v 1.4 2012/01/06 16:53:34 ranger Exp $
4
5 EAPI=4
6 inherit eutils autotools
7
8 TVTIME_HGREV="111b28cca42d"
9
10 DESCRIPTION="High quality television application for use with video capture cards"
11 HOMEPAGE="http://tvtime.sourceforge.net/"
12 SRC_URI="http://www.kernellabs.com/hg/~dheitmueller/tvtime/archive/${TVTIME_HGREV}.tar.bz2 -> ${P}.tar.bz2
13 http://dev.gentoo.org/~a3li/distfiles/${PN}-1.0.2-alsamixer-r1.patch
14 http://dev.gentoo.org/~a3li/distfiles/${PN}-1.0.2-alsa-r1.patch
15 http://dev.gentoo.org/~a3li/distfiles/${PN}-1.0.2-alsa-fixes.patch"
16
17 LICENSE="GPL-2"
18 SLOT="0"
19 KEYWORDS="amd64 ppc x86"
20 IUSE="alsa nls xinerama"
21
22 RDEPEND="x11-libs/libSM
23 x11-libs/libICE
24 x11-libs/libX11
25 x11-libs/libXext
26 x11-libs/libXv
27 x11-libs/libXxf86vm
28 xinerama? ( x11-libs/libXinerama )
29 x11-libs/libXtst
30 x11-libs/libXau
31 x11-libs/libXdmcp
32 >=media-libs/freetype-2
33 >=sys-libs/zlib-1.1.4
34 >=media-libs/libpng-1.2
35 >=dev-libs/libxml2-2.5.11
36 alsa? ( media-libs/alsa-lib )
37 nls? ( virtual/libintl )"
38
39 DEPEND="${RDEPEND}
40 nls? ( sys-devel/gettext )
41 virtual/pkgconfig"
42
43 S="${WORKDIR}/${PN}-${TVTIME_HGREV}"
44 DOCS=( ChangeLog AUTHORS NEWS README )
45
46 src_prepare() {
47 # Rename the desktop file, bug #308297
48 mv docs/net-tvtime.desktop docs/tvtime.desktop || die
49 sed -i -e "s/net-tvtime.desktop/tvtime.desktop/g" docs/Makefile.am || die
50
51 # use 'tvtime' for the application icon see bug #66293
52 sed -i -e "s/tvtime.png/tvtime/" docs/tvtime.desktop || die
53
54 # patch to adapt to PIC or __PIC__ for pic support
55 epatch "${FILESDIR}"/${PN}-pic.patch #74227
56
57 epatch "${FILESDIR}/${PN}-1.0.2-xinerama.patch"
58
59 # Remove linux headers and patch to build with 2.6.18 headers
60 rm -f "${S}"/src/{videodev.h,videodev2.h} || die
61
62 epatch "${FILESDIR}/${P}-libsupc++.patch"
63
64 epatch "${FILESDIR}/${P}-autotools.patch"
65 epatch "${FILESDIR}/${P}-gettext.patch"
66 epatch "${FILESDIR}/${PN}-libpng-1.5.patch"
67 epatch "${FILESDIR}/${P}-underlinking.patch" #370025
68
69 if use alsa; then
70 epatch "${DISTDIR}/${PN}-1.0.2-alsa-r1.patch"
71 epatch "${DISTDIR}/${PN}-1.0.2-alsamixer-r1.patch"
72 epatch "${DISTDIR}/${PN}-1.0.2-alsa-fixes.patch"
73 fi
74
75 AT_M4DIR="m4" eautoreconf
76 }
77
78 src_configure() {
79 econf \
80 $(use_enable nls) \
81 $(use_with xinerama) || die "econf failed"
82 }
83
84 src_install() {
85 default
86
87 dohtml docs/html/*
88 }
89
90 pkg_postinst() {
91 elog "A default setup for ${PN} has been saved as"
92 elog "/etc/tvtime/tvtime.xml. You may need to modify it"
93 elog "for your needs."
94 elog
95 elog "Detailed information on ${PN} setup can be"
96 elog "found at ${HOMEPAGE}help.html"
97 echo
98 }

  ViewVC Help
Powered by ViewVC 1.1.20