mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 12:58:16 -07:00
Bug: https://bugs.gentoo.org/473598 Bug: https://bugs.gentoo.org/720224 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
48 lines
923 B
Bash
48 lines
923 B
Bash
# Copyright 1999-2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit autotools
|
|
|
|
DESCRIPTION="Celestial Mechanics and Astronomical Calculation Library"
|
|
HOMEPAGE="https://libnova.sourceforge.net/"
|
|
SRC_URI="https://dev.gentoo.org/~asturm/distfiles/${P}.tar.xz"
|
|
|
|
LICENSE="LGPL-2"
|
|
SLOT="0/0.16"
|
|
KEYWORDS="amd64 ~hppa ~ppc ppc64 ~riscv ~x86"
|
|
IUSE="doc examples"
|
|
|
|
BDEPEND="doc? ( app-text/doxygen )"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${P}-slibtool.patch
|
|
"${FILESDIR}"/${P}-cflags.patch
|
|
"${FILESDIR}"/${P}-gcc14.patch # bug 886455
|
|
)
|
|
|
|
src_prepare() {
|
|
default
|
|
eautoreconf
|
|
}
|
|
|
|
src_compile() {
|
|
default
|
|
use doc && emake -C doc doc
|
|
}
|
|
|
|
src_install() {
|
|
use doc && HTML_DOCS=( doc/html/. )
|
|
default
|
|
|
|
if use examples; then
|
|
emake clean
|
|
rm examples/Makefile* || die
|
|
dodoc -r examples
|
|
docompress -x /usr/share/doc/${PF}/examples
|
|
fi
|
|
|
|
find "${D}" -name '*.la' -type f -delete || die
|
|
}
|