commit 346febeca2e0fb0ab3e7a967b1bbf9c8e64528fc parent 3c2a3d147e640728ab4f623ba24e275e7d540987 Author: parazyd <parazyd@dyne.org> Date: Wed, 9 Aug 2017 17:20:56 +0200 media-gfx/farbfeld: Add 9999 Diffstat:
A | media-gfx/farbfeld/farbfeld-9999.ebuild | | | 41 | +++++++++++++++++++++++++++++++++++++++++ |
1 file changed, 41 insertions(+), 0 deletions(-)
diff --git a/media-gfx/farbfeld/farbfeld-9999.ebuild b/media-gfx/farbfeld/farbfeld-9999.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit git-r3 toolchain-funcs + +DESCRIPTION="farbfeld simple image format tools" +HOMEPAGE="http://tools.suckless.org/farbfeld/" +EGIT_REPO_URI="git://git.suckless.org/farbfeld" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="" + +RDEPEND=" + media-libs/libjpeg-turbo + media-libs/libpng:* +" +DEPEND=" + ${RDEPEND} +" + +src_prepare() { + default + + sed -i \ + -e '/^CC/d' \ + -e 's|/usr/local|/usr|g' \ + -e 's|^CFLAGS.*|CFLAGS += -std=c99 -pedantic -Wall -Wextra $(INCS) $(CPPFLAGS)|g' \ + -e 's|^LDFLAGS.*|LDFLAGS += $(LIBS)|g' \ + -e 's|{|(|g;s|}|)|g' \ + config.mk || die +} + +src_compile() { + emake CC=$(tc-getCC) +} + +src_install() { + emake DESTDIR="${D}" install MANPREFIX=/usr/share/man +}