# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="The W3C Web-Browser" HOMEPAGE="http://www.w3.org/Amaya/" LICENSE="GPL-2" SRC_URI="http://www.w3.org/Amaya/Distribution/amaya-sources-${PV}.tgz " KEYWORDS="~x86" SLOT="0" IUSE="mesa opengl webdav wxdebug debug" DEPEND=">=x11-libs/gtk+-2" pkg_setup() { BUILDDIR="${WORKDIR}/Amaya10.0/Amaya/obj" myconf="" use mesa && myconf="${myconf} --with-mesa" || myconf="${myconf} --without-mesa" use opengl && myconf="${myconf} --with-opengl" || myconf="${myconf} --without-opengl" use webdav && myconf="${myconf} --with-dav" || myconf="${myconf} --without-dav" use wxdebug && myconf="${myconf} --with-wxdebug" || myconf="${myconf} --without-wxdebug" use debug && myconf="${myconf} --with-debug" || myconf="${myconf} --without-debug" } src_compile() { mkdir ${BUILDDIR} cd ${BUILDDIR} ECONF_SOURCE=".." econf ${myconf} || die "Error: econf failed!" make || die "Error: make failed!" } src_install(){ cd ${BUILDDIR} einstall || die "Error: einstall failed!" dobin bin/amaya }