portage-overlay

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

Commit: e9daea95fa0fba507c1dd2da7dbe37c3a429eb50
Parent: 544d3f4f8a4c1478a2c3ff2ff68fef6a6b1b3495
Author: Randy Palamar
Date:   Sun,  8 Aug 2021 11:39:40 -0600

add x11-misc/herbe ebuild

Diffstat:
Ax11-misc/herbe/herbe-9999.ebuild | 37+++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+), 0 deletions(-)

diff --git a/x11-misc/herbe/herbe-9999.ebuild b/x11-misc/herbe/herbe-9999.ebuild @@ -0,0 +1,37 @@ +EAPI=7 +inherit git-r3 savedconfig + +DESCRIPTION="Daemon-less notifications without D-Bus" +HOMEPAGE="https://github.com/dudik/herbe" +EGIT_REPO_URI="https://github.com/dudik/herbe.git" + +LICENSE="MIT" +SLOT="0" +IUSE="savedconfig static" + +DEPEND=" + media-libs/fontconfig + x11-libs/libX11 + x11-libs/libXft +" + +src_prepare() { + default + + sed -e '/^CFLAGS/{s:=:+=:}' \ + < Makefile > Makefile.new || die + mv Makefile.new Makefile + + if use static; then + export CFLAGS="${CFLAGS} -s -static" + export LDFLAGS="${LDFLAGS} -s -static" + fi + + restore_config config.h +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}${LOCAL_PREFIX}" install + + save_config config.h +}