portage-overlay

personal portage ebuild repository
git clone anongit@rnpnr.xyz:portage-overlay.git
Log | Files | Refs | Feed | README

Commit: 80fd6763e606e6e96161db0ada9e48867cb1cd21
Parent: 237b82ab74b2de354d159c6b5bcf1f4e92648bd1
Author: Randy Palamar
Date:   Mon, 24 May 2021 13:34:27 -0600

add scroll ebuild

Diffstat:
Aapp-misc/scroll/scroll-9999.ebuild | 33+++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+), 0 deletions(-)

diff --git a/app-misc/scroll/scroll-9999.ebuild b/app-misc/scroll/scroll-9999.ebuild @@ -0,0 +1,33 @@ +EAPI=7 +inherit git-r3 savedconfig + +DESCRIPTION="A terminal emulator scroll back buffer" +HOMEPAGE="https://tools.suckless.org/scroll/" +EGIT_REPO_URI="https://git.suckless.org/scroll" + +LICENSE="ISC" +SLOT="0" +IUSE="savedconfig +static" + +src_prepare() { + default + + sed -e '/^CFLAGS/{s:=:+=:}' \ + -e '/^LDFLAGS/{s:=:+=:}' \ + -e '/^CFLAGS/{s:-Os::}' \ + -e '/^LDFLAGS/{s:-s::}' \ + < config.mk > config.mk.new || die + mv config.mk.new config.mk + + if use static; then + export LDFLAGS="${LDFLAGS} -s -static" + fi + + restore_config config.h +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}${LOCAL_PREFIX}" install + + save_config config.h +}