summaryrefslogtreecommitdiff
path: root/dev-libs/yascreen/yascreen-1.86-r1.ebuild
blob: 6ce556efe3ab865ef8eb73483b3f26495d0b59c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit toolchain-funcs

DESCRIPTION="Yet Another Screen Library - curses replacement"
HOMEPAGE="https://github.com/bbonev/yascreen"
SRC_URI="https://github.com/bbonev/yascreen/releases/download/v${PV}/${P}.tar.xz"

LICENSE="LGPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"

PATCHES=(
	"${FILESDIR}/${P}-fix-install.patch"
)

src_prepare() {
	default
	sed -e '/INSTALL/s/-Ds/-D/' \
		-e '/INSTALL/s/-s//' \
		-e "s:/usr/local:${EPREFIX}/usr:" \
		-e "s:/lib/:/$(get_libdir)/:" \
		-i Makefile.main || die
}

src_compile() {
	emake CC="$(tc-getCC)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" NO_FLTO=1
}

src_install() {
	default
	find "${D}" -name '*.a' -delete || die
}