scroll-9999.ebuild (644B)
1 EAPI=7 2 inherit git-r3 savedconfig 3 4 DESCRIPTION="A terminal emulator scroll back buffer" 5 HOMEPAGE="https://tools.suckless.org/scroll/" 6 EGIT_REPO_URI="https://git.suckless.org/scroll" 7 8 LICENSE="ISC" 9 SLOT="0" 10 IUSE="savedconfig +static" 11 12 src_prepare() { 13 default 14 15 sed -e '/^CFLAGS/{s:=:+=:}' \ 16 -e '/^LDFLAGS/{s:=:+=:}' \ 17 -e '/^CFLAGS/{s:-Os::}' \ 18 -e '/^LDFLAGS/{s:-s::}' \ 19 < config.mk > config.mk.new || die 20 mv config.mk.new config.mk 21 22 if use static; then 23 export LDFLAGS="${LDFLAGS} -s -static" 24 fi 25 26 restore_config config.h 27 } 28 29 src_install() { 30 emake DESTDIR="${D}" PREFIX="${EPREFIX}${LOCAL_PREFIX}" install 31 32 save_config config.h 33 }