app-editors/vis: new package, #613820
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Wed, 12 Apr 2017 00:44:19 +0000 (02:44 +0200)
committerMichał Górny <mgorny@gentoo.org>
Sun, 7 May 2017 18:29:08 +0000 (20:29 +0200)
app-editors/vis/Manifest [new file with mode: 0644]
app-editors/vis/metadata.xml [new file with mode: 0644]
app-editors/vis/vis-0.3.ebuild [new file with mode: 0644]
app-editors/vis/vis-9999.ebuild [new file with mode: 0644]

diff --git a/app-editors/vis/Manifest b/app-editors/vis/Manifest
new file mode 100644 (file)
index 0000000..e097689
--- /dev/null
@@ -0,0 +1 @@
+DIST vis-0.3.tar.gz 334216 SHA256 bed8ed32ef4f81bc4fd28e297ea8edc80027ac6923b9d3b5bd955d24899c7077 SHA512 e1ca009bd7569f22dacf7464791f9f4499695d15d6e38e1be491d39e7ebe0530de643be5c1e7647e9beb7969a17efab6545d3e719fe8cf311562e89d636bba62 WHIRLPOOL a0ddd69b88b4131d4b9c2ba5494e255f20cd99f91998e4ad4fcec3e0298e39d9319571201b8ae4c8b4d21da78b99d865d72bfb534024a89863d66b9968e562c8
diff --git a/app-editors/vis/metadata.xml b/app-editors/vis/metadata.xml
new file mode 100644 (file)
index 0000000..0226bf9
--- /dev/null
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+       <email>contact@hacktivis.me</email>
+</maintainer>
+<maintainer type="project">
+       <email>proxy-maint@gentoo.org</email>
+       <name>Proxy Maintainers</name>
+</maintainer>
+<longdescription lang="en">
+Vis aims to be a modern, legacy free, simple yet efficient editor combining the strengths of both vi(m) and sam.
+</longdescription>
+<use>
+       <flag name="tre">more memory efficient regex search using <pkg>dev-libs/tre</pkg></flag>
+</use>
+</pkgmetadata>
diff --git a/app-editors/vis/vis-0.3.ebuild b/app-editors/vis/vis-0.3.ebuild
new file mode 100644 (file)
index 0000000..e6ef1b6
--- /dev/null
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="modern, legacy free, simple yet efficient vim-like editor"
+HOMEPAGE="https://github.com/martanne/vis"
+SRC_URI="https://github.com/martanne/vis/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+ncurses selinux tre"
+
+#Note: vis is reported to also work with NetBSD curses
+#TODO: >=dev-lang/lua-5.2 (needed for syntax highlighting and settings)
+DEPEND=" dev-libs/libtermkey
+       ncurses? ( sys-libs/ncurses:0= )
+       tre? ( dev-libs/tre:= )"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+       econf \
+               $(use_enable ncurses curses) \
+               $(use_enable selinux) \
+               $(use_enable tre)
+}
+
+update_symlinks() {
+       einfo "Calling eselect vi update --if-unset…"
+       eselect vi update --if-unset
+}
+
+pkg_postrm() {
+       update_symlinks
+}
+
+pkg_postinst() {
+       update_symlinks
+}
diff --git a/app-editors/vis/vis-9999.ebuild b/app-editors/vis/vis-9999.ebuild
new file mode 100644 (file)
index 0000000..55adf20
--- /dev/null
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit git-r3
+
+DESCRIPTION="modern, legacy free, simple yet efficient vim-like editor"
+HOMEPAGE="https://github.com/martanne/vis"
+EGIT_REPO_URI="https://github.com/martanne/vis.git"
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS=""
+IUSE="+ncurses selinux tre"
+
+#Note: vis is reported to also work with NetBSD curses
+#TODO: >=dev-lang/lua-5.2 (needed for syntax highlighting and settings)
+DEPEND=" dev-libs/libtermkey
+       ncurses? ( sys-libs/ncurses:0= )
+       tre? ( dev-libs/tre:= )"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+       econf \
+               $(use_enable ncurses curses) \
+               $(use_enable selinux) \
+               $(use_enable tre)
+}
+
+update_symlinks() {
+       einfo "Calling eselect vi update --if-unset…"
+       eselect vi update --if-unset
+}
+
+pkg_postrm() {
+       update_symlinks
+}
+
+pkg_postinst() {
+       update_symlinks
+}