summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Denoncin <ddenoncin@gmail.com>2021-02-23 20:55:23 +0100
committerJoonas Niilola <juippis@gentoo.org>2021-02-28 11:03:08 +0200
commitbdbbab86c4a4d31a78bb0d3d36b1a36a49ff3885 (patch)
treefb91979a75479cf8bd3b40143dfc88fa3878168b /app-misc/task
parentapp-misc/task: vbump 2.5.3 (diff)
downloadgentoo-bdbbab86c4a4d31a78bb0d3d36b1a36a49ff3885.tar.gz
gentoo-bdbbab86c4a4d31a78bb0d3d36b1a36a49ff3885.tar.bz2
gentoo-bdbbab86c4a4d31a78bb0d3d36b1a36a49ff3885.zip
app-misc/task: add test suite
Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: David Denoncin <ddenoncin@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/19570 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-misc/task')
-rw-r--r--app-misc/task/Manifest1
-rw-r--r--app-misc/task/task-2.5.3.ebuild12
2 files changed, 12 insertions, 1 deletions
diff --git a/app-misc/task/Manifest b/app-misc/task/Manifest
index ae8a2ca6c36e..8f2e6d07c535 100644
--- a/app-misc/task/Manifest
+++ b/app-misc/task/Manifest
@@ -1,2 +1,3 @@
DIST task-2.5.1.tar.gz 903428 BLAKE2B afa17364984237ea589921afb4379297b128ea1bb6b0834f875b1b02b38dbfde5e961122fdde00dc5ff29b56226a5ce0f805bd1be8a8194c9e185ab80ad6d6c2 SHA512 ec17e5cefff55ecd2c1cb717801c02683d94030906c8d86450c3c79c0bc5a18d82559a5e9e26a91411a1025a241b78ddbc1de51cafc1a2dd531e8229e5e61c10
DIST task-2.5.3.tar.gz 788760 BLAKE2B 3e8a4f2ebf6c39d3d51dc9b044cf1c8fbce23ab8178b6645405f26522bbb6f29e9f78247fe52601f6c8f87f966a3b7aad130417d0f416b9d969e9e396c10eafc SHA512 e906c8f42ad4b9a7e20a82defe31b89194d72957f18dd5129ecc41a2a60a9d8b0d01abb9b44ecce79b65cd9064af4a4a4c9dd695f98152e77908f130dc3f9677
+DIST tests-2.5.3.tar.gz 223579 BLAKE2B 89a7fda3726d9923388675f34fe40a6a597901b2ab6c90a345b89d4ba00660e6a7533c4752fc4fe6f77344594a322c17eb43866028c26d005ce44cf12c11c355 SHA512 f6a58407f172385e9955b21b7fffeb510f852bd055ada4869547e396856c7df01b8414a51de6bc8530b29d8ca0fa7e74a8e35aa7bc88fe1e15bda7035a5fadd1
diff --git a/app-misc/task/task-2.5.3.ebuild b/app-misc/task/task-2.5.3.ebuild
index cf99cc313c3c..4bf8719bee3d 100644
--- a/app-misc/task/task-2.5.3.ebuild
+++ b/app-misc/task/task-2.5.3.ebuild
@@ -7,7 +7,8 @@ inherit bash-completion-r1 cmake
DESCRIPTION="Taskwarrior is a command-line todo list manager"
HOMEPAGE="https://taskwarrior.org/"
-SRC_URI="https://taskwarrior.org/download/${P}.tar.gz"
+SRC_URI="https://github.com/GothenburgBitFactory/taskwarrior/releases/download/v2.5.3/task-2.5.3.tar.gz
+https://github.com/GothenburgBitFactory/taskwarrior/releases/download/v2.5.3/tests-2.5.3.tar.gz"
LICENSE="MIT"
SLOT="0"
@@ -21,6 +22,9 @@ DEPEND="
RDEPEND="${DEPEND}"
src_prepare() {
+ # move test directory into source directory
+ mv "${WORKDIR}"/test "${WORKDIR}"/"$P" || die
+
cmake_src_prepare
# don't automatically install scripts
@@ -38,6 +42,12 @@ src_configure() {
cmake_src_configure
}
+src_test() {
+ cd "${WORKDIR}"/"${P}"_build
+
+ eninja test
+}
+
src_install() {
cmake_src_install