diff options
author | Azat Bahawi <azahi@teknik.io> | 2021-02-18 13:20:57 +0300 |
---|---|---|
committer | Azat Bahawi <azahi@teknik.io> | 2021-02-18 13:20:57 +0300 |
commit | 7217e0773b8a6632cac56b31c82f960dcedc464b (patch) | |
tree | 915e0fae6ddc68496f3d0593a10d71574d80440f /app-misc/stag/stag-9999.ebuild | |
parent | app-misc/fbcat: Refactor (diff) |
app-misc/stag: Fix building
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Diffstat (limited to 'app-misc/stag/stag-9999.ebuild')
-rw-r--r-- | app-misc/stag/stag-9999.ebuild | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/app-misc/stag/stag-9999.ebuild b/app-misc/stag/stag-9999.ebuild index fdb6a21..1a58fba 100644 --- a/app-misc/stag/stag-9999.ebuild +++ b/app-misc/stag/stag-9999.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" } |