Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 242350
Collapse All | Expand All

(-)vnc-4.1.2-r5.ebuild (-1 / +20 lines)
Lines 1-11 Link Here
1
# Copyright 1999-2008 Gentoo Foundation
1
# Copyright 1999-2008 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/net-misc/vnc/vnc-4.1.2-r5.ebuild,v 1.4 2008/12/19 17:40:11 jer Exp $
3
# $Header: /var/cvsroot/gentoo-x86/net-misc/vnc/vnc-4.1.2-r6.ebuild,v 1.2 2009/01/04 09:36:28 armin76 Exp $
4
4
5
EAPI="1"
5
EAPI="1"
6
6
7
inherit eutils toolchain-funcs multilib autotools
7
inherit eutils toolchain-funcs multilib autotools
8
8
9
OPENGL_DIR="xorg-x11"
9
XSERVER_VERSION="1.5.3"
10
XSERVER_VERSION="1.5.3"
10
PATCH="${P}-r5-patches-0.1"
11
PATCH="${P}-r5-patches-0.1"
11
12
Lines 26-31 Link Here
26
	media-libs/freetype
27
	media-libs/freetype
27
	x11-libs/libSM
28
	x11-libs/libSM
28
	x11-libs/libXtst
29
	x11-libs/libXtst
30
	app-admin/eselect-opengl
29
	server? (
31
	server? (
30
		x11-libs/libXi
32
		x11-libs/libXi
31
		x11-libs/libXfont
33
		x11-libs/libXfont
Lines 79-86 Link Here
79
		ebeep
81
		ebeep
80
		epause 5
82
		epause 5
81
	fi
83
	fi
84
	ewarn "Forcing on xorg-x11 for new enough glxtokens.h..."
85
	OLD_IMPLEM="$(eselect opengl show)"
86
	eselect opengl set --impl-headers ${OPENGL_DIR}
82
}
87
}
83
88
89
switch_opengl_implem() {
90
	# Switch to the xorg implementation.
91
	# Use new opengl-update that will not reset user selected
92
	# OpenGL interface ...
93
	echo
94
	eselect opengl set ${OLD_IMPLEM}
95
}
84
src_unpack() {
96
src_unpack() {
85
	unpack ${A}
97
	unpack ${A}
86
	cd "${S}"
98
	cd "${S}"
Lines 193-195 Link Here
193
205
194
	rm "${D}"/usr/$(get_libdir)/librfb.{a,la,so}
206
	rm "${D}"/usr/$(get_libdir)/librfb.{a,la,so}
195
}
207
}
208
209
pkg_postinst() {
210
	ewarn
211
	ewarn "Switching back to original opengl tokens"
212
	switch_opengl_implem
213
}
214

Return to bug 242350