commit:     73b8e835c9aa62a995f154620d6f7cebfdc7f2d3
Author:     Theo Anderson <telans <AT> posteo <DOT> de>
AuthorDate: Sat Sep  5 08:10:27 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Sun Sep  6 05:55:16 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73b8e835

sys-fs/compsize: bump to 1.3

Closes: https://bugs.gentoo.org/689144
Package-Manager: Portage-3.0.4-r1, Repoman-3.0.1
Signed-off-by: Theo Anderson <telans <AT> posteo.de>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 sys-fs/compsize/Manifest            |  1 +
 sys-fs/compsize/compsize-1.3.ebuild | 41 +++++++++++++++++++++++++++++++++++++
 2 files changed, 42 insertions(+)

diff --git a/sys-fs/compsize/Manifest b/sys-fs/compsize/Manifest
index a60978e46f2..2592ff9be8b 100644
--- a/sys-fs/compsize/Manifest
+++ b/sys-fs/compsize/Manifest
@@ -1 +1,2 @@
 DIST compsize-1.1.tar.gz 14345 BLAKE2B 
8b35e6f3526b8b2395972ea1a595011b867fbc076d79c90c66a19853f1b101dbe3decedab8244d893b20d6cc9ff3ecfa2b3320fc12c583415b2d446a9298fcb1
 SHA512 
1c7de5156b695ffa4be9b634fd6224214d3de1653eb23e5d85b250e27146fe655883bed17ed458bae1b448ed9ae8a254d2a673fdb3860e69c99f8676daea0d8b
+DIST compsize-1.3.tar.gz 14782 BLAKE2B 
738ff0e2b936f5974064759914284e495c895d22d95b705e1b8fac4b3189891771b0e5be7e0eeac0883dd92f9cef276400bb7ee79840fd7db14a5269e7f78f11
 SHA512 
411b92651fdc3d03deccbf38f72936fee95cf80c67d6368efbc0dafacfe9793815a23ef0d02f7feadf31391e415df3d90cd19fb3acc8cce94f37cb3e4eed623d

diff --git a/sys-fs/compsize/compsize-1.3.ebuild 
b/sys-fs/compsize/compsize-1.3.ebuild
new file mode 100644
index 00000000000..df2657574f7
--- /dev/null
+++ b/sys-fs/compsize/compsize-1.3.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit flag-o-matic
+
+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+"
+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() {
+       # Used in upstream Makefile, but clobbered by portage's CFLAGS
+       append-cflags -Wall -std=gnu90
+       use debug && append-cflags -DDEBUG -g
+       default
+}
+
+src_install() {
+       emake PREFIX="${D}" install
+       dodoc "README.md"
+}

Reply via email to