portage-overlay

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

Commit: 6a2788dfbaff768fba0cf2e34c10cffb66a9aea1
Parent: 0d94625d5d977c1913bfa6b84696e2daaffd3ad2
Author: opask
Date:   Tue,  8 Jan 2019 11:42:45 -0700

add sys-apps/sbase

Diffstat:
Asys-apps/sbase/sbase-9999.ebuild | 31+++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+), 0 deletions(-)

diff --git a/sys-apps/sbase/sbase-9999.ebuild b/sys-apps/sbase/sbase-9999.ebuild @@ -0,0 +1,31 @@ +EAPI=7 + +inherit git-r3 + +DESCRIPTION="Suckless unix tools" +HOMEPAGE="https://core.suckless.org/sbase" +EGIT_REPO_URI="https://git.suckless.org/sbase" + +LICENSE="MIT-with-advertising" +SLOT=0 +IUSE="+static" + +src_configure() { + default + + sed \ + -e '/^CC/d' \ + -e '/^CFLAGS/{s:=:+=:}' \ + -e '/^LDFLAGS/{s:=:+=:}' \ + < config.mk > config.mk.new || die + mv config.mk.new config.mk + + if use static ; then + export LDFLAGS="${LDFLAGS} -s -static" + fi +} + +src_install() { + emake DESTDIR="${D}" CC=${CC} PREFIX=${EPREFIX}${LOCAL_PREFIX} install + einstalldocs +}