aboutsummaryrefslogtreecommitdiff
blob: 5ce70f8f98e06d0015474e64895bb5ab9a1ef4c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright 2019-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

CONFIG_CHECK="~ZRAM ~ZSWAP"
PYTHON_COMPAT=( python3_{7..8} )

inherit linux-info python-r1

DESCRIPTION="Script for creating swap space from zram swaps, swap files and swap partitions."
HOMEPAGE="https://github.com/Nefelim4ag/systemd-swap/"

if [[ ${PV} == *9999 ]] ; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/Nefelim4ag/${PN}.git"
else
	SRC_URI="https://github.com/Nefelim4ag/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="~amd64 ~arm ~arm64 ~x86"
fi

LICENSE="GPL-3"
SLOT="0"

REQUIRED_USE="${PYTHON_REQUIRED_USE}"

RDEPEND="${PYTHON_DEPS}
	$(python_gen_any_dep '
		dev-python/python-systemd[${PYTHON_USEDEP}]
		dev-python/sysv_ipc[${PYTHON_USEDEP}]
	')
"

src_install() {
	default
	keepdir /var/lib/systemd-swap
}