commit:     8e372b87243e0a23457033777e058825860b50ea
Author:     Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 24 05:47:20 2018 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Sat Mar 24 05:49:55 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e372b87

app-shells/fzy: drop debugging CFLAG and respect CC

 app-shells/fzy/files/fzy-0.9-cflags.patch | 11 ++++++++++
 app-shells/fzy/fzy-0.9-r1.ebuild          | 36 +++++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+)

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 00000000000..328abc9c6fe
--- /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 00000000000..3db8979e1bd
--- /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
+}

Reply via email to