]> git.sthu.org Git - shuber-gentoo-overlay.git/commitdiff
Add x11-wm/somewm master
authorStefan Huber <shuber@sthu.org>
Wed, 25 Feb 2026 21:25:51 +0000 (22:25 +0100)
committerStefan Huber <shuber@sthu.org>
Wed, 25 Feb 2026 21:25:51 +0000 (22:25 +0100)
x11-wm/somewm/Manifest [new file with mode: 0644]
x11-wm/somewm/somewm-0.5.0.ebuild [new symlink]
x11-wm/somewm/somewm-9999.ebuild [new file with mode: 0644]

diff --git a/x11-wm/somewm/Manifest b/x11-wm/somewm/Manifest
new file mode 100644 (file)
index 0000000..51a59d5
--- /dev/null
@@ -0,0 +1,3 @@
+DIST somewm-0.5.0.tar.gz 2978612 BLAKE2B 02ab5dda7eb4078f4fc0dfd57f50b59bfb476d1d9ccbfcbabd1557db704973b4283afb22bdfa539787b8d02b376563b0f6801abdc578001a31b6a03e621b221e SHA512 4d5b678716ae8fbe76a216aa556f90026977066a07fb0b6ff1958940e6d05f5b38214417fab8b96cd8b21e8a0a4f3fff493961da2f412fdb783ecb29cfae071d
+EBUILD somewm-0.5.0.ebuild 1773 BLAKE2B 84ddf5a3d210abb7237b3100794cb57ac922a4a5e3d7351973f7af56a03fa7c92fdf13b607b85f6f405cdb39db2c2e242ab2bfd94fa492e2cc3b24c11ab01f0e SHA512 b9baaa59722cab286a881aadc73b23a2686d4d927543e6e10b9815fa24fd16fdb3500411c824c0d99c8ab553e704c0e1512fbd1bbb7ce16f68b244e6412f7dbc
+EBUILD somewm-9999.ebuild 1773 BLAKE2B 84ddf5a3d210abb7237b3100794cb57ac922a4a5e3d7351973f7af56a03fa7c92fdf13b607b85f6f405cdb39db2c2e242ab2bfd94fa492e2cc3b24c11ab01f0e SHA512 b9baaa59722cab286a881aadc73b23a2686d4d927543e6e10b9815fa24fd16fdb3500411c824c0d99c8ab553e704c0e1512fbd1bbb7ce16f68b244e6412f7dbc
diff --git a/x11-wm/somewm/somewm-0.5.0.ebuild b/x11-wm/somewm/somewm-0.5.0.ebuild
new file mode 120000 (symlink)
index 0000000..94adbcd
--- /dev/null
@@ -0,0 +1 @@
+somewm-9999.ebuild
\ No newline at end of file
diff --git a/x11-wm/somewm/somewm-9999.ebuild b/x11-wm/somewm/somewm-9999.ebuild
new file mode 100644 (file)
index 0000000..7ce2604
--- /dev/null
@@ -0,0 +1,79 @@
+# Copyright 2026 Stefan Huber
+# Distributed under the terms of the GNU General Public License v2
+#
+# Based on awesome-9999.ebuild
+
+EAPI=8
+
+# According to https://somewm.org/getting-started/installation/ we require
+# lua-5.4 or luajit (default)
+
+LUA_COMPAT=(lua5-4 luajit)
+inherit meson desktop lua-single
+
+if [[ ${PV} == *9999* ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/trip-zip/${PN}.git"
+else
+       KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~riscv ~x86"
+       if [[ ${PV} == *_p* ]]; then
+               HASH_COMMIT=
+               SRC_URI="https://github.com/awesomeWM/awesome/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz"
+               S="${WORKDIR}/${PN}-${HASH_COMMIT}"
+       else
+               # https://github.com/trip-zip/somewm/archive/refs/tags/0.5.0.tar.gz
+               SRC_URI="https://github.com/trip-zip/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+       fi
+fi
+
+DESCRIPTION="An awesome-compatible dynamic floating and tiling Wayland compositor"
+HOMEPAGE="https://somewm.org"
+
+LICENSE="GPL-3"
+SLOT="0"
+IUSE=""
+
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+# Doesn't play nicely with the sandbox + requires an active D-BUS session
+RESTRICT="test"
+
+RDEPEND="
+       ${LUA_DEPS}
+       $(lua_gen_cond_dep 'dev-lua/lgi[${LUA_USEDEP}]')
+"
+DEPEND="
+       ${RDEPEND}
+"
+BDEPEND="
+"
+
+# Skip installation of README.md by einstalldocs, which leads to broken symlink
+DOCS=()
+
+PATCHES=(
+)
+
+
+pkg_setup() {
+       lua-single_pkg_setup
+}
+
+src_configure() {
+       # local emesonargs=(
+       #       $(meson_use qt5)
+       #       $(meson_feature threads)
+       #       $(meson_use bindist official_branding)
+       # )
+       meson_src_configure
+}
+
+pkg_postinst() {
+       einfo "Migration check from AwesomeWM:"
+       einfo "  somewm --check ~/.config/awesome/rc.lua"
+       einfo ""
+       einfo "Launching somewm from a TTY:"
+       einfo "  dbus-run-session somewm"
+       einfo ""
+       einfo "Further details at: https://somewm.org/#getting-started"
+}