gentoo/sys-fs/compsize/compsize-1.5.ebuild
David Roman f0aa3f5254
sys-fs/compsize: fix build with btrfs-progs >= 6.10.1
Closes: https://bugs.gentoo.org/938025
Signed-off-by: David Roman <davidroman96@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
2024-11-23 09:51:22 +00:00

44 lines
976 B
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit flag-o-matic toolchain-funcs
DESCRIPTION="Utility to find btrfs compression type/ratio on a file or set of files"
HOMEPAGE="https://github.com/kilobyte/compsize"
if [[ ${PV} = 9999 ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/kilobyte/compsize.git"
else
SRC_URI="https://github.com/kilobyte/compsize/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86"
fi
LICENSE="GPL-2+ GPL-2"
SLOT="0"
IUSE="debug"
DEPEND="sys-fs/btrfs-progs"
PATCHES=( "${FILESDIR}/${P}-btrfs-progs.patch" )
src_prepare() {
default
# Don't try to install a gzipped manfile during emake install
sed -i -e $'s/\.gz//' -e $'s/gzip.*/install \-Dm755 \$\< \$\@/' Makefile || die
}
src_configure() {
tc-export CC
use debug && append-cflags -Wall -DDEBUG -g
default
}
src_install() {
emake PREFIX="${ED}/usr" install
einstalldocs
}