repo/proj/guru:dev commit in: sys-process/task-spooler/, sys-process/task-spooler/files/

"Adel KARA SLIMANE" <[email protected]>
Newsgroups gmane.linux.gentoo.cvs
Message-ID <1785957258.367d9dd22d0ba907b64934721e30126027486520.adel@gentoo>
commit:     367d9dd22d0ba907b64934721e30126027486520
Author:     Adel KARA SLIMANE <adel.ks <AT> zegrapher <DOT> com>
AuthorDate: Wed Aug  5 19:11:31 2026 +0000
Commit:     Adel KARA SLIMANE <adel <AT> karaslimane <DOT> com>
CommitDate: Wed Aug  5 19:14:18 2026 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=367d9dd2

sys-process/task-spooler: add 2.0.0

Signed-off-by: Adel KARA SLIMANE <adel.ks <AT> zegrapher.com>

 sys-process/task-spooler/Manifest                  |  1 +
 .../files/cmake-bump-minver-2.0.0.patch            | 12 +++++++
 .../task-spooler/files/cmake-fixes-2.0.0.patch     | 39 ++++++++++++++++++++++
 sys-process/task-spooler/task-spooler-2.0.0.ebuild | 32 ++++++++++++++++++
 4 files changed, 84 insertions(+)

diff --git a/sys-process/task-spooler/Manifest b/sys-process/task-spooler/Manifest
new file mode 100644
index 0000000000..8fa44a78ee
--- /dev/null
+++ b/sys-process/task-spooler/Manifest
@@ -0,0 +1 @@
+DIST task-spooler-2.0.0.tar.gz 216281 BLAKE2B fedd81e856f5aadd7b7802c03f2053725b9e97d58ee1bbadfcb79315cd13d3371baa3e73225227da028d177fdf13997748067dc2da0cf7f05898d2640cc65566 SHA512 43f042c2138c280647ebd923d2e438e5bd5145e89a1c77bf02aa1df9a792cc20d95770efc55b19224644464c02da719ed2a4b802f42736a89c4256845c121b96

diff --git a/sys-process/task-spooler/files/cmake-bump-minver-2.0.0.patch b/sys-process/task-spooler/files/cmake-bump-minver-2.0.0.patch
new file mode 100644
index 0000000000..7301e5756d
--- /dev/null
+++ b/sys-process/task-spooler/files/cmake-bump-minver-2.0.0.patch
@@ -0,0 +1,12 @@
+# so QA doesn't complain
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 5d3e0a5..5072f0d 100755
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 3.5)
++cmake_minimum_required(VERSION 3.11)
+ project(Task-Spooler C)
+
+ set(CMAKE_C_STANDARD 11)

diff --git a/sys-process/task-spooler/files/cmake-fixes-2.0.0.patch b/sys-process/task-spooler/files/cmake-fixes-2.0.0.patch
new file mode 100644
index 0000000000..5807d66d0a
--- /dev/null
+++ b/sys-process/task-spooler/files/cmake-fixes-2.0.0.patch
@@ -0,0 +1,39 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index c8474b9..91c967a 100755
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -83,9 +83,16 @@ else(TASK_SPOOLER_COMPILE_CUDA)
+   add_definitions(-DCPU)
+ endif(TASK_SPOOLER_COMPILE_CUDA)
+
++# Man pages
++add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/man1/ts.1
++  COMMAND ${CMAKE_CURRENT_BINARY_DIR}/makeman
++  DEPENDS makeman
++  WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/man1)
++add_custom_target(man ALL
++  DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/man1/ts.1)
++
+ # install
+-install(CODE "execute_process(COMMAND install -c -d /usr/local/bin)")
+-install(CODE "execute_process(COMMAND install -c ts /usr/local/bin)")
+-install(CODE "execute_process(COMMAND ./makeman)")
+-install(CODE "execute_process(COMMAND install -c -d /usr/local/share/man/man1)")
+-install(CODE "execute_process(COMMAND install -c -m 644 ts.1 /usr/local/share/man/man1)")
++install(TARGETS ${target}
++        RUNTIME)
++install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/man1
++        TYPE MAN)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 91c967a..5d3e0a5 100755
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -84,6 +84,7 @@ else(TASK_SPOOLER_COMPILE_CUDA)
+ endif(TASK_SPOOLER_COMPILE_CUDA)
+
+ # Man pages
++file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/man1)
+ add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/man1/ts.1
+   COMMAND ${CMAKE_CURRENT_BINARY_DIR}/makeman
+   DEPENDS makeman

diff --git a/sys-process/task-spooler/task-spooler-2.0.0.ebuild b/sys-process/task-spooler/task-spooler-2.0.0.ebuild
new file mode 100644
index 0000000000..62cbafb2b3
--- /dev/null
+++ b/sys-process/task-spooler/task-spooler-2.0.0.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="A scheduler for CPU tasks"
+HOMEPAGE="https://github.com/justanhduc/task-spooler"
+if [[ ${PV} == 9999 ]] ; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/justanhduc/task-spooler.git"
+else
+	SRC_URI="https://github.com/justanhduc/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64"
+	S="${WORKDIR}/task-spooler-${PV}"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+
+PATCHES=(
+	"${FILESDIR}"/cmake-fixes-2.0.0.patch
+	"${FILESDIR}"/cmake-bump-minver-2.0.0.patch
+)
+
+src_configure() {
+	local mycmakeargs=(
+		-DTASK_SPOOLER_COMPILE_CUDA=OFF
+	)
+	cmake_src_configure
+}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.