# Copyright 1999-2009 Gentoo Foundation # Authors: Bruno Marmol & Emilien Kia & David Christensen # Distributed under the terms of the GNU General Public License v2 # modified from 11.3.1 08-apr-2012 Stephen Lewis 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="W3C" SLOT="0" KEYWORDS="~amd64 ~x86 ~ppc ~ppc64 ~alpha" IUSE="debug opengl svg +xml" EAPI="2" DEPEND="net-libs/libwww media-libs/raptor x11-libs/wxGTK svg? ( gnome-base/librsvg ) opengl? ( virtual/opengl )" RDEPEND="${DEPEND}" src_prepare() { epatch \ ${FILESDIR}/${P}-gzfile.patch \ ${FILESDIR}/${P}-libpng15.patch \ ${FILESDIR}/${P}-setgray.patch \ ${FILESDIR}/${P}-socketbufsize.patch \ ${FILESDIR}/${P}-wakeupidle.patch \ ${FILESDIR}/${P}-wxyield.patch use opengl && rm -rf "${WORKDIR}/Mesa/" rm -rf "${WORKDIR}/wxWidgets" rm -rf "${WORKDIR}/libwww" rm -rf "${WORKDIR}/redland" } src_configure() { local myconf mkdir ${S} cd ${S} use opengl && myconf="${myconf} --with-gl" use debug && myconf="${myconf} --with-debug" use svg || myconf="${myconf} --disable-svg" use xml || myconf="${myconf} --disable-generic-xml" ../configure \ --prefix=/usr \ --enable-system-libwww \ --enable-system-raptor \ --enable-system-wx \ ${myconf} } src_compile() { make || die } src_install () { dodir /usr einstall || die ./script_install_gnomekde . ${D}/usr/share /usr || die 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/amaya-print domenu share/applications/amaya.desktop newicon ${WORKDIR}/Amaya/resources/bundle/logo.png amaya.png }