mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-18 16:08:17 +00:00
bump copyright of touched ebuilds to 2024 Signed-off-by: Lucio Sauer <watermanpaint@posteo.net> Signed-off-by: Michał Górny <mgorny@gentoo.org>
55 lines
995 B
Bash
55 lines
995 B
Bash
# Copyright 1999-2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit flag-o-matic toolchain-funcs
|
|
|
|
MY_P="${PN}-${PV/_p/c}"
|
|
|
|
DESCRIPTION="Volume rendering library"
|
|
HOMEPAGE="https://amide.sourceforge.net/packages.html"
|
|
SRC_URI="https://downloads.sourceforge.net/amide/${MY_P}.tgz"
|
|
S="${WORKDIR}/${MY_P}"
|
|
|
|
LICENSE="BSD"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="doc examples"
|
|
|
|
BDEPEND="sys-devel/m4"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${P}-skip-examples.patch
|
|
"${FILESDIR}"/${P}-clang16.patch
|
|
"${FILESDIR}"/${P}-cbuild-env.patch
|
|
)
|
|
|
|
src_configure() {
|
|
append-cflags -std=gnu89 # old codebase, will break with c2x
|
|
tc-export_build_env BUILD_CC # see cbuild-env.patch
|
|
|
|
default
|
|
}
|
|
|
|
src_compile() {
|
|
emake -j1
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
|
|
if use examples; then
|
|
dodoc -r examples
|
|
docompress -x /usr/share/doc/${PF}/examples
|
|
fi
|
|
|
|
if use doc; then
|
|
dodoc doc/*.pdf
|
|
|
|
docinto html
|
|
dodoc doc/*.html
|
|
fi
|
|
|
|
find "${ED}" -type f -name '*.la' -delete || die
|
|
}
|