summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-tex/sketch/sketch-0.2.90-r1.ebuild')
-rw-r--r--dev-tex/sketch/sketch-0.2.90-r1.ebuild44
1 files changed, 44 insertions, 0 deletions
diff --git a/dev-tex/sketch/sketch-0.2.90-r1.ebuild b/dev-tex/sketch/sketch-0.2.90-r1.ebuild
new file mode 100644
index 000000000..f84fa2e35
--- /dev/null
+++ b/dev-tex/sketch/sketch-0.2.90-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Produces drawings of two- or three-dimensional solid objects and scenes for TeX"
+HOMEPAGE="http://www.frontiernet.net/~eugene.ressler/"
+SRC_URI="http://www.frontiernet.net/~eugene.ressler/${P}.tgz"
+LICENSE="GPL-3"
+
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="doc examples"
+
+DEPEND="dev-lang/perl"
+RDEPEND=""
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+ sed -i -e "s:\$(CC):\$(CC) \$(LDFLAGS):" makefile
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" || die "emake failed"
+}
+
+src_install() {
+ dobin sketch || die
+ edos2unix Doc/sketch.info
+ doinfo Doc/sketch.info || die
+ dohtml updates.htm || die
+ if use doc ; then
+ insinto /usr/share/doc/${PF}
+ doins Doc/sketch.pdf || die
+ dohtml Doc/sketch/* || die
+ fi
+ if use examples ; then
+ insinto /usr/share/doc/${PF}/examples
+ doins Data/* || die "Failed to install examples"
+ fi
+}