mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-08 00:05:33 +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>
39 lines
827 B
Bash
39 lines
827 B
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit toolchain-funcs
|
|
|
|
DESCRIPTION="Library that provides an easy API to Linux serial ports"
|
|
HOMEPAGE="https://ezv24.sourceforge.net"
|
|
SRC_URI="https://downloads.sourceforge.net/ezv24/${P}.tar.gz"
|
|
|
|
LICENSE="GPL-2+"
|
|
SLOT="0"
|
|
KEYWORDS="~alpha amd64 ppc ~sparc x86"
|
|
|
|
HTML_DOCS=( api-html/. )
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${P}-build.patch
|
|
"${FILESDIR}"/${P}-test.patch
|
|
"${FILESDIR}"/${P}-clang16-build-fix.patch
|
|
)
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
tc-export AR CC RANLIB
|
|
sed -i -e 's:__LINUX__:__linux__:' *.c *.h || die
|
|
}
|
|
|
|
src_install() {
|
|
export NO_LDCONFIG="stupid"
|
|
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" \
|
|
LIBDIR="${EPREFIX}/usr/$(get_libdir)" install
|
|
einstalldocs
|
|
|
|
find "${ED}" -name '*.a' -delete || die
|
|
}
|