From 7217e0773b8a6632cac56b31c82f960dcedc464b Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Thu, 18 Feb 2021 13:20:57 +0300 Subject: app-misc/stag: Fix building Package-Manager: Portage-3.0.14, Repoman-3.0.2 --- app-misc/stag/stag-1.0.0.ebuild | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) (limited to 'app-misc/stag/stag-1.0.0.ebuild') diff --git a/app-misc/stag/stag-1.0.0.ebuild b/app-misc/stag/stag-1.0.0.ebuild index fdb6a21..1a58fba 100644 --- a/app-misc/stag/stag-1.0.0.ebuild +++ b/app-misc/stag/stag-1.0.0.ebuild @@ -4,11 +4,13 @@ EAPI=7 if [[ ${PV} == *9999 ]]; then - inherit git-r3 + SCM="git-r3" EGIT_REPO_URI="https://github.com/seenaburns/stag.git" fi -DESCRIPTION="Streaming bar graphs. For stats and stuff." +inherit toolchain-funcs ${SCM} + +DESCRIPTION="Streaming bar graphs for stats and stuff" HOMEPAGE="https://github.com/seenaburns/stag" if [[ ${PV} == *9999 ]]; then @@ -27,10 +29,21 @@ DEPEND="sys-libs/ncurses" RDEPEND="${DEPEND}" BDEPEND="" -PATCHES=( - "${FILESDIR}/${P}-ncurses.patch" -) +src_prepare() { + sed -e 's/^CFLAGS=/CFLAGS+=/' \ + -e 's/-lncurses/-lncurses -ltinfo/' \ + -i Makefile || die + + default +} + +src_compile() { + emake \ + CC="$(tc-getCC)" +} src_install() { - emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install + emake install \ + DESTDIR="${D}" \ + PREFIX="${EPREFIX}/usr" } -- cgit 1.4.1