diff options
author | Tim Harder <radhermit@gentoo.org> | 2018-03-24 01:47:20 -0400 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2018-03-24 01:49:55 -0400 |
commit | 8e372b87243e0a23457033777e058825860b50ea (patch) | |
tree | 4a5a78800a8574e06facbaa3b8092bbef1aecc5e /app-shells | |
parent | app-emulation/libvirt: address QA messages (diff) | |
download | gentoo-8e372b87243e0a23457033777e058825860b50ea.tar.gz gentoo-8e372b87243e0a23457033777e058825860b50ea.tar.bz2 gentoo-8e372b87243e0a23457033777e058825860b50ea.zip |
app-shells/fzy: drop debugging CFLAG and respect CC
Diffstat (limited to 'app-shells')
-rw-r--r-- | app-shells/fzy/files/fzy-0.9-cflags.patch | 11 | ||||
-rw-r--r-- | app-shells/fzy/fzy-0.9-r1.ebuild | 36 |
2 files changed, 47 insertions, 0 deletions
diff --git a/app-shells/fzy/files/fzy-0.9-cflags.patch b/app-shells/fzy/files/fzy-0.9-cflags.patch new file mode 100644 index 000000000000..328abc9c6fe7 --- /dev/null +++ b/app-shells/fzy/files/fzy-0.9-cflags.patch @@ -0,0 +1,11 @@ +--- fzy-0.9/Makefile ++++ fzy-0.9/Makefile +@@ -1,7 +1,7 @@ + VERSION=0.9 + + CPPFLAGS=-DVERSION=\"${VERSION}\" -D_GNU_SOURCE +-CFLAGS+=-Wall -Wextra -g -std=c99 -O3 -pedantic -Ideps ++CFLAGS+=-Wall -Wextra -std=c99 -pedantic -Ideps + PREFIX?=/usr/local + MANDIR?=$(PREFIX)/share/man + BINDIR?=$(PREFIX)/bin diff --git a/app-shells/fzy/fzy-0.9-r1.ebuild b/app-shells/fzy/fzy-0.9-r1.ebuild new file mode 100644 index 000000000000..3db8979e1bd9 --- /dev/null +++ b/app-shells/fzy/fzy-0.9-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit savedconfig toolchain-funcs + +DESCRIPTION="Fuzzy text selector (interactive grep) for console" +HOMEPAGE="https://github.com/jhawthorn/fzy" +SRC_URI="https://github.com/jhawthorn/fzy/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +IUSE="test" + +KEYWORDS="~amd64 ~x86" + +PATCHES=( "${FILESDIR}"/${P}-cflags.patch ) + +src_prepare() { + default + restore_config config.h + + tc-export CC +} + +src_install() { + local DOCS=( ALGORITHM.md CHANGELOG.md README.md ) + + emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install + exeinto /usr/share/fzy + doexe contrib/fzy-tmux + doexe contrib/fzy-dvtm + einstalldocs + save_config config.h +} |