Install this version:
emerge -a =sys-process/nohang-9999
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =sys-process/nohang-9999
Or alternatively:
emerge --autounmask-write -a =sys-process/nohang-9999
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit git-r3
DESCRIPTION="A sophisticated low memory handler for Linux"
HOMEPAGE="https://github.com/hakavlad/nohang"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="systemd"
EGIT_REPO_URI="https://github.com/hakavlad/nohang"
if [ "${PV}" = "9999" ]; then
EGIT_BRANCH="dev"
EGIT_COMMIT=""
else
EGIT_COMMIT="${PV}"
fi
DEPEND="dev-lang/python
systemd? ( sys-apps/systemd )
"
RDEPEND="${DEPEND}"
src_prepare() {
default
sed -i "s|gzip -9cn|cat|" "${S}"/Makefile || die
sed -i "s|.gz||" "${S}"/Makefile || die
}
src_install() {
if use systemd; then
PREFIX="/usr" SYSCONFDIR="/etc" DOCDIR="/usr/share/${P}" emake DESTDIR="${D}" install
else
PREFIX="/usr" SYSCONFDIR="/etc" DOCDIR="/usr/share/${P}" emake DESTDIR="${D}" -B install-openrc
fi
}
Manage flags for this package:
euse -i <flag> -p sys-process/nohang |
euse -E <flag> -p sys-process/nohang |
euse -D <flag> -p sys-process/nohang
dev-lang/python systemd? ( sys-apps/systemd )
dev-lang/python systemd? ( sys-apps/systemd )