1 |
commit: 275e4e3410263dfe5ac0fdcd16b3bf7037c12b4b |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 23 23:04:07 2018 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 23 23:06:45 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=275e4e34 |
7 |
|
8 |
app-shells/fzy: bump to 1.0 |
9 |
|
10 |
Now with proper UTF8 support. |
11 |
Change dvtm/tmux script location to /usr/bin |
12 |
|
13 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
14 |
Package-Manager: Portage-2.3.49, Repoman-2.3.10 |
15 |
|
16 |
app-shells/fzy/Manifest | 1 + |
17 |
app-shells/fzy/fzy-1.0.ebuild | 44 +++++++++++++++++++++++++++++++++++++++++++ |
18 |
2 files changed, 45 insertions(+) |
19 |
|
20 |
diff --git a/app-shells/fzy/Manifest b/app-shells/fzy/Manifest |
21 |
index 9aefd251ac6..787fc6bb5df 100644 |
22 |
--- a/app-shells/fzy/Manifest |
23 |
+++ b/app-shells/fzy/Manifest |
24 |
@@ -1,2 +1,3 @@ |
25 |
DIST fzy-0.9.tar.gz 42992 BLAKE2B ebc7e73e0387101da65896a4108705048bb72b01261ea86a0abeaee22fe4517ac54351d508bb79419b05a15aa9c93c5d815c34d15353d01c02381e5d342e75b7 SHA512 71a44bc3bbef3a2d82476a69b5c9e28753e760bbb8d453a9e44b57f34a79dd8ebcd510a869dfeae95f522ba6ccb4b8f10f79c081ce6bc6cfae9a41f4071fefc0 |
26 |
+DIST fzy-1.0.tar.gz 47432 BLAKE2B 5fef7061c797e63dabc3f77daf3dbc8a58671c257430dc8ba4680363a9ace5722562fc7e0aba618d53820e703b261dbe0182638f16223d1202080450a6c21ec2 SHA512 de5ed1af035260f4ae550c53b08c4ff302c978350784cbfd2981d1691f55d9c0f26b9333c74adea939b3f4578dd47e66ee99112e10afc5497c64011827d19dbc |
27 |
DIST fzy-2697c02618d908e5bdcae93ab4815b04c49bd25e.tar.gz 45814 BLAKE2B bb4dbc668dd93c71d16c3affdaf148212e3fbdef27110314b8145fd4a20991bb368f7aef1d1f7bd147afa23900800c468b4d9b2999de2226ce9a312a02d344b4 SHA512 34520dc3b4bcbad3479cce1fbeb014b1851edc1b1f4460c21a645297bf9ec01a1483f108a562f6ac6d3c0def97427740b74e9a3b83c85223d14ac3e1586e3d8e |
28 |
|
29 |
diff --git a/app-shells/fzy/fzy-1.0.ebuild b/app-shells/fzy/fzy-1.0.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..ba77064dac0 |
32 |
--- /dev/null |
33 |
+++ b/app-shells/fzy/fzy-1.0.ebuild |
34 |
@@ -0,0 +1,44 @@ |
35 |
+# Copyright 1999-2018 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=6 |
39 |
+ |
40 |
+inherit eutils savedconfig toolchain-funcs |
41 |
+ |
42 |
+if [[ ${PV} == 9999 ]]; then |
43 |
+ inherit git-r3 |
44 |
+ EGIT_REPO_URI="https://github.com/jhawthorn/fzy.git" |
45 |
+else |
46 |
+ SRC_URI="https://github.com/jhawthorn/${PN}/releases/download/${PV}/${P}.tar.gz" |
47 |
+ KEYWORDS="~amd64 ~x86" |
48 |
+fi |
49 |
+ |
50 |
+DESCRIPTION="Fuzzy text selector (interactive grep) for console" |
51 |
+HOMEPAGE="https://github.com/jhawthorn/fzy" |
52 |
+ |
53 |
+LICENSE="MIT" |
54 |
+SLOT="0" |
55 |
+IUSE="test" |
56 |
+ |
57 |
+PATCHES=( "${FILESDIR}"/fzy-0.9-cflags.patch ) |
58 |
+ |
59 |
+src_prepare() { |
60 |
+ default |
61 |
+ restore_config config.h |
62 |
+ tc-export CC |
63 |
+} |
64 |
+ |
65 |
+src_install() { |
66 |
+ local DOCS=( ALGORITHM.md CHANGELOG.md README.md ) |
67 |
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install |
68 |
+ dobin contrib/fzy-tmux |
69 |
+ dobin contrib/fzy-dvtm |
70 |
+ einstalldocs |
71 |
+ save_config config.h |
72 |
+} |
73 |
+ |
74 |
+pkg_postinst() { |
75 |
+ savedconfig_pkg_postinst |
76 |
+ optfeature "opening search results in dvtm pane with provided ${EPREFIX}/usr/bin/fzy-dvtm" app-misc/dvtm |
77 |
+ optfeature "opening search results in tmux pane with provided ${EPREFIX}/usr/bin/fzy-tmux" app-misc/tmux |
78 |
+} |