# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="An undelete tool for the XFS filesystem"
HOMEPAGE="https://github.com/ianka/xfs_undelete"
SRC_URI="https://github.com/ianka/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"

RDEPEND="dev-lang/tcl:0=
	dev-tcltk/tcllib
	sys-fs/xfsprogs"

src_prepare() {
	default

	mv xfs_undelete.{man,1} || die "mv failed"
}

src_install() {
	einstalldocs
	dobin xfs_undelete
	doman xfs_undelete.1
}