# Copyright Inria # Author: Bruno Marmol & Emilien Kia # Distributed under the terms of the GNU General Public License v2 # bugs: # - can use variable for version number: for re-use after new version inherit libtool eutils S=${WORKDIR}/Amaya/LINUX-ELF DESCRIPTION="The W3C Web-Browser" SRC_URI="http://www.w3.org/Amaya/Distribution/${PN}-fullsrc-${PV}.tgz" #SRC_URI="http://wam.inrialpes.fr/software/amaya/${PN}-fullsrc-10.0-pre2.tgz" HOMEPAGE="http://www.w3.org/Amaya/" KEYWORDS="~x86" LICENSE="GPL-2" SLOT="0" IUSE="debug opengl" DEPEND="" RDEPEND="${DEPEND}" src_compile() { local myconf="" mkdir ${S} cd ${S} if use opengl then myconf="${myconf} --with-gl" fi if use debug then myconf="${myconf} --with-debug" 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 }