# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # $Header: /var/cvsroot/gentoo-x86/app-sci/raster3d/raster3d-2.6e.ebuild,v 1.3 2003/02/13 09:25:23 vapier Exp $ IUSE="" Name="Raster3D" S="${WORKDIR}/${Name}_${PV}" SRC_URI="http://www.bmsc.washington.edu/${PN}/${Name}_${PV}.tar.gz" HOMEPAGE="http://www.bmsc.washington.edu/raster3d/raster3d.html" DESCRIPTION="a set of tools for generating high quality raster images of proteins or other molecules" DEPEND="virtual/x11" SLOT="0" LICENSE="as-is" KEYWORDS="x86" src_compile() { cd ${S} sed "/prefix/s/\/usr\/local/\/usr/" ${S}/Makefile.template > ${S}/Makefile.template.new mv ${S}/Makefile.template.new ${S}/Makefile.template make linux make all || die } src_install() { dodir /usr/bin dodir /usr/share/Raster3D/materials dodir /usr/share/Raster3D/html dodir /usr/share/Raster3D/examples dodir /usr/share/man/man1 emake \ prefix=${D}/usr \ bindir=${D}/usr/bin \ datadir=${D}/usr/share/Raster3D/materials \ mandir=${D}/usr/share/man/man1 \ htmldir=${D}/usr/share/Raster3D/html \ examdir=${D}/usr/share/Raster3D/examples \ install || die dodir /etc/env.d echo -e "R3D_LIB=/usr/share/Raster3D/materials" > \ ${D}/etc/env.d/10raster3d }