You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-fs/compsize/compsize-9999.ebuild

42 lines
940 B

# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit flag-o-matic
DESCRIPTION="Utility to find btrfs compression ratio"
HOMEPAGE="https://github.com/kilobyte/compsize"
if [[ ${PV} = 9999 ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/kilobyte/compsize"
else
KEYWORDS="~amd64 ~x86"
SRC_URI="https://github.com/kilobyte/compsize/archive/v${PV}.tar.gz -> ${P}.tar.gz"
fi
LICENSE="GPL-2+"
SLOT=0
RDEPEND=""
DEPEND="sys-fs/btrfs-progs"
src_prepare() {
eapply_user
# Don't try to install a gzipped manfile during make install, instead
# use doman in src_install to ensure that PORTAGE_COMPRESS is used
sed -i $'/^\tgzip /d' Makefile || die
}
src_configure() {
# Used in upstream Makefile, but clobbered by portage's CFLAGS
append-cflags -Wall -std=gnu90
default
}
src_install() {
emake PREFIX="${ED%/}" install
doman compsize.8
einstalldocs
}