# 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/" SRC_URI="http://home.att.net/%7Elarry.finger/drawxtl/DRAWxtl41.tar.gz" LICENSE="OpenSoftware" SLOT="4" KEYWORDS="~x86" IUSE="examples" DEPEND="media-libs/glut" S="${WORKDIR}/DRAWxtl/source/DRAWxtl41" src_compile() { cd ${S} emake || die "Make failed" } src_install() { cd ../.. dobin DRAWxtl41 && \ dobin *.tcl && \ dodoc docs/*.pdf read.me || die "Install failed" use examples && dodir /usr/share/${PF} && cp -r examples ${D}usr/share/${PF} }