diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-05-05 13:25:22 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-05-05 14:56:51 +0100 |
commit | 06c98dc13c866033a21c84afc7efd58c61a6bf64 (patch) | |
tree | c002a45b855af0116aa02ca77c8bf2f2af9053d2 /sys-apps/deswappify-auto/deswappify-auto-20210509-r1.ebuild | |
parent | powerline-gitstatus; bump supported python to 3.13, drop old (diff) | |
download | portage-main.tar.bz2 portage-main.tar.xz portage-main.zip |
Diffstat (limited to 'sys-apps/deswappify-auto/deswappify-auto-20210509-r1.ebuild')
-rw-r--r-- | sys-apps/deswappify-auto/deswappify-auto-20210509-r1.ebuild | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/sys-apps/deswappify-auto/deswappify-auto-20210509-r1.ebuild b/sys-apps/deswappify-auto/deswappify-auto-20210509-r1.ebuild new file mode 100644 index 0000000..15800b2 --- /dev/null +++ b/sys-apps/deswappify-auto/deswappify-auto-20210509-r1.ebuild @@ -0,0 +1,36 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python3_{5..13} ) +inherit python-r1 systemd + +ID="edd256a886cdfcf04bab08559ba9e45464a59a20" +DESCRIPTION="Automatically fetch swapped pages to physical memory when memory is available" +HOMEPAGE="https://github.com/wiedemannc/deswappify-auto" +SRC_URI="https://github.com/wiedemannc/deswappify-auto/archive/$ID.zip -> ${P}.zip" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND="${PYTHON_DEPS} + dev-python/python-systemd[${PYTHON_USEDEP}] + dev-python/psutil[${PYTHON_USEDEP}]" +RDEPEND="${DEPEND}" +BDEPEND="" + +src_prepare() { + default + sed -i 's|/usr/local/bin/|| ; /^#/d' deswappify.service +} + +src_install() { + default + python_foreach_impl python_doscript deswappify_auto.py + systemd_dounit deswappify.service +} + +S="${WORKDIR}/${PN}-${ID}" |