# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/x11-libs/libxcb/libxcb-1.0.ebuild,v 1.12 2007/04/18 10:47:10 yoswink Exp $ # Must be before x-modular eclass is inherited SNAPSHOT="yes" inherit x-modular DESCRIPTION="X C-language Bindings library" HOMEPAGE="http://xcb.freedesktop.org/" SRC_URI="http://xcb.freedesktop.org/dist/${P}.tar.bz2" LICENSE="X11" KEYWORDS="alpha amd64 ~arm hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~x86-fbsd" IUSE="sloppy-lock" RDEPEND="x11-libs/libXau x11-libs/libXdmcp dev-libs/libpthread-stubs" DEPEND="${RDEPEND} dev-libs/libxslt >=x11-proto/xcb-proto-1.0" use sloppy-lock && PATCHES="${FILESDIR}/${P}-sloppy_lock.patch" sloppy_info() { echo "" einfo "You have enabled the sloppy-lock flag, this is only a workaround." einfo "To enable this at runtime, prepend the 'LIBXCB_ALLOW_SLOPPY_LOCK'" einfo "environment variable to the command-line, eg:" einfo "\t$ LIBXCB_ALLOW_SLOPPY_LOCK=true java" echo "" einfo "To enable the flag system wide, execute the following commands:" einfo "\t# echo 'LIBXCB_ALLOW_SLOPPY_LOCK=true' >> /etc/env.d/99local" einfo "\t# env-update" einfo "\t# source /etc/profile" echo "" } pkg_postinst() { use sloppy-lock && sloppy_info }