* [gentoo-commits] repo/gentoo:master commit in: app-misc/vit/, app-misc/vit/files/
@ 2016-03-05 1:59 Steve Arnold
0 siblings, 0 replies; only message in thread
From: Steve Arnold @ 2016-03-05 1:59 UTC (permalink / raw
To: gentoo-commits
commit: 7b09dda0b39240e2e510e5ee2fd4857461bbbfbb
Author: Stephen L Arnold <nerdboy <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 5 01:57:46 2016 +0000
Commit: Steve Arnold <nerdboy <AT> gentoo <DOT> org>
CommitDate: Sat Mar 5 01:57:46 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b09dda0
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(+)
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 0000000..0f5626c
--- /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 0000000..9d13fbb
--- /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 0000000..9a9dbc1
--- /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 0000000..2078d35
--- /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 0000000..2078d35
--- /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
+}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-03-06 11:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-05 1:59 [gentoo-commits] repo/gentoo:master commit in: app-misc/vit/, app-misc/vit/files/ Steve Arnold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox