/[gentoo-x86]/net-misc/vnc/vnc-3.3.7.ebuild
Gentoo

Contents of /net-misc/vnc/vnc-3.3.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (show annotations) (download)
Fri Jan 20 21:57:24 2006 UTC (12 years, 5 months ago) by vanquirius
Branch: MAIN
CVS Tags: HEAD
Changes since 1.14: +1 -1 lines
FILE REMOVED
Remove old ebuilds (4.0-r1 stable everywhere), block net-misc/tightvnc for bug 115135.
(Portage version: 2.0.54)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/vnc/vnc-3.3.7.ebuild,v 1.14 2005/01/07 18:12:04 aliz Exp $
4
5 inherit eutils
6
7 MY_P="${P}-unixsrc"
8 DESCRIPTION="Remote desktop viewer display system"
9 HOMEPAGE="http://www.realvnc.com/"
10 SRC_URI="http://www.realvnc.com/dist/${MY_P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="x86 sparc ppc amd64"
15 IUSE="java tcpd"
16
17 DEPEND="tcpd? ( sys-apps/tcp-wrappers )
18 !net-misc/tightvnc"
19 RDEPEND="java? ( virtual/jre )"
20
21 S="${WORKDIR}/${MY_P}"
22
23 src_unpack() {
24 unpack ${A}
25 cd ${S}
26
27 epatch ${FILESDIR}/${P}-gentoo.security.patch
28 epatch ${FILESDIR}/${P}-imake-tmpdir.patch
29 if [ "${ARCH}" = "sparc" ]
30 then
31 epatch ${FILESDIR}/vnc-3.3.3r2-getline-fix.patch
32 epatch ${FILESDIR}/vnc-3.3.4-platform-fixes.patch
33 epatch ${FILESDIR}/vnc-3.3.3-10-xdm-auth-support.patch
34 fi
35 sed -i \
36 's:CC = cc:CC = gcc:' \
37 Xvnc/config/imake/Makefile.ini \
38 Xvnc/config/util/Makefile.ini
39 }
40
41 src_compile() {
42
43 export CXX="g++"
44
45 econf || die "./configure failed"
46
47 make
48
49 use ppc && return 0
50 use amd64 && return 0
51 cd Xvnc
52 if use tcpd
53 then
54 make \
55 EXTRA_LIBRARIES="-lwrap -lnss_nis" \
56 CDEBUGFLAGS="${CFLAGS}" \
57 CXXFLAGS="${CFLAGS}" \
58 World || die
59 else
60 make \
61 CDEBUGFLAGS="${CFLAGS}" \
62 CXXFLAGS="${CFLAGS}" \
63 World || die
64 fi
65
66 }
67
68 src_install () {
69
70 dodir /usr/bin /usr/share/man/man1
71
72 ./vncinstall ${D}/usr/bin ${D}/usr/share/man || die
73
74 if use java
75 then
76 cd ${S}/classes
77 insinto /usr/share/vnc/classes
78 doins *.class *.jar *.vnc
79 fi
80
81 cd ${S}
82 dodoc LICENCE.TXT README
83
84 }
85

  ViewVC Help
Powered by ViewVC 1.1.20