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