diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-02-17 10:35:54 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-02-17 10:35:54 +0000 |
commit | 463397cf1e064185110fe57c568d73f99a06f5d1 (patch) | |
tree | 9aa75eefc5154eaf0e3c33658b830fc54dc68052 /sys-fs/compsize/compsize-1.5.ebuild | |
parent | c8d60dada2ec8eb48b2d2b290cd6683ccec40e39 (diff) |
gentoo resync : 17.02.2021
Diffstat (limited to 'sys-fs/compsize/compsize-1.5.ebuild')
-rw-r--r-- | sys-fs/compsize/compsize-1.5.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/sys-fs/compsize/compsize-1.5.ebuild b/sys-fs/compsize/compsize-1.5.ebuild new file mode 100644 index 000000000000..471c60d719d1 --- /dev/null +++ b/sys-fs/compsize/compsize-1.5.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2021 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 ~x86" +fi + +LICENSE="GPL-2+ GPL-2" +IUSE="debug" +SLOT="0" + +DEPEND="sys-fs/btrfs-progs" + +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 +} |