From 7b09dda0b39240e2e510e5ee2fd4857461bbbfbb Mon Sep 17 00:00:00 2001 From: Stephen L Arnold Date: Fri, 4 Mar 2016 17:57:46 -0800 Subject: 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 --- app-misc/vit/files/vit-allow-nonsudo-install.patch | 36 ++++++++++++++++++++ app-misc/vit/files/vit-fix-man-installs.patch | 19 +++++++++++ app-misc/vit/metadata.xml | 10 ++++++ app-misc/vit/vit-1.2.ebuild | 39 ++++++++++++++++++++++ app-misc/vit/vit-9999.ebuild | 39 ++++++++++++++++++++++ 5 files changed, 143 insertions(+) create mode 100644 app-misc/vit/files/vit-allow-nonsudo-install.patch create mode 100644 app-misc/vit/files/vit-fix-man-installs.patch create mode 100644 app-misc/vit/metadata.xml create mode 100644 app-misc/vit/vit-1.2.ebuild create mode 100644 app-misc/vit/vit-9999.ebuild (limited to 'app-misc/vit') 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 @@ + + + + + + A perl/Curses front end for Taskwarrior (app-misc/task) that + provides a fullscreen terminal window with modes and commands + modeled after the vi editor. + + 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 +} -- cgit v1.2.3-65-gdbad