summaryrefslogtreecommitdiff
blob: a8cc165b3d9f8e2109067497f0bc42509fb7223f (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2 
# $Header: /var/cvsroot/gentoo-x86/x11-misc/x2vnc/x2vnc-1.5.1-r1.ebuild,v 1.1 2003/09/03 08:28:42 phosphan Exp $

S=${WORKDIR}/${P}
DESCRIPTION="Control a remote computer running VNC from X"
SRC_URI="http://www.hubbe.net/~hubbe/${P}.tar.gz"
HOMEPAGE="http://www.hubbe.net/~hubbe/x2vnc.html"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~alpha ~sparc"

DEPEND="virtual/x11
	tcltk? ( dev-tcltk/expect )
	>=sys-apps/sed-4"

IUSE="tcltk"

src_compile() {
	econf
	emake || die "make failed"
}

src_install () {

	sed -i -e 's/$(\(...\)DIR)/$(DESTDIR)\/$(\1DIR)/
			   s/\(^INSTALL.*\)/\1 -D/' Makefile
	make DESTDIR=${D} install || die

	if [ `use tcltk` ]
	then
		dobin contrib/tkx2vnc
	fi

	dodoc ChangeLog README
}