1 |
commit: 13d5af8ebb7511bc377ce696556ff99db55b3b76 |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 1 04:55:41 2018 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 1 05:00:33 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13d5af8e |
7 |
|
8 |
app-shells/fzy: add live ebuild |
9 |
|
10 |
Package-Manager: Portage-2.3.41, Repoman-2.3.9 |
11 |
|
12 |
app-shells/fzy/fzy-9999.ebuild | 39 +++++++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 39 insertions(+) |
14 |
|
15 |
diff --git a/app-shells/fzy/fzy-9999.ebuild b/app-shells/fzy/fzy-9999.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..bbf7b6adbe5 |
18 |
--- /dev/null |
19 |
+++ b/app-shells/fzy/fzy-9999.ebuild |
20 |
@@ -0,0 +1,39 @@ |
21 |
+# Copyright 1999-2018 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+ |
26 |
+inherit savedconfig toolchain-funcs |
27 |
+ |
28 |
+if [[ ${PV} == 9999 ]]; then |
29 |
+ inherit git-r3 |
30 |
+ EGIT_REPO_URI="https://github.com/jhawthorn/fzy.git" |
31 |
+else |
32 |
+ SRC_URI="https://github.com/jhawthorn/fzy/archive/${PV}.tar.gz -> ${P}.tar.gz" |
33 |
+ KEYWORDS="~amd64 ~x86" |
34 |
+fi |
35 |
+ |
36 |
+DESCRIPTION="Fuzzy text selector (interactive grep) for console" |
37 |
+HOMEPAGE="https://github.com/jhawthorn/fzy" |
38 |
+ |
39 |
+LICENSE="MIT" |
40 |
+SLOT="0" |
41 |
+IUSE="test" |
42 |
+ |
43 |
+PATCHES=( "${FILESDIR}"/fzy-0.9-cflags.patch ) |
44 |
+ |
45 |
+src_prepare() { |
46 |
+ default |
47 |
+ restore_config config.h |
48 |
+ tc-export CC |
49 |
+} |
50 |
+ |
51 |
+src_install() { |
52 |
+ local DOCS=( ALGORITHM.md CHANGELOG.md README.md ) |
53 |
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install |
54 |
+ exeinto /usr/share/fzy |
55 |
+ doexe contrib/fzy-tmux |
56 |
+ doexe contrib/fzy-dvtm |
57 |
+ einstalldocs |
58 |
+ save_config config.h |
59 |
+} |