blob: 04bba1d1886d3839d9b83e21cdc14cb89bd8f942 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/mplayer-resume/mplayer-resume-1.3.ebuild,v 1.2 2006/11/26 15:47:08 beandog Exp $
inherit depend.php
DESCRIPTION="MPlayer wrapper script to save/resume playback position"
HOMEPAGE="http://www.spaceparanoids.org/trac/bend/wiki/mplayer-resume"
SRC_URI="http://spaceparanoids.org/downloads/mplayer-resume/${P}.tar.gz"
LICENSE="public-domain"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND=""
RDEPEND="app-misc/lirc
media-video/mplayer"
need_php_cli
pkg_setup() {
require_php_with_use pcre cli
if ! built_with_use media-video/mplayer lirc
then
eerror "media-video/mplayer must also be compiled with the"
eerror "lirc use flag to work properly with mplayer-resume."
die "Fix mplayer use flags and re-emerge"
fi
}
src_compile() {
return;
}
src_install() {
dobin mplayer-resume
dodoc ChangeLog README
}
pkg_postinst() {
einfo "To get mplayer-resume to save playback position with LIRC,"
einfo "you will need to setup an entry in ~/.lircrc to run "
einfo "'get_time_pos' and then 'quit'. More instructions are"
einfo "detailed in the README, but the position will not be saved"
einfo "until you set it up."
echo ""
einfo "Playback position files are saved in ~/.mplayer/playback"
}
|