summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Schmaus <flow@gentoo.org>2024-01-09 19:02:01 +0100
committerFlorian Schmaus <flow@gentoo.org>2024-01-09 19:07:47 +0100
commit79be57d9af94eabba36c0aa80bd0ec2c72af8fc7 (patch)
treea566d137a08fa20e7ea9bcf4f1a00687fc7f59cc /sys-power/sandmann-bin
parentdev-qt/qt-creator: Stabilize 12.0.1 amd64, #921646 (diff)
downloadgentoo-79be57d9af94eabba36c0aa80bd0ec2c72af8fc7.tar.gz
gentoo-79be57d9af94eabba36c0aa80bd0ec2c72af8fc7.tar.bz2
gentoo-79be57d9af94eabba36c0aa80bd0ec2c72af8fc7.zip
sys-power/sandmann-bin: add 1.0
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'sys-power/sandmann-bin')
-rw-r--r--sys-power/sandmann-bin/Manifest1
-rw-r--r--sys-power/sandmann-bin/sandmann-bin-1.0.ebuild62
2 files changed, 63 insertions, 0 deletions
diff --git a/sys-power/sandmann-bin/Manifest b/sys-power/sandmann-bin/Manifest
index 9c45a637fdcf..6e05fc2fced6 100644
--- a/sys-power/sandmann-bin/Manifest
+++ b/sys-power/sandmann-bin/Manifest
@@ -1 +1,2 @@
DIST sandmann-0.9.tar.xz 16656160 BLAKE2B e0b52fd8ba67bec68dfa6a6c6fa3f9321118c350a954cef582643339f1d15c6f8d55d74cfbc0d1894dd5eae83975f1ef57c974c5035b80d9bdc1e132d7b16787 SHA512 bee9a9b5f5eaaeba8ec66999c2719efb43cd85c601a9aee61017dd330149ed9faf94a48d9c0fd0dcc82c05fa8dfe23f020d69b452bb71ccf5dc50017dcf5a84e
+DIST sandmann-1.0.tar.xz 16661756 BLAKE2B 06a2ce44a0498987ce1dfafaa0aee560c2deef69efc7cfd6191dd12e265be21b15b167d7adc01066343a777cf66c88b2ec5d95f46fede003f80676966ad95ad3 SHA512 e9f5f41b4f2bf45f7d4528baf593f4f120e5a9c4eacf13a4c0961ba66f8ed5877abb3f10b6b35679dc56f2e55e80e0cc6bb3a42800859ff40354b0a750b16d66
diff --git a/sys-power/sandmann-bin/sandmann-bin-1.0.ebuild b/sys-power/sandmann-bin/sandmann-bin-1.0.ebuild
new file mode 100644
index 000000000000..952a8f6d6625
--- /dev/null
+++ b/sys-power/sandmann-bin/sandmann-bin-1.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit java-utils-2 systemd tmpfiles
+
+MY_PN=${PN%-bin}
+MY_P=${MY_PN}-${PV}
+
+DESCRIPTION="An autosuspend and wakeup daemon"
+HOMEPAGE="https://gitlab.com/Flow/sandmann"
+SRC_URI="https://geekplace.eu/projects/${MY_PN}/archive/${MY_P}.tar.xz"
+KEYWORDS="~amd64"
+
+LICENSE="GPL-3+ LGPL-3"
+SLOT="0"
+
+# >=java-config-2.3.2 to get the libdir fix.
+RDEPEND="
+ acct-user/sandmann
+ >=dev-java/java-config-2.3.2
+ sys-apps/systemd
+ sys-auth/polkit
+ || (
+ virtual/jre:17
+ virtual/jre:21
+ )
+"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ default
+ sed -i \
+ -e 's|^ExecStart=.*|ExecStart=/usr/bin/sandmann|' \
+ sandmann.service || die
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ local my_emake_args=(
+ DESTDIR="${D}"
+ SYSTEMD_SYSTEM_UNIT_DIR="$(systemd_get_systemunitdir)"
+ TARGET_BINARY=
+ SOURCELESS_INSTALL=true
+ )
+
+ emake ${my_emake_args[@]} install
+
+ java-pkg_newjar out/main/assembly.dest/out.jar sandmann.jar
+ java-pkg_dolauncher sandmann
+
+ dodoc README.md
+}
+
+pkg_postinst() {
+ tmpfiles_process sandmann.conf
+}