summaryrefslogtreecommitdiff
path: root/app-misc/task
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-misc/task
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-misc/task')
-rw-r--r--app-misc/task/Manifest4
-rw-r--r--app-misc/task/files/0001-TW-1778-Unicode-strings-are-truncated-in-task-descri.patch23
-rw-r--r--app-misc/task/metadata.xml11
-rw-r--r--app-misc/task/task-2.5.1-r1.ebuild58
4 files changed, 96 insertions, 0 deletions
diff --git a/app-misc/task/Manifest b/app-misc/task/Manifest
new file mode 100644
index 000000000000..9a4a0942dca1
--- /dev/null
+++ b/app-misc/task/Manifest
@@ -0,0 +1,4 @@
+AUX 0001-TW-1778-Unicode-strings-are-truncated-in-task-descri.patch 660 BLAKE2B 56250a860b836d64b190049912123ebc5a06202ad25a6aa974a420b856f472d7aa5364cee96539c204e2c09c88a9f6e59cc5606aacf5b8c29655310340233a49 SHA512 6af9226a73280ca1c5f3f95d11b9c8f10ad4d847df9401643a8294645031cd3141916e4b00a188e25795f4a51f9f55e4caf2ba3280d5c9bd89f44a89411389a5
+DIST task-2.5.1.tar.gz 903428 BLAKE2B afa17364984237ea589921afb4379297b128ea1bb6b0834f875b1b02b38dbfde5e961122fdde00dc5ff29b56226a5ce0f805bd1be8a8194c9e185ab80ad6d6c2 SHA512 ec17e5cefff55ecd2c1cb717801c02683d94030906c8d86450c3c79c0bc5a18d82559a5e9e26a91411a1025a241b78ddbc1de51cafc1a2dd531e8229e5e61c10
+EBUILD task-2.5.1-r1.ebuild 1264 BLAKE2B 9ce29b7eb39bd74479dbd22f7169072047f6f84610dadfffff0cc092ec28764be925760ef0707c37b91294bbeb9bda530fde908837e704ed9d2132a338d32508 SHA512 1cb91bbc30012a9c292a4d3b3c40aa6ef80ff7580b2fd86d9e12e7a1b49b414c0fa9de60c1ac6b55067b5f258977517b7f103488d2923cd4e96d787dc074d150
+MISC metadata.xml 315 BLAKE2B cf3abc1d5632a494070db454bb5a1da2d35d68b7519127ef471a207b10313bd5a717ce38c60616ec7a72bfa39fcb7980b3d39a2ba97e1053233f4c0674a92b15 SHA512 509043e7fa47b91c7e0041325e34d2f96cadddae179e0852420f53ce40f2dcf3a6ee959b31de3a1169277dfedea79c27b07aa14ba5daa774b1cdc13b55edf9b5
diff --git a/app-misc/task/files/0001-TW-1778-Unicode-strings-are-truncated-in-task-descri.patch b/app-misc/task/files/0001-TW-1778-Unicode-strings-are-truncated-in-task-descri.patch
new file mode 100644
index 000000000000..6ff8ac22e21a
--- /dev/null
+++ b/app-misc/task/files/0001-TW-1778-Unicode-strings-are-truncated-in-task-descri.patch
@@ -0,0 +1,23 @@
+From d025f3deb6349f56a7fc49551e819cfe13f97917 Mon Sep 17 00:00:00 2001
+From: Paul Beckingham <paul@beckingham.net>
+Date: Wed, 31 Aug 2016 17:48:45 -0400
+Subject: [PATCH] TW-1778: Unicode strings are truncated in task description
+
+- Thanks to Andrew, bjonnh, OKOMPer, Vladimir.
+---
+diff --git a/src/text.cpp b/src/text.cpp
+index f5e3496b..bc8353f7 100644
+--- a/src/text.cpp
++++ b/src/text.cpp
+@@ -248,7 +248,7 @@ bool extractLine (
+ // Premature EOL.
+ if (character == '\n')
+ {
+- line = text.substr (offset, line_length);
++ line = text.substr (offset, prior_cursor - offset);
+ offset = cursor;
+ return true;
+ }
+--
+2.11.0
+
diff --git a/app-misc/task/metadata.xml b/app-misc/task/metadata.xml
new file mode 100644
index 000000000000..bba57a4435e2
--- /dev/null
+++ b/app-misc/task/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+ </maintainer>
+ <use>
+ <flag name="sync">Enable "task sync" support</flag>
+ </use>
+</pkgmetadata>
diff --git a/app-misc/task/task-2.5.1-r1.ebuild b/app-misc/task/task-2.5.1-r1.ebuild
new file mode 100644
index 000000000000..25ea234d42b0
--- /dev/null
+++ b/app-misc/task/task-2.5.1-r1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils bash-completion-r1
+
+DESCRIPTION="Taskwarrior is a command-line todo list manager"
+HOMEPAGE="https://taskwarrior.org/"
+SRC_URI="https://taskwarrior.org/download/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 ~arm x86 ~x64-macos"
+IUSE="+sync vim-syntax zsh-completion"
+
+DEPEND="sys-libs/readline:0
+ sync? ( net-libs/gnutls:0= )
+ elibc_glibc? ( sys-apps/util-linux )"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}"/0001-TW-1778-Unicode-strings-are-truncated-in-task-descri.patch )
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ # don't automatically install scripts
+ sed -i '/scripts/d' CMakeLists.txt || die
+}
+
+src_configure() {
+ mycmakeargs=(
+ -DENABLE_SYNC=$(usex sync)
+ -DTASK_DOCDIR=share/doc/${PF}
+ -DTASK_RCDIR=share/${PN}/rc
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ newbashcomp scripts/bash/task.sh task
+
+ if use vim-syntax; then
+ rm scripts/vim/README || die
+ insinto /usr/share/vim/vimfiles
+ doins -r scripts/vim/*
+ fi
+
+ if use zsh-completion; then
+ insinto /usr/share/zsh/site-functions
+ doins scripts/zsh/*
+ fi
+
+ exeinto "/usr/share/${PN}/scripts"
+ doexe scripts/add-ons/*
+}