summaryrefslogtreecommitdiff
blob: 385104c316cf7a9dacdff7168c64cb9ec8535825 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/media-tv/tvtime/tvtime-0.9.8.2.ebuild,v 1.3 2003/09/07 00:06:41 msterret Exp $

S=${WORKDIR}/${P}
DESCRIPTION="High quality television application for use with video capture cards."
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
HOMEPAGE="http://tvtime.sourceforge.net/"
LICENSE="GPL-2"
KEYWORDS="x86"
SLOT="0"

IUSE="lirc"

DEPEND="virtual/x11
		>=media-libs/freetype-2*
		sys-libs/zlib
		media-libs/libpng
		dev-libs/libxml2
		lirc? ( app-misc/lirc )"

src_compile() {

	econf || die
	emake || die

}

src_install () {

	make DESTDIR=${D} install || die
	dodoc ChangeLog AUTHORS NEWS README
	cd docs
	doman tvtime.1 tvtime.xml.5 tvtime-command.1 stationlist.xml.5
	insinto /etc/tvtime
	newins default.tvtime.xml tvtime.xml
}

pkg_postinst() {
	ewarn
	ewarn "              :: !!Attention!! ::"
	ewarn "The format of the config file has changed since the"
	ewarn "last version. Please migrate your changes to the"
	ewarn "new format!"
	ewarn
	einfo "A default setup for ${PN} has been saved as"
	einfo "/etc/tvtime/tvtime.xml. You may need to modify it"
	einfo "for your needs."
	einfo
	einfo "Detailed information on ${PN} setup can be"
	einfo "found at ${HOMEPAGE}help.html"
	einfo
}