summaryrefslogtreecommitdiff
path: root/app-misc/vit
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/vit')
-rw-r--r--app-misc/vit/Manifest9
-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.xml13
-rw-r--r--app-misc/vit/vit-1.2-r1.ebuild38
-rw-r--r--app-misc/vit/vit-1.3.ebuild23
-rw-r--r--app-misc/vit/vit-9999.ebuild40
7 files changed, 144 insertions, 34 deletions
diff --git a/app-misc/vit/Manifest b/app-misc/vit/Manifest
index 1797baf1c9b5..66219c431fbf 100644
--- a/app-misc/vit/Manifest
+++ b/app-misc/vit/Manifest
@@ -1,3 +1,6 @@
-DIST vit-1.3.tar.gz 56035 BLAKE2B 871e29767dd5aeb39e6876981246c7d42cdbe45320e3a2524bbc3c2aa055b65a04a54ee4a2bc122c3bf689fec93f117ec7b238dd5462a9133c35cf177cf454e7 SHA512 45ae4a1d08560d534a02a046d2fcf55c5401f9aaab0abcfbd13070fee28854268ba327018aea40317a184b9e28b074973f5d3e4169a479227e94b8401f066527
-EBUILD vit-1.3.ebuild 542 BLAKE2B 97207896147fe063c0db68cf95bcf14fbff6c5e99e69b467b0d5c3a8b2b8b9175696d0a825013818ed5a397a9150e820f4f1ccaf17f4c33b0a45a7102f04e3d5 SHA512 938f1702d874f62c48ebf4112fd70aba802345e5fd580db213e0481ac7ebc6d5884a668e67c69fd2ae68c0288ea94b3f75aff8d1f7e2ebd8a598a43fe3606a1d
-MISC metadata.xml 545 BLAKE2B e38ed1468698bb0a7125db2cdc313e015c04ca519e057edbd62e032eb2a43817b3ef6c065afe67d564be1f08a4dbc8f4b5d84da5a0bc35454793ae9af2787fa6 SHA512 85f31a91748127ce4af59ad39d072abc0b7e81fdbce1d56155ceb4bdc3b4bfeff5e4832072895192afd9fa2076dbf4604b6fa579650f079f5f43911efb982ce5
+AUX vit-allow-nonsudo-install.patch 978 BLAKE2B 93603afb84034316c807508a8169ae4ffc22b46b311722fb730fe89c9f934d8a440432e0fb5dc8f2f056dab48d8074ef9ecb67b976a076f0eb670381128d2ffe SHA512 11b50594481934dd33a5f59bf04c61c7a347e517f1f0408be8c7463731490bf49c0c823c4b9ac1b951ac1f7e66d531f2d0df74ee12c3d25f47a299a2b16da628
+AUX vit-fix-man-installs.patch 739 BLAKE2B 6f3a212752a83735bca279ee3bea2dbdba2aafdb72cf6c79a2b65eb0feff6fd25718c91a30ca150e1ff929ab0e880433557ae18be84c7dab291be8ff879c6090 SHA512 9b1795690ba090bf0487b35da28f3563f5bae4a8133d85f469a9b0104a84588d8948b98a2935b83c9c321fcffcf5a44027500eb87a736de4b254374f142dc572
+DIST vit-1.2.tar.gz 49346 BLAKE2B e1dd7cae2db714e20c60dbff704575e185ae2d844f3be8934dbfe0ca8e754b64ad3bd800407ab31024b81cf06f32fde61914e008e1c5d2d4293ee4060785321f SHA512 dc0e09fbec7d77817b044f437e42108a9282e387698dfe23bfbe50a083b708d5d3b432ce9b1fdb93f3fef495af2a5f16107351557a4bb9184c7c762b264f0ed3
+EBUILD vit-1.2-r1.ebuild 822 BLAKE2B a0244c198407ca65e85527eaaaeb8843caf012030c68a30122fa78a4179cdd4c1d8ffaeb1ff2699f17f998948d979b24ed9f7e18500f9fd50b74525fb22f4ce3 SHA512 63fb6e2ebe073435260630f4be7b85e4afdb4d05e3546652487fb39ba9820af1a9c33b31b02d8a5432fad35b20a53c2bfd3bc09a387c370b1f14a9286899ff32
+EBUILD vit-9999.ebuild 777 BLAKE2B 92a1e9527219aa76b892b16c47bdab7be2f5f5d89972a636259094aec5e8075e88e1ba5b01e9fa5b7dd48d34990934c0471219d21e13984a4946eb980751189a SHA512 e8779d3179f4eea0344b238860c8019447d91d38fc4b0d2173a55c70e29027c3d0fef5cd246faaed173535531f465e5bd967d8bd78fcd83676f5174229926ae3
+MISC metadata.xml 457 BLAKE2B ecdaf5aed8c19a4c345d5a747ccf842026cdd7623e76be162c0429f03f289ab69d1cb7d3270e5adb6020bb079c8453e3459dabfd24e3a58d715810a515c625bd SHA512 fa9700903506961b1d8c62718b77a7219c811b99039d8f73d331dcd448f2df8fa638f152b956c9f41e2989007402860a1a036427d38d754a4385cebfa7a5b5c7
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
index e5b8618e3429..48a67656210f 100644
--- a/app-misc/vit/metadata.xml
+++ b/app-misc/vit/metadata.xml
@@ -2,15 +2,12 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
- <email>nerdboy@gentoo.org</email>
- <name>Stephen Arnold</name>
+ <email>nerdboy@gentoo.org</email>
+ <name>Stephen Arnold</name>
</maintainer>
<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.
+ 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>
- <upstream>
- <remote-id type="github">scottkosty/vit</remote-id>
- </upstream>
</pkgmetadata>
diff --git a/app-misc/vit/vit-1.2-r1.ebuild b/app-misc/vit/vit-1.2-r1.ebuild
new file mode 100644
index 000000000000..6ab360543842
--- /dev/null
+++ b/app-misc/vit/vit-1.2-r1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="Perl/Curses front-end for Taskwarrior (app-misc/task)"
+HOMEPAGE="http://tasktools.org/projects/vit.html"
+SRC_URI="https://git.tasktools.org/EX/vit/archive/v1.2.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE=""
+
+DEPEND="
+ app-misc/task
+ dev-lang/perl
+ dev-perl/Curses"
+RDEPEND="${DEPEND}"
+
+RESTRICT="test" # missing the extra .makefile for extra targets (like test)
+
+S="${WORKDIR}/${PN}"
+
+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-1.3.ebuild b/app-misc/vit/vit-1.3.ebuild
deleted file mode 100644
index d259efed3a62..000000000000
--- a/app-misc/vit/vit-1.3.ebuild
+++ /dev/null
@@ -1,23 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit eutils
-
-DESCRIPTION="Perl/Curses front-end for Taskwarrior (app-misc/task)"
-HOMEPAGE="https://github.com/scottkosty/vit"
-SRC_URI="https://github.com/scottkosty/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~x86"
-IUSE=""
-
-DEPEND="
- app-misc/task
- dev-lang/perl
- dev-perl/Curses"
-RDEPEND="${DEPEND}"
-
-RESTRICT="test" # missing the extra .makefile for extra targets (like test)
diff --git a/app-misc/vit/vit-9999.ebuild b/app-misc/vit/vit-9999.ebuild
new file mode 100644
index 000000000000..0cd795e26a94
--- /dev/null
+++ b/app-misc/vit/vit-9999.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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/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="
+ app-misc/task
+ dev-lang/perl
+ dev-perl/Curses"
+RDEPEND="${DEPEND}"
+
+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
+}