Diff yascreen-1.86-r1 with a yascreen-1.92
/usr/portage/dev-libs/yascreen/yascreen-1.92.ebuild 2023-10-09 14:52:29.772368357 +0300 | ||
---|---|---|
1 |
# Copyright 2021 Gentoo Authors |
|
1 |
# Copyright 2021-2023 Gentoo Authors |
|
2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
3 | 3 | |
4 | 4 |
EAPI=8 |
... | ... | |
10 | 10 |
SRC_URI="https://github.com/bbonev/yascreen/releases/download/v${PV}/${P}.tar.xz" |
11 | 11 | |
12 | 12 |
LICENSE="LGPL-3+" |
13 |
SLOT="0" |
|
13 |
SLOT="0/1" |
|
14 | 14 |
KEYWORDS="~amd64 ~x86" |
15 | 15 | |
16 |
PATCHES=( |
|
17 |
"${FILESDIR}/${P}-fix-install.patch" |
|
18 |
) |
|
19 | ||
20 | 16 |
src_prepare() { |
21 | 17 |
default |
22 | 18 |
sed -e '/INSTALL/s/-Ds/-D/' \ |
23 |
-e '/INSTALL/s/-s//' \ |
|
24 |
-e "s:/usr/local:${EPREFIX}/usr:" \ |
|
25 |
-e "s:/lib/:/$(get_libdir)/:" \ |
|
26 |
-i Makefile.main || die |
|
19 |
-e '/INSTALL.*libyascreen.a/d' -e 's/libyascreen.a//' -i Makefile.main || die |
|
20 |
grep -q -F "SOVERM:=1" Makefile.main || die "subslot changed" |
|
27 | 21 |
} |
28 | 22 | |
29 | 23 |
src_compile() { |
30 |
emake CC="$(tc-getCC)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" NO_FLTO=1 |
|
24 |
emake CC="$(tc-getCC)" PREFIX="${EPREFIX}/usr" LIBDIR="/$(get_libdir)/" NO_FLTO=1 |
|
31 | 25 |
} |
32 | 26 | |
33 | 27 |
src_install() { |
34 |
default |
|
35 |
find "${D}" -name '*.a' -delete || die |
|
28 |
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" LIBDIR="/$(get_libdir)/" install |
|
29 |
einstalldocs |
|
36 | 30 |
} |