summaryrefslogtreecommitdiff
blob: 3d07e1dade3de4547dc3d6822bb713733d92f39b (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/vnc2swf/vnc2swf-0.4.2-r1.ebuild,v 1.2 2005/02/13 05:52:57 swtaylor Exp $

inherit eutils

DESCRIPTION="A tool for recording Flash SWF movies from VNC sessions"
HOMEPAGE="http://www.unixuser.org/~euske/vnc2swf"
SRC_URI="http://www.unixuser.org/~euske/vnc2swf/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~ppc ~x86 ~amd64"
IUSE="x11vnc"

DEPEND=">=media-libs/ming-0.2a
	virtual/libc
	virtual/x11
	sys-apps/sed
	x11vnc? ( x11-misc/x11vnc )
	sys-libs/zlib"

src_unpack() {
	unpack ${A}
	cd ${S}
	sed -ie "s:docs:html:" README
	sed -ie "s:-mouse ::" recordwin.sh
}

src_install() {
	dobin vnc2swf
	if use x11vnc; then
		# this USE flag is needed because recordwin
		# only works on x11vnc
		newbin recordwin.sh recordwin
		dosed "s:./vnc2swf:vnc2swf:" /usr/bin/recordwin
	fi
	insinto /etc/X11/app-defaults
	newins Vnc2Swf.ad Vnc2Swf
	dodoc README TODO sample.html
	dohtml docs/*
	dohtml -a swf docs/*
}