Add vifm from git.
authorOlof-Joachim Frahm <olof@macrolet.net>
Fri, 18 Jul 2014 20:57:37 +0000 (21:57 +0100)
committerOlof-Joachim Frahm <olof@macrolet.net>
Fri, 18 Jul 2014 20:57:37 +0000 (21:57 +0100)
app-misc/vifm/Manifest [new file with mode: 0644]
app-misc/vifm/vifm-9999.ebuild [new file with mode: 0644]

diff --git a/app-misc/vifm/Manifest b/app-misc/vifm/Manifest
new file mode 100644 (file)
index 0000000..8dbe1aa
--- /dev/null
@@ -0,0 +1 @@
+EBUILD vifm-9999.ebuild 1933 SHA256 8ef457a4222abe2d28a63e8d9a3462ecc28e653a4934cf9614b4ee32a4f050aa SHA512 52119f63abf981b7e98291ed19e7678ad6707c1558b9311929b70a8151baa6af153e377e52f9d5179ea975ab11bcc1c19971690461ec1a713ead3eada4e46af8 WHIRLPOOL 70a07cec481d0e8b0ef7839c522c1b329964b6e3a3f662ad5a668d1835a102e3c762632526b3836109961709b11403a5e62176e1fdca504ec94f574f93ed2ffb
diff --git a/app-misc/vifm/vifm-9999.ebuild b/app-misc/vifm/vifm-9999.ebuild
new file mode 100644 (file)
index 0000000..352b8b1
--- /dev/null
@@ -0,0 +1,89 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/vifm/vifm-0.7.7.ebuild,v 1.4 2014/07/15 09:42:05 nimiux Exp $
+
+EAPI=5
+
+inherit eutils git-r3 autotools vim-doc
+
+DESCRIPTION="Console file manager with vi(m)-like keybindings"
+HOMEPAGE="http://vifm.sourceforge.net/"
+EGIT_REPO_URI="https://github.com/ksteen/vifm.git"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE="X developer +extended-keys gtk +magic vim vim-syntax"
+
+DEPEND="
+       >=sys-libs/ncurses-5.7-r7
+       magic? ( sys-apps/file )
+       gtk? ( x11-libs/gtk+:2 )
+       X? ( x11-libs/libX11 )
+"
+RDEPEND="
+       ${DEPEND}
+       vim? ( || ( app-editors/vim app-editors/gvim ) )
+       vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )
+"
+
+DOCS=( AUTHORS FAQ NEWS README TODO )
+
+src_prepare() {
+       eautoreconf
+}
+
+src_configure() {
+       econf \
+               $(use_enable developer) \
+               $(use_enable extended-keys) \
+               $(use_with magic libmagic) \
+               $(use_with gtk) \
+               $(use_with X X11)
+}
+
+src_install() {
+       emake DESTDIR="${D}" install
+
+       if use vim; then
+               local t
+               for t in doc plugin; do
+                       insinto /usr/share/vim/vimfiles/"${t}"
+                       doins "${S}"/data/vim/"${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 "${S}"/data/vim/"${t}"/"${PN}".vim
+               done
+       fi
+}
+
+src_test() {
+       emake check
+}
+
+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() {
+       use vim && update_vim_helptags
+}