portage-overlay

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

smu-9999.ebuild (565B)


      1 EAPI=8
      2 inherit git-r3
      3 
      4 DESCRIPTION="smu - a Simple Markup Language"
      5 HOMEPAGE="https://github.com/karlb/smu"
      6 EGIT_REPO_URI="https://github.com/karlb/smu.git"
      7 
      8 LICENSE="MIT"
      9 SLOT="0"
     10 IUSE="+static"
     11 
     12 src_prepare() {
     13 	default
     14 	
     15 	sed	-e '/^CFLAGS/{s:=:+=:}' \
     16 		-e '/^LDFLAGS/{s:=:+=:}' \
     17 		-e '/^CFLAGS/{s:-g -O0::}' \
     18 		-e '/^CFLAGS/{s:-Werror::}' \
     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 
     27 src_install() {
     28 	emake DESTDIR="${D}" PREFIX="${EPREFIX}${LOCAL_PREFIX}" install
     29 }