# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 inherit nsplugins eutils perl-module toolchain-funcs IUSE="nsplugin doc" MY_P="FreeWRL-${PV}" DESCRIPTION="VRML2 and X3D compliant browser" SRC_URI="mirror://sourceforge/freewrl/${MY_P}-1.tar.gz" HOMEPAGE="http://freewrl.sourceforge.net/" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" S="${WORKDIR}/${MY_P}" DEPEND="media-gfx/imagemagick media-libs/libpng media-libs/jpeg media-sound/sox virtual/glut virtual/jdk || ( >=dev-java/saxon-7.8 >=dev-java/saxon-bin-7.8 ) >=perl-core/Digest-MD5 >=dev-perl/HTML-Parser-2.25 >=perl-core/MIME-Base64-2.11 >=dev-perl/URI-1.04 >=dev-perl/libnet-1.0607 >=dev-perl/libwww-perl-5.47" # x11-libs/Xaw3d src_compile() { sed -i -e 's:/usr/lib/mozilla/plugins:/usr/lib/nsbrowser/plugins:g' vrml.conf perl Makefile.PL make || die } src_install() { mkdir -p ${D}/usr/lib/nsbrowser/plugins make DESTDIR="${D}" install || die dodir ${SITE_LIB}/VRML/fonts insinto ${SITE_LIB}/VRML/fonts }