# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="DRAWxtl produces a screen display of a crystal-structure diagram in real time, and also produces output files in the Virtual Reality Modelling Language (VRML) or Persistence of Vision (POV-RAY) ray-tracing formats." HOMEPAGE="http://www.lwfinger.net/drawxtl/" MY_NAME="DRAWxtl42" SRC_URI="http://home.att.net/%7Elarry.finger/drawxtl/${MY_NAME}.tar.gz" LICENSE="OpenSoftware" SLOT="4" KEYWORDS="~x86" IUSE="examples" DEPEND="media-libs/glut" S="${WORKDIR}/DRAWxtl/source/${MY_NAME}" src_compile() { cd ${S} emake || die "Make failed" } src_install() { cd ../.. dobin exe/${MY_NAME} && \ dobin ${S}/*.tcl && \ dodoc readme.txt && \ insinto ${ROOT}/usr/share/doc/${PF} && \ doins docs/*.pdf || die "Install failed" use examples && dodir ${ROOT}/usr/share/${PF} && cp -r examples ${D}usr/share/${PF} }