gentoo-ebuilds/dev-tex/sketch/sketch-0.3.7.ebuild
Sam James 401eaca821
dev-tex/sketch: build w/ -std=gnu17
Bug: https://bugs.gentoo.org/943829
Signed-off-by: Sam James <sam@gentoo.org>
2024-12-01 13:46:08 +00:00

44 lines
903 B
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit edos2unix flag-o-matic 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() {
# bug #943829
append-cflags -std=gnu17
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
}