-
Notifications
You must be signed in to change notification settings - Fork 0
/
tasksh.cygport
37 lines (31 loc) · 1009 Bytes
/
tasksh.cygport
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
NAME=tasksh
VERSION=1.2.0
RELEASE=1
CATEGORY=Office
SUMMARY='A shell for Taskwarrior'
DESCRIPTION='Tasksh is a shell for Taskwarrior'
HOMEPAGE=https://github.com/GothenburgBitFactory/taskshell
LICENSE=MIT
# This tarball needs manually preparing:
# - It must include the submodules, which are missing from the main upstream
# source package and can't be downloaded directly because the v1.2.0 tag in
# the upstream repository has the wrong submodule URL.
# - It must include the .git directory, as that's used by the build process.
SRC_URI=taskshell.tar.xz
SRC_DIR=taskshell
BUILD_REQUIRES=cmake
inherit cmake
src_compile () {
# Need to manually link the .git directory, as the build depends on it
# but lndirs skips it.
lndirs
ln -s "$S"/.git "$B"/.git
cd "$B"
cygcmake -DCMAKE_BUILD_TYPE=release -DTASK_DOCDIR=share/doc/tasksh .
cygmake
}
src_test () {
# Tests rely on Python2.7 and so are broken. Don't run them.
:
}
# vim: set noexpandtab tabstop=8 listchars=tab\:\ \ ,trail\:-,lead\:-