1 |
commit: 386be6c482ced7456437f6f99e784e4446cd928d |
2 |
Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 27 15:36:44 2022 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 27 15:36:44 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=386be6c4 |
7 |
|
8 |
app-misc/vifm: add 0.12 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/834126 |
11 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
12 |
|
13 |
app-misc/vifm/Manifest | 1 + |
14 |
app-misc/vifm/vifm-0.12.ebuild | 83 ++++++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 84 insertions(+) |
16 |
|
17 |
diff --git a/app-misc/vifm/Manifest b/app-misc/vifm/Manifest |
18 |
index 32d132f9f552..ad487eb528c3 100644 |
19 |
--- a/app-misc/vifm/Manifest |
20 |
+++ b/app-misc/vifm/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST vifm-0.11.tar.gz 1525791 BLAKE2B c2aa6d3ddd0304ce1e3a0d1c9ac3218a783bc6dd8eebf7b3346ca262811f63dac75597913ad4883c62680cb77036c2985ca4ce88989a0dd0212dce975d8ec8b8 SHA512 15ace460da6d5f9bb7a016d8bb3f3d9cba47a608da5a39defbf7d09ff9de64c90a63a44264d695fe005f2f6d27ecb07dcec8f4ed5aef15e9d8728b52f1168dbd |
23 |
+DIST vifm-0.12.tar.gz 1913398 BLAKE2B 6a1933e5a70a61402ae52259ee9e03515916e9d6df57285726ec6062257d85966a32173142e730fbc35b48250c585a5e66cadba788e2029e5dcd620544341c4f SHA512 9491b1932535daa0ce6bd33ef955bfaedf995da27f049b36bdb0de9aa87a9a4dd6d2e22c8bf79e343febee16ae0fb87edfa8bde9c2d115b92c768e87bc0a8a7d |
24 |
|
25 |
diff --git a/app-misc/vifm/vifm-0.12.ebuild b/app-misc/vifm/vifm-0.12.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..7ad0e2c512ff |
28 |
--- /dev/null |
29 |
+++ b/app-misc/vifm/vifm-0.12.ebuild |
30 |
@@ -0,0 +1,83 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+inherit autotools vim-doc xdg |
37 |
+ |
38 |
+DESCRIPTION="Console file manager with vi(m)-like keybindings" |
39 |
+HOMEPAGE="https://vifm.info/" |
40 |
+SRC_URI="https://github.com/vifm/vifm/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="GPL-2" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~arm64 ~ppc ~x86" |
45 |
+IUSE="developer +extended-keys gtk +magic +vim +vim-syntax X" |
46 |
+ |
47 |
+DEPEND=" |
48 |
+ >=sys-libs/ncurses-5.9-r3:0 |
49 |
+ magic? ( sys-apps/file ) |
50 |
+ gtk? ( x11-libs/gtk+:2 ) |
51 |
+ X? ( x11-libs/libX11 )" |
52 |
+ |
53 |
+RDEPEND="${DEPEND} |
54 |
+ vim? ( || ( app-editors/vim app-editors/gvim ) ) |
55 |
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )" |
56 |
+ |
57 |
+src_prepare() { |
58 |
+ default |
59 |
+ eautoreconf |
60 |
+} |
61 |
+ |
62 |
+src_configure() { |
63 |
+ econf \ |
64 |
+ $(use_enable developer) \ |
65 |
+ $(use_enable extended-keys) \ |
66 |
+ $(use_with magic libmagic) \ |
67 |
+ $(use_with gtk) \ |
68 |
+ $(use_with X X11) |
69 |
+} |
70 |
+ |
71 |
+src_install() { |
72 |
+ default |
73 |
+ |
74 |
+ if use vim; then |
75 |
+ local t |
76 |
+ for t in app plugin; do |
77 |
+ insinto /usr/share/vim/vimfiles/"${t}" |
78 |
+ doins -r data/vim/doc/${t}/${PN}* |
79 |
+ done |
80 |
+ fi |
81 |
+ |
82 |
+ if use vim-syntax; then |
83 |
+ local t |
84 |
+ for t in ftdetect ftplugin syntax; do |
85 |
+ insinto /usr/share/vim/vimfiles/"${t}" |
86 |
+ doins -r data/vim/${t}/${PN}* |
87 |
+ done |
88 |
+ fi |
89 |
+} |
90 |
+ |
91 |
+pkg_postinst() { |
92 |
+ xdg_pkg_postinst |
93 |
+ if use vim; then |
94 |
+ update_vim_helptags |
95 |
+ |
96 |
+ if [[ -n ${REPLACING_VERSIONS} ]]; then |
97 |
+ elog |
98 |
+ elog "You don't need to copy or link any files for" |
99 |
+ elog " the vim plugin and documentation to work anymore." |
100 |
+ elog "If you copied any vifm files to ~/.vim/ manually" |
101 |
+ elog " in earlier vifm versions, please delete them." |
102 |
+ fi |
103 |
+ elog |
104 |
+ elog "To use vim in vifm to view the documentation" |
105 |
+ elog " edit ~/.vifm/vifmrc and set vimhelp instead of novimhelp" |
106 |
+ elog |
107 |
+ fi |
108 |
+} |
109 |
+ |
110 |
+pkg_postrm() { |
111 |
+ xdg_pkg_postrm |
112 |
+ use vim && update_vim_helptags |
113 |
+} |