portage-overlay

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

Commit: 45c073f95231368cb97c64ff76ba565bc8e43f84
Parent: 1935f03934795a590edde986c45d49e524baca6b
Author: Randy Palamar
Date:   Thu,  4 Aug 2022 17:54:03 -0600

add app-text/smu

Diffstat:
Aapp-text/smu/smu-9999.ebuild | 29+++++++++++++++++++++++++++++
1 file changed, 29 insertions(+), 0 deletions(-)

diff --git a/app-text/smu/smu-9999.ebuild b/app-text/smu/smu-9999.ebuild @@ -0,0 +1,29 @@ +EAPI=8 +inherit git-r3 + +DESCRIPTION="smu - a Simple Markup Language" +HOMEPAGE="https://github.com/karlb/smu" +EGIT_REPO_URI="https://github.com/karlb/smu.git" + +LICENSE="MIT" +SLOT="0" +IUSE="+static" + +src_prepare() { + default + + sed -e '/^CFLAGS/{s:=:+=:}' \ + -e '/^LDFLAGS/{s:=:+=:}' \ + -e '/^CFLAGS/{s:-g -O0::}' \ + -e '/^CFLAGS/{s:-Werror::}' \ + < 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}" PREFIX="${EPREFIX}${LOCAL_PREFIX}" install +}