commit:     468b537249ed0f7bed02aea77f2b7dda3e0b5569
Author:     Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Sat May 31 19:39:32 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat May 31 21:07:10 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=468b5372

app-misc/vifm: add 0.14.2

Closes: https://bugs.gentoo.org/956646
Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42375
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-misc/vifm/Manifest           |  1 +
 app-misc/vifm/metadata.xml       |  1 +
 app-misc/vifm/vifm-0.14.2.ebuild | 95 ++++++++++++++++++++++++++++++++++++++++
 3 files changed, 97 insertions(+)

diff --git a/app-misc/vifm/Manifest b/app-misc/vifm/Manifest
index 8cbd65b85d8b..6093be6b4b0b 100644
--- a/app-misc/vifm/Manifest
+++ b/app-misc/vifm/Manifest
@@ -1 +1,2 @@
 DIST vifm-0.13.tar.gz 2218099 BLAKE2B 
99661dd0defcb434abdc397855feac5c6da55a783cf8ad6afe333e208c431b9d10f05928fcf5a9f8e28ed4d602f66414162b14a872ce8881526f679e6e66259a
 SHA512 
bd5e9f84cfb176e220e798dcdfc62e2ae3e89dbebd08cf4cce73eb843b85060c2df05f04f4db994d406baf2e0f90a04f5cb871beaf00fb04174464c81dd85938
+DIST vifm-0.14.2.tar.gz 2477513 BLAKE2B 
a4a3058294a7d2b8ce2f32e2f48e5dc87577d4013a575f68c136fd96c17f31baac478866dab81719078600b5afe2b518e9a10da320792be6a172e0872555bb03
 SHA512 
b3d800176d7e09599e6b98feef909408c5dae41e0a969b370e41347651ff8f01775a0b7b06e9da8cfd218fefdffbaa5ee9720ac22c47835eda64c87f9ac7b26c

diff --git a/app-misc/vifm/metadata.xml b/app-misc/vifm/metadata.xml
index 408df775c61b..9be79155e21f 100644
--- a/app-misc/vifm/metadata.xml
+++ b/app-misc/vifm/metadata.xml
@@ -16,6 +16,7 @@
        <use>
                <flag name="extended-keys">Support for extended keys (arrows, 
home etc)</flag>
                <flag name="gtk">Use gtk+ to determine mimetypes</flag>
+               <flag name="glib">Use <pkg>dev-libs/glib</pkg>:2 to determine 
mimetypes</flag>
                <flag name="vim">Install the vifm vim plugin and vim-compatible 
documentation</flag>
        </use>
        <upstream>

diff --git a/app-misc/vifm/vifm-0.14.2.ebuild b/app-misc/vifm/vifm-0.14.2.ebuild
new file mode 100644
index 000000000000..ba5123b37f3d
--- /dev/null
+++ b/app-misc/vifm/vifm-0.14.2.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools vim-doc xdg
+
+DESCRIPTION="Console file manager with vi(m)-like keybindings"
+HOMEPAGE="https://vifm.info/";
+if [[ ${PV} == 9999 ]] ; then
+       EGIT_REPO_URI="https://github.com/vifm/vifm";
+       inherit git-r3
+else
+       SRC_URI="https://github.com/vifm/vifm/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+       KEYWORDS="~amd64 ~arm64 ~ppc ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="+extended-keys glib +magic +vim +vim-syntax X"
+
+DEPEND="
+       >=sys-libs/ncurses-5.9-r3:=
+       glib? ( dev-libs/glib:2 )
+       magic? ( sys-apps/file )
+       X? ( x11-libs/libX11 )
+"
+RDEPEND="
+       ${DEPEND}
+       vim? ( || ( app-editors/vim app-editors/gvim ) )
+       vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )
+"
+# "Either perl or Vim is necessary to generate tags for documentation in Vim's 
format." from configure
+BDEPEND="|| ( dev-lang/perl app-editors/vim )"
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+src_configure() {
+       # developer just turns off optimisations and adds -Werror again
+       # bug #855386
+       econf \
+               --disable-developer \
+               --disable-werror \
+               $(use_enable extended-keys) \
+               $(use_with magic libmagic) \
+               $(use_with glib) \
+               $(use_with X X11)
+}
+
+src_install() {
+       default
+
+       if use vim; then
+               local t
+               for t in app plugin; do
+                       insinto /usr/share/vim/vimfiles/"${t}"
+                       doins -r data/vim/doc/${t}/${PN}*
+               done
+       fi
+
+       if use vim-syntax; then
+               local t
+               for t in ftdetect ftplugin syntax; do
+                       insinto /usr/share/vim/vimfiles/"${t}"
+                       doins -r data/vim/${t}/${PN}*
+               done
+       fi
+}
+
+pkg_postinst() {
+       xdg_pkg_postinst
+       if use vim; then
+               update_vim_helptags
+
+               if [[ -n ${REPLACING_VERSIONS} ]]; then
+                       elog
+                       elog "You don't need to copy or link any files for"
+                       elog "  the vim plugin and documentation to work 
anymore."
+                       elog "If you copied any vifm files to ~/.vim/ manually"
+                       elog "  in earlier vifm versions, please delete them."
+               fi
+               elog
+               elog "To use vim in vifm to view the documentation"
+               elog "  edit ~/.vifm/vifmrc and set vimhelp instead of 
novimhelp"
+               elog
+       fi
+}
+
+pkg_postrm() {
+       xdg_pkg_postrm
+       use vim && update_vim_helptags
+}

Reply via email to