1 |
commit: 8e372b87243e0a23457033777e058825860b50ea |
2 |
Author: Tim Harder <radhermit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 24 05:47:20 2018 +0000 |
4 |
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 24 05:49:55 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e372b87 |
7 |
|
8 |
app-shells/fzy: drop debugging CFLAG and respect CC |
9 |
|
10 |
app-shells/fzy/files/fzy-0.9-cflags.patch | 11 ++++++++++ |
11 |
app-shells/fzy/fzy-0.9-r1.ebuild | 36 +++++++++++++++++++++++++++++++ |
12 |
2 files changed, 47 insertions(+) |
13 |
|
14 |
diff --git a/app-shells/fzy/files/fzy-0.9-cflags.patch b/app-shells/fzy/files/fzy-0.9-cflags.patch |
15 |
new file mode 100644 |
16 |
index 00000000000..328abc9c6fe |
17 |
--- /dev/null |
18 |
+++ b/app-shells/fzy/files/fzy-0.9-cflags.patch |
19 |
@@ -0,0 +1,11 @@ |
20 |
+--- fzy-0.9/Makefile |
21 |
++++ fzy-0.9/Makefile |
22 |
+@@ -1,7 +1,7 @@ |
23 |
+ VERSION=0.9 |
24 |
+ |
25 |
+ CPPFLAGS=-DVERSION=\"${VERSION}\" -D_GNU_SOURCE |
26 |
+-CFLAGS+=-Wall -Wextra -g -std=c99 -O3 -pedantic -Ideps |
27 |
++CFLAGS+=-Wall -Wextra -std=c99 -pedantic -Ideps |
28 |
+ PREFIX?=/usr/local |
29 |
+ MANDIR?=$(PREFIX)/share/man |
30 |
+ BINDIR?=$(PREFIX)/bin |
31 |
|
32 |
diff --git a/app-shells/fzy/fzy-0.9-r1.ebuild b/app-shells/fzy/fzy-0.9-r1.ebuild |
33 |
new file mode 100644 |
34 |
index 00000000000..3db8979e1bd |
35 |
--- /dev/null |
36 |
+++ b/app-shells/fzy/fzy-0.9-r1.ebuild |
37 |
@@ -0,0 +1,36 @@ |
38 |
+# Copyright 1999-2018 Gentoo Foundation |
39 |
+# Distributed under the terms of the GNU General Public License v2 |
40 |
+ |
41 |
+EAPI=6 |
42 |
+ |
43 |
+inherit savedconfig toolchain-funcs |
44 |
+ |
45 |
+DESCRIPTION="Fuzzy text selector (interactive grep) for console" |
46 |
+HOMEPAGE="https://github.com/jhawthorn/fzy" |
47 |
+SRC_URI="https://github.com/jhawthorn/fzy/archive/${PV}.tar.gz -> ${P}.tar.gz" |
48 |
+ |
49 |
+LICENSE="MIT" |
50 |
+SLOT="0" |
51 |
+IUSE="test" |
52 |
+ |
53 |
+KEYWORDS="~amd64 ~x86" |
54 |
+ |
55 |
+PATCHES=( "${FILESDIR}"/${P}-cflags.patch ) |
56 |
+ |
57 |
+src_prepare() { |
58 |
+ default |
59 |
+ restore_config config.h |
60 |
+ |
61 |
+ tc-export CC |
62 |
+} |
63 |
+ |
64 |
+src_install() { |
65 |
+ local DOCS=( ALGORITHM.md CHANGELOG.md README.md ) |
66 |
+ |
67 |
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install |
68 |
+ exeinto /usr/share/fzy |
69 |
+ doexe contrib/fzy-tmux |
70 |
+ doexe contrib/fzy-dvtm |
71 |
+ einstalldocs |
72 |
+ save_config config.h |
73 |
+} |