Gentoo ebuild update

Just wanted to give a little back...

I updated the ebuild script for my x64-64 platform.  I needed to manually 
install "raptor" and add the "--enable-system-raptor" config option.

I also copied the Mesa config file as mention in the build docs on the web 
site:

# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit libtool eutils

S=${WORKDIR}/Amaya/LINUX-ELF

DESCRIPTION="The W3C Web-Browser"
HOMEPAGE="http://www.w3.org/Amaya/"
SRC_URI="http://www.w3.org/Amaya/Distribution/${PN}-fullsrc-${PV}.tgz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug opengl"

DEPEND=""
RDEPEND="${DEPEND}"

src_compile() {
        local myconf="--enable-system-raptor"
        mkdir ${S}
        cd ${S}

        if use opengl
        then
                myconf="${myconf} --with-gl --enable-system-raptor"
        fi
        if use debug
        then
                myconf="${myconf} --with-debug --enable-system-raptor"
        fi

        ../configure \
                ${myconf} \
                --prefix=/usr \
#               --host=${CHOST}
        make || die
}

src_install () {
        dodir /usr
        make prefix=${D}/usr install || die
        PREFIX="/usr" ./script_install_gnomekde . ${D}/usr/share /usr

        rm ${D}/usr/bin/amaya
        rm ${D}/usr/bin/print
        dosym /usr/Amaya/wx/bin/amaya /usr/bin/amaya
        dosym /usr/Amaya/wx/bin/print /usr/bin/print

        domenu share/applications/amaya.desktop
        newicon ${WORKDIR}/Amaya/resources/bundle/logo.png amaya.png
}

___

David Christensen
davidc@connect4less.com

Received on Friday, 27 February 2009 18:24:30 UTC