mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-11 00:07:51 +03:00
Result of running the command: grep --include="*.ebuild" -r . -e 'KEYWORDS=.*[" ]sparc' -l | xargs ekeyword ~sparc Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
64 lines
1.3 KiB
Bash
64 lines
1.3 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit dot-a libtool
|
|
|
|
MY_PV="$(ver_rs 1 '-')"
|
|
MY_P=${PN}${MY_PV}
|
|
|
|
DESCRIPTION="An ANSI C library for parsing GNU-style command-line options with minimal fuss"
|
|
HOMEPAGE="https://argtable.sourceforge.io"
|
|
SRC_URI="https://downloads.sourceforge.net/project/${PN}/${PN}/${P}/${MY_P}.tar.gz"
|
|
S="${WORKDIR}"/${MY_P}
|
|
|
|
LICENSE="LGPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~alpha amd64 ~arm64 ~loong ppc ppc64 ~riscv ~sparc x86"
|
|
IUSE="doc debug examples static-libs"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${PN}-2.13-Fix-implicit-function-declaration.patch
|
|
"${FILESDIR}"/${PN}-2.13-Fix-undeclared-library-function.patch
|
|
)
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
# not needed for glibc or musl #945723
|
|
rm src/getopt.h || die
|
|
|
|
elibtoolize
|
|
}
|
|
|
|
src_configure() {
|
|
lto-guarantee-fat
|
|
|
|
econf \
|
|
$(use_enable debug) \
|
|
$(use_enable static-libs static)
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
|
|
rm -rf "${ED}"/usr/share/doc/${PF}/
|
|
|
|
if use doc ; then
|
|
cd "${S}"/doc || die
|
|
dodoc *.pdf *.ps
|
|
docinto html
|
|
dodoc *.html *.gif
|
|
fi
|
|
|
|
if use examples ; then
|
|
cd "${S}"/example || die
|
|
docinto examples
|
|
dodoc Makefile *.[ch] README.txt
|
|
fi
|
|
|
|
find "${ED}" -name "*.la" -delete || die "failed to delete .la files"
|
|
strip-lto-bytecode
|
|
}
|