1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils toolchain-funcs
7 DESCRIPTION="Produces drawings of two- or three-dimensional solid objects and scenes for TeX"
8 HOMEPAGE="http://www.frontiernet.net/~eugene.ressler/"
9 SRC_URI="http://www.frontiernet.net/~eugene.ressler/${P}.tgz"
16 DEPEND="dev-lang/perl"
23 sed -i -e "s:\$(CC):\$(CC) \$(LDFLAGS):" makefile
27 emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" || die "emake failed"
32 edos2unix Doc/sketch.info
33 doinfo Doc/sketch.info || die
34 dohtml updates.htm || die
36 insinto /usr/share/doc/${PF}
37 doins Doc/sketch.pdf || die
38 dohtml Doc/sketch/* || die
40 if use examples ; then
41 insinto /usr/share/doc/${PF}/examples
42 doins Data/* || die "Failed to install examples"