summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen L Arnold <nerdboy@gentoo.org>2016-03-04 17:57:46 -0800
committerStephen L Arnold <nerdboy@gentoo.org>2016-03-04 17:57:46 -0800
commit7b09dda0b39240e2e510e5ee2fd4857461bbbfbb (patch)
treee3f3b789d0290dd5f95ab1a7ca51d3db36ab6aa7 /app-misc/vit
parentsys-kernel/gentoo-sources: Linux patch 4.4.4 (diff)
downloadgentoo-7b09dda0b39240e2e510e5ee2fd4857461bbbfbb.tar.gz
gentoo-7b09dda0b39240e2e510e5ee2fd4857461bbbfbb.tar.bz2
gentoo-7b09dda0b39240e2e510e5ee2fd4857461bbbfbb.zip
app-misc/vit: new ebuild
Simple console frontend for TaskWarrior, since vittk is broken on my system (and this one is lite and simple, and it works). Package-Manager: portage-2.2.27
Diffstat (limited to 'app-misc/vit')
-rw-r--r--app-misc/vit/files/vit-allow-nonsudo-install.patch36
-rw-r--r--app-misc/vit/files/vit-fix-man-installs.patch19
-rw-r--r--app-misc/vit/metadata.xml10
-rw-r--r--app-misc/vit/vit-1.2.ebuild39
-rw-r--r--app-misc/vit/vit-9999.ebuild39
5 files changed, 143 insertions, 0 deletions
diff --git a/app-misc/vit/files/vit-allow-nonsudo-install.patch b/app-misc/vit/files/vit-allow-nonsudo-install.patch
new file mode 100644
index 000000000000..0f5626cce379
--- /dev/null
+++ b/app-misc/vit/files/vit-allow-nonsudo-install.patch
@@ -0,0 +1,36 @@
+diff --git a/Makefile.in b/Makefile.in
+index 87abf5b..66d6acd 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -7,6 +7,8 @@ VERSION=@VERSION@
+ TASK=@TASK@
+ PERL=@PERL@
+ CLEAR=@CLEAR@
++SUDO=@SUDO@
++SUDO=sudo
+
+ .PHONY : install
+
+@@ -28,14 +30,14 @@ build:
+ chmod 755 vit
+
+ install:
+- sudo mkdir -p @prefix@/bin
+- sudo cp vit @prefix@/bin/vit
+- sudo mkdir -p @prefix@/man/man1
+- sudo cp vit.1 @prefix@/man/man1/
+- sudo mkdir -p @prefix@/man/man5
+- sudo cp vitrc.5 @prefix@/man/man5/
+- sudo mkdir -p @prefix@/etc/
+- sudo cp commands @prefix@/etc/vit-commands
++ $(SUDO) mkdir -p $(DESTDIR)@prefix@/bin
++ $(SUDO) cp vit $(DESTDIR)@prefix@/bin/vit
++ $(SUDO) mkdir -p $(DESTDIR)@prefix@/man/man1
++ $(SUDO) cp vit.1 $(DESTDIR)@prefix@/man/man1/
++ $(SUDO) mkdir -p $(DESTDIR)@prefix@/man/man5
++ $(SUDO) cp vitrc.5 $(DESTDIR)@prefix@/man/man5/
++ $(SUDO) mkdir -p $(DESTDIR)@prefix@/etc/
++ $(SUDO) cp commands $(DESTDIR)@prefix@/etc/vit-commands
+
+ autoconf:
+ @make -f .makefile autoconf
diff --git a/app-misc/vit/files/vit-fix-man-installs.patch b/app-misc/vit/files/vit-fix-man-installs.patch
new file mode 100644
index 000000000000..9d13fbb287a0
--- /dev/null
+++ b/app-misc/vit/files/vit-fix-man-installs.patch
@@ -0,0 +1,19 @@
+diff --git a/Makefile.in b/Makefile.in
+index 66d6acd..c167ae4 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -32,10 +32,10 @@ build:
+ install:
+ $(SUDO) mkdir -p $(DESTDIR)@prefix@/bin
+ $(SUDO) cp vit $(DESTDIR)@prefix@/bin/vit
+- $(SUDO) mkdir -p $(DESTDIR)@prefix@/man/man1
+- $(SUDO) cp vit.1 $(DESTDIR)@prefix@/man/man1/
+- $(SUDO) mkdir -p $(DESTDIR)@prefix@/man/man5
+- $(SUDO) cp vitrc.5 $(DESTDIR)@prefix@/man/man5/
++ $(SUDO) mkdir -p $(DESTDIR)@prefix@/share/man/man1
++ $(SUDO) cp vit.1 $(DESTDIR)@prefix@/share/man/man1/
++ $(SUDO) mkdir -p $(DESTDIR)@prefix@/share/man/man5
++ $(SUDO) cp vitrc.5 $(DESTDIR)@prefix@/share/man/man5/
+ $(SUDO) mkdir -p $(DESTDIR)@prefix@/etc/
+ $(SUDO) cp commands $(DESTDIR)@prefix@/etc/vit-commands
+
diff --git a/app-misc/vit/metadata.xml b/app-misc/vit/metadata.xml
new file mode 100644
index 000000000000..9a9dbc1812a8
--- /dev/null
+++ b/app-misc/vit/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+<longdescription lang="en">
+ A perl/Curses front end for Taskwarrior (<pkg>app-misc/task</pkg>) that
+ provides a fullscreen terminal window with modes and commands
+ modeled after the vi editor.
+</longdescription>
+</pkgmetadata>
diff --git a/app-misc/vit/vit-1.2.ebuild b/app-misc/vit/vit-1.2.ebuild
new file mode 100644
index 000000000000..2078d35f3dc4
--- /dev/null
+++ b/app-misc/vit/vit-1.2.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils git-r3
+
+DESCRIPTION="Perl/Curses front-end for Taskwarrior (app-misc/task)"
+HOMEPAGE="http://tasktools.org/projects/vit.html"
+
+EGIT_REPO_URI="https://git.tasktools.org/scm/ex/vit.git"
+if [[ ${PV} = 9999* ]]; then
+ KEYWORDS=""
+else
+ EGIT_COMMIT=v${PV}
+ KEYWORDS="~amd64 ~arm ~x86"
+fi
+
+LICENSE="GPL-3"
+SLOT="0"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ dev-perl/Curses"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-allow-nonsudo-install.patch \
+ "${FILESDIR}"/${PN}-fix-man-installs.patch
+}
+
+src_install() {
+ emake DESTDIR="${D}" SUDO="" install
+ dodoc AUTHORS README CHANGES
+ doman vit.1 vitrc.5
+
+ rm -rf "${ED}"/usr/man
+}
diff --git a/app-misc/vit/vit-9999.ebuild b/app-misc/vit/vit-9999.ebuild
new file mode 100644
index 000000000000..2078d35f3dc4
--- /dev/null
+++ b/app-misc/vit/vit-9999.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils git-r3
+
+DESCRIPTION="Perl/Curses front-end for Taskwarrior (app-misc/task)"
+HOMEPAGE="http://tasktools.org/projects/vit.html"
+
+EGIT_REPO_URI="https://git.tasktools.org/scm/ex/vit.git"
+if [[ ${PV} = 9999* ]]; then
+ KEYWORDS=""
+else
+ EGIT_COMMIT=v${PV}
+ KEYWORDS="~amd64 ~arm ~x86"
+fi
+
+LICENSE="GPL-3"
+SLOT="0"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ dev-perl/Curses"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-allow-nonsudo-install.patch \
+ "${FILESDIR}"/${PN}-fix-man-installs.patch
+}
+
+src_install() {
+ emake DESTDIR="${D}" SUDO="" install
+ dodoc AUTHORS README CHANGES
+ doman vit.1 vitrc.5
+
+ rm -rf "${ED}"/usr/man
+}