diff --git a/sys-fs/btrfs-heatmap/Manifest b/sys-fs/btrfs-heatmap/Manifest new file mode 100644 index 0000000000..fd6110f1f9 --- /dev/null +++ b/sys-fs/btrfs-heatmap/Manifest @@ -0,0 +1 @@ +DIST btrfs-heatmap-9.tar.gz 661880 BLAKE2B e714dc3d54c099d74aa811a36b25097b32a11de20a92a92e1e9380ad3019cb9d260a1061aee222e800fd0a0718d80810810674d67cd202a7ac3a3abc4b181658 SHA512 0eeeed72ee26d469577c7c8671c2bf93d258537aa606d7d92e866982136b0ebc151419fbd59bc062062f9537651b4a93afc06d1c804a611a89253fc592f3c996 diff --git a/sys-fs/btrfs-heatmap/btrfs-heatmap-9.ebuild b/sys-fs/btrfs-heatmap/btrfs-heatmap-9.ebuild new file mode 100644 index 0000000000..5448620f4f --- /dev/null +++ b/sys-fs/btrfs-heatmap/btrfs-heatmap-9.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9} ) + +inherit python-single-r1 + +DESCRIPTION="Python 3 script to draw a heatmap of a btrfs filesystem" +HOMEPAGE="https://github.com/knorrie/btrfs-heatmap" +SRC_URI="https://github.com/knorrie/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + $(python_gen_cond_dep ' + >=sys-fs/python-btrfs-12[${PYTHON_MULTI_USEDEP}] + ')" +DEPEND="${RDEPEND}" + +src_install() +{ + dobin btrfs-heatmap + python_fix_shebang "${ED}"/usr/bin/btrfs-heatmap + default +} diff --git a/sys-fs/btrfs-heatmap/metadata.xml b/sys-fs/btrfs-heatmap/metadata.xml new file mode 100644 index 0000000000..23cb676b6b --- /dev/null +++ b/sys-fs/btrfs-heatmap/metadata.xml @@ -0,0 +1,9 @@ + + + + + gentoo-guru@steev.me.uk + Steven Davies + + The btrfs heatmap script creates a visualization of how a btrfs filesystem is using the underlying disk space of the block devices that are added to it. +