tapp-text/utf8expr: Add 9999 - parlay - yet another gentoo overlay HTML git clone https://git.parazyd.org/parlay DIR Log DIR Files DIR Refs DIR README --- DIR commit 3637c4883d0c30abfe4fb232eaaa2f07c27ae358 DIR parent b850e77c86275995713f65eb7b1fd4db7cef9efd HTML Author: parazyd <parazyd@dyne.org> Date: Fri, 13 Apr 2018 17:05:30 +0200 app-text/utf8expr: Add 9999 Diffstat: A app-text/utf8expr/utf8expr-9999.eb… | 40 +++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+), 0 deletions(-) --- DIR diff --git a/app-text/utf8expr/utf8expr-9999.ebuild b/app-text/utf8expr/utf8expr-9999.ebuild t@@ -0,0 +1,40 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit git-r3 + +DESCRIPTION="expr(1) for utf8" +HOMEPAGE="http://git.r-36.net/utf8expr" +EGIT_REPO_URI="http://git.r-36.net/utf8expr" + +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 +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install +}