Diff unibilium-2.1.1 with a unibilium-2.1.1-r1

/usr/portage/dev-libs/unibilium/unibilium-2.1.1-r1.ebuild 2023-10-09 14:52:29.768368357 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6
inherit flag-o-matic toolchain-funcs
6
inherit autotools
7 7

  
8 8
DESCRIPTION="A very basic terminfo library"
9 9
HOMEPAGE="https://github.com/neovim/unibilium/"
......
11 11

  
12 12
LICENSE="LGPL-3+ MIT"
13 13
SLOT="0/4"
14
KEYWORDS="amd64 arm arm64 ~riscv x86 ~x64-macos"
15
IUSE="static-libs"
14
KEYWORDS="amd64 arm arm64 ~ppc64 ~riscv x86 ~x64-macos"
16 15

  
17
BDEPEND="dev-lang/perl
18
	sys-devel/libtool"
16
BDEPEND="dev-lang/perl"
19 17

  
20 18
PATCHES=(
21 19
	"${FILESDIR}/${PN}-2.1.0-no-compress-man.patch"
20
	"${FILESDIR}/${P}-libtool.patch" # 828492
22 21
)
23 22

  
24
src_compile() {
25
	append-flags -fPIC
26
	tc-export CC
27
	emake PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" all
23
src_prepare() {
24
	default
25
	eautoreconf
28 26
}
29 27

  
30 28
src_install() {
31
	emake PREFIX="${EPREFIX}/usr" LIBDIR="${EPREFIX}/usr/$(get_libdir)" DESTDIR="${D}" install
32
	use static-libs || rm "${ED}"/usr/$(get_libdir)/lib${PN}.a || die
33
	rm "${ED}"/usr/$(get_libdir)/lib${PN}.la || die
29
	emake DESTDIR="${D}" install
30
	find "${D}" -name '*.la' -delete || die
34 31
}
Thank you!