/[gentoo-x86]/net-misc/tightvnc/tightvnc-1.2.9-r2.ebuild
Gentoo

Contents of /net-misc/tightvnc/tightvnc-1.2.9-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sat Nov 11 15:52:41 2006 UTC (12 years, 10 months ago) by genstef
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.1.2_rc1-r5)
 (Unsigned Manifest commit)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/tightvnc/tightvnc-1.2.9-r2.ebuild,v 1.5 2006/08/09 18:48:23 tcort Exp $
4
5 inherit eutils toolchain-funcs
6
7 IUSE="java tcpd"
8
9 S="${WORKDIR}/vnc_unixsrc"
10 DESCRIPTION="A great client/server software package allowing remote network access to graphical desktops."
11 SRC_URI="mirror://sourceforge/vnc-tight/${P}_unixsrc.tar.bz2"
12 HOMEPAGE="http://www.tightvnc.com/"
13
14 KEYWORDS="~alpha amd64 ppc sparc x86"
15 LICENSE="GPL-2"
16 SLOT="0"
17
18 DEPEND="|| ( ( x11-libs/libXaw
19 x11-proto/xextproto
20 >=x11-misc/imake-1
21 x11-misc/gccmakedep
22 app-text/rman
23 x11-libs/libXp
24 x11-proto/inputproto
25 x11-proto/kbproto
26 x11-proto/printproto
27 x11-proto/scrnsaverproto
28 )
29 virtual/x11
30 )
31 ~media-libs/jpeg-6b
32 sys-libs/zlib
33 tcpd? ( >=sys-apps/tcp-wrappers-7.6-r2 )
34 !net-misc/vnc"
35
36 RDEPEND="${DEPEND}
37 dev-lang/perl
38 java? ( || ( >=virtual/jdk-1.3.1 >=virtual/jre-1.3.1 ) )"
39
40 src_unpack() {
41 unpack ${A} && cd ${S}
42 epatch ${FILESDIR}/${P}-gentoo.diff
43 epatch ${FILESDIR}/${P}-gentoo.security.patch
44 epatch ${FILESDIR}/${P}-imake-tmpdir.patch
45 [[ "$(gcc-version)" == "3.4" ]] || [[ "$(gcc-major-version)" == "4" ]] && epatch ${FILESDIR}/${P}-gcc34.patch
46 epatch ${FILESDIR}/x86.patch
47 epatch ${FILESDIR}/${P}-amd64.patch
48 epatch ${FILESDIR}/${P}-gentoo-2.diff
49 epatch ${FILESDIR}/${PN}-ppcsparc-server.patch
50 }
51
52 src_compile() {
53 local CDEBUGFLAGS="${CFLAGS}"
54
55 xmkmf -a || die "xmkmf failed"
56
57 make CDEBUGFLAGS="${CDEBUGFLAGS}" World || die "make World failed"
58 cd Xvnc && ./configure || die "Configure failed."
59
60 if use tcpd; then
61 make EXTRA_LIBRARIES="-lwrap -lnss_nis" CDEBUGFLAGS="${CDEBUGFLAGS}" EXTRA_DEFINES="-DUSE_LIBWRAP=1"
62 else
63 make CDEBUGFLAGS="${CDEBUGFLAGS}"
64 fi
65 }
66
67 src_install() {
68 # the web based interface and the java viewer need the java class files
69 insinto /usr/share/tightvnc/classes ; doins classes/*
70
71 dodir /usr/share/man/man1 /usr/bin
72 ./vncinstall ${D}/usr/bin ${D}/usr/share/man || die "vncinstall failed"
73
74 dodoc ChangeLog README WhatsNew
75 use java && dodoc ${FILESDIR}/README.JavaViewer
76 newdoc vncviewer/README README.vncviewer
77 }

  ViewVC Help
Powered by ViewVC 1.1.20