[Openchrome-users] gentoo ebuild

Dan A. Dickey dan.dickey
Mon Oct 2 10:59:04 PDT 2006


Karl,
I just came across your gentoo ebuild today.  Thanks!
And here is something back that you may (or may not)
want - an ebuild to build from the svn repository.
Enjoy.  :)
And, as usual, if anyone else makes any improvements
or changes - please send them to the list.
	-Dan

-- 
Dan A. Dickey

SAVVIS
Transforming Information Technology
-------------- next part --------------
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# 

inherit subversion

DESCRIPTION="X.Org driver for via UniChrome and UniChrome-Pro cards. Openchrome SVN version."
HOMEPAGE="http://www.openchrome.org/"

DESCRIPTION="X.Org driver for via cards"
KEYWORDS="~x86"
IUSE="dri"
RDEPEND=">=x11-base/xorg-server-1.0.1
		x11-libs/libXvMC"
DEPEND="${RDEPEND}
	x11-proto/fontsproto
	x11-proto/randrproto
	x11-proto/renderproto
	x11-proto/xextproto
	x11-proto/xproto
	dri? ( x11-proto/xf86driproto
		>=x11-libs/libdrm-2
		x11-libs/libX11 )"

CONFIGURE_OPTIONS="$(use_enable dri)"

ESVN_REPO_URI="http://svn.openchrome.org/svn/trunk"
ESVN_PROJECT="openchrome"
ESVN_BOOTSTRAP="NOCONFIGURE=1 ./autogen.sh"

pkg_setup() {
	if use dri && ! built_with_use x11-base/xorg-server dri; then
		die "Build x11-base/xorg-server with USE=dri."
	fi
}

src_unpack() {
	subversion_src_unpack
}

src_compile() {
	./configure --prefix=/usr
	emake || die "Make failed"
}

src_install() {
	make DESTDIR="${D}" install || die "install failed"
}

pkg_postinst() {
	echo
	einfo "Openchrome has been merged, please read the documentation at http://www.openchrome.org/"
	einfo "You will need to configure your xorg.conf and have kernel modules: agpgart, via_agp, via, drm "
	echo
}



More information about the Openchrome-users mailing list