summaryrefslogtreecommitdiff
path: root/app-misc/vit/files/vit-allow-nonsudo-install.patch
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/files/vit-allow-nonsudo-install.patch
parente1ed6e95f7c7e588ad4cf6d6df5a684983e9a178 (diff)
downloadgentoo-7b09dda0b39240e2e510e5ee2fd4857461bbbfbb.tar.gz
gentoo-7b09dda0b39240e2e510e5ee2fd4857461bbbfbb.tar.xz
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/files/vit-allow-nonsudo-install.patch')
-rw-r--r--app-misc/vit/files/vit-allow-nonsudo-install.patch36
1 files changed, 36 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 00000000000..0f5626cce37
--- /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