1 |
commit: 64139f8fdcead82e90192eb813cc010d6151f129 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 26 11:23:57 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 26 11:23:57 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=64139f8f |
7 |
|
8 |
sys-process/task-spooler: quote unquoted variables, add missing || die |
9 |
|
10 |
simplify patch applying, move S up |
11 |
|
12 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
13 |
|
14 |
sys-process/task-spooler/task-spooler-1.3.0.ebuild | 17 +++++------------ |
15 |
1 file changed, 5 insertions(+), 12 deletions(-) |
16 |
|
17 |
diff --git a/sys-process/task-spooler/task-spooler-1.3.0.ebuild b/sys-process/task-spooler/task-spooler-1.3.0.ebuild |
18 |
index cbda27c74..5c8fc96f1 100644 |
19 |
--- a/sys-process/task-spooler/task-spooler-1.3.0.ebuild |
20 |
+++ b/sys-process/task-spooler/task-spooler-1.3.0.ebuild |
21 |
@@ -8,6 +8,7 @@ inherit cmake |
22 |
DESCRIPTION="A scheduler for CPU tasks" |
23 |
HOMEPAGE="https://github.com/justanhduc/task-spooler" |
24 |
SRC_URI="https://github.com/justanhduc/${PN}/archive/refs/tags/v${PV}-cpu.tar.gz -> ${P}.tar.gz" |
25 |
+S="${WORKDIR}/task-spooler-${PV}-cpu" |
26 |
|
27 |
# A GPU version does exist, if anyone needs it, it can be added through a use flag |
28 |
|
29 |
@@ -18,29 +19,21 @@ IUSE="doc" |
30 |
DOCS="Changelog OBJECTIVES PORTABILITY PROTOCOL README.md TRICKS" |
31 |
HTML_DOCS=( web/index.html web/ts-0.2.1.png web/ts-0.5.4.ebuild web/article_linux_com.html ) |
32 |
|
33 |
-S="${WORKDIR}/task-spooler-${PV}-cpu" |
34 |
- |
35 |
-src_prepare() { |
36 |
- default |
37 |
- |
38 |
- eapply "${FILESDIR}"/var-redefinition.patch |
39 |
- |
40 |
- cmake_src_prepare |
41 |
-} |
42 |
+PATCHES=( "${FILESDIR}"/var-redefinition.patch ) |
43 |
|
44 |
src_test() { |
45 |
- cp ${BUILD_DIR}/ts ${S}/ || die "failed to copy ts executable to source folder for tests" |
46 |
+ cp $"{BUILD_DIR}/ts" "${S}"/ || die "failed to copy ts executable to source folder for tests" |
47 |
sh testbench.sh || die "tests failed" |
48 |
} |
49 |
|
50 |
src_install() { |
51 |
- cd ${WORKDIR}/${P}-cpu_build |
52 |
+ cd "${WORKDIR}/${P}-cpu_build" || die |
53 |
mv ts tsp || die "Failed renaming ts executable into tsp" |
54 |
dobin tsp |
55 |
|
56 |
# When the use flag doc is enabled. |
57 |
if use doc; then |
58 |
- cd ${S} |
59 |
+ cd "${S}" || die |
60 |
einstalldocs |
61 |
fi |
62 |
} |