# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils MY_PN="DRAWxtl" MY_P=${MY_PN}${PV} DESCRIPTION="This software can be used to produce crystal structure drawings from structural data" HOMEPAGE="http://www.lwfinger.net/drawxtl/" SRC_URI="http://home.att.net/~larry.finger/drawxtl/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="5" KEYWORDS="~amd64 ~x86" IUSE="examples" DEPEND="virtual/opengl virtual/glut virtual/glu >=x11-libs/fltk-1.1.6" RDEPEND="${DEPEND}" S="${WORKDIR}/${MY_PN}" src_unpack() { unpack ${A} epatch "${FILESDIR}/${MY_P}-makefile.patch" || die "patching failed." } src_compile() { cd source/${MY_P} emake || die "Build of ${MY_PN} failed." } src_install() { dobin exe/${MY_P} dodoc docs/readme.txt insinto /usr/share/doc/${P} doins docs/*.pdf if use examples; then docinto examples dodoc examples/* fi }