parlay

yet another gentoo overlay
git clone https://git.parazyd.org/parlay
Log | Files | Refs | README

commit 867fac6c4e2497ae30aab20f28c244ad30544b3b
parent 82de16a450d7c289ab05c42a2236561aa63e9fcb
Author: parazyd <parazyd@dyne.org>
Date:   Sat, 23 Sep 2017 18:08:03 +0200

app-text/smu: Add 9999

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

diff --git a/app-text/smu/smu-9999.ebuild b/app-text/smu/smu-9999.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit git-r3 + +DESCRIPTION="simple markup - markdown like syntax" +HOMEPAGE="https://github.com/Gottox/smu" +EGIT_REPO_URI="https://github.com/Gottox/smu" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="" +IUSE="static" + +DEPEND="" +RDEPEND="" + +src_prepare() { + default + + sed -i \ + -e "/^CDFLAGS/{s|=|+=|g;s|-O. | |g}" \ + -e "/^LDFLAGS/{s|=|+=|g;s|-s | |g}" \ + -e "s@-I/usr/include@@" -e "s@-L/usr/lib@@" \ + config.mk || die + + if use static; then + echo "LDFLAGS += -static" >> config.mk + fi +} + +src_compile() { + emake smu +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install + + dodoc documentation + dodoc testdoc +}