blob: ac587f8b176bff726a09b03349e364e69e9540dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit eutils toolchain-funcs
DESCRIPTION="Produces drawings of two- or three-dimensional solid objects and scenes for TeX"
HOMEPAGE="https://www.frontiernet.net/~eugene.ressler/"
SRC_URI="https://www.frontiernet.net/~eugene.ressler/${P}.tgz"
KEYWORDS="~amd64 ~ppc64 ~x86"
LICENSE="GPL-3+"
SLOT="0"
IUSE="doc examples"
DEPEND="dev-lang/perl"
RDEPEND=""
src_prepare() {
sed -i -e "s:\$(CC):\$(CC) \$(LDFLAGS):" makefile || die "Fixing Makefile failed"
eapply_user
}
src_compile() {
emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}"
}
src_install() {
dobin sketch
edos2unix Doc/sketch.info
doinfo Doc/sketch.info
dodoc updates.htm
use doc && dodoc -r Doc/*
if use examples; then
docinto examples
dodoc -r Data/*
fi
}
|