Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/compsize/
Date: Fri, 30 Mar 2018 21:53:04
Message-Id: 1522446774.6b6d7b9052d7572e3cebc1b59877a347b368cd89.mgorny@gentoo
1 commit: 6b6d7b9052d7572e3cebc1b59877a347b368cd89
2 Author: automorphism88 <adebeus <AT> gmail <DOT> com>
3 AuthorDate: Tue Mar 27 19:34:26 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 30 21:52:54 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b6d7b90
7
8 sys-fs/compsize: New ebuild
9
10 Closes: https://github.com/gentoo/gentoo/pull/7660
11
12 sys-fs/compsize/Manifest | 1 +
13 sys-fs/compsize/compsize-1.1.ebuild | 41 ++++++++++++++++++++++++++++++++++++
14 sys-fs/compsize/compsize-9999.ebuild | 41 ++++++++++++++++++++++++++++++++++++
15 sys-fs/compsize/metadata.xml | 11 ++++++++++
16 4 files changed, 94 insertions(+)
17
18 diff --git a/sys-fs/compsize/Manifest b/sys-fs/compsize/Manifest
19 new file mode 100644
20 index 00000000000..a60978e46f2
21 --- /dev/null
22 +++ b/sys-fs/compsize/Manifest
23 @@ -0,0 +1 @@
24 +DIST compsize-1.1.tar.gz 14345 BLAKE2B 8b35e6f3526b8b2395972ea1a595011b867fbc076d79c90c66a19853f1b101dbe3decedab8244d893b20d6cc9ff3ecfa2b3320fc12c583415b2d446a9298fcb1 SHA512 1c7de5156b695ffa4be9b634fd6224214d3de1653eb23e5d85b250e27146fe655883bed17ed458bae1b448ed9ae8a254d2a673fdb3860e69c99f8676daea0d8b
25
26 diff --git a/sys-fs/compsize/compsize-1.1.ebuild b/sys-fs/compsize/compsize-1.1.ebuild
27 new file mode 100644
28 index 00000000000..ad73046823b
29 --- /dev/null
30 +++ b/sys-fs/compsize/compsize-1.1.ebuild
31 @@ -0,0 +1,41 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +inherit flag-o-matic
37 +
38 +DESCRIPTION="Utility to find btrfs compression ratio"
39 +HOMEPAGE="https://github.com/kilobyte/compsize"
40 +
41 +if [[ ${PV} = 9999 ]] ; then
42 + inherit git-r3
43 + EGIT_REPO_URI="https://github.com/kilobyte/compsize"
44 +else
45 + KEYWORDS="~amd64 ~x86"
46 + SRC_URI="https://github.com/kilobyte/compsize/archive/v${PV}.tar.gz -> ${P}.tar.gz"
47 +fi
48 +
49 +LICENSE="GPL-2+"
50 +SLOT=0
51 +
52 +RDEPEND=""
53 +DEPEND="sys-fs/btrfs-progs"
54 +
55 +src_prepare() {
56 + eapply_user
57 + # Don't try to install a gzipped manfile during make install, instead
58 + # use doman in src_install to ensure that PORTAGE_COMPRESS is used
59 + sed -i $'/^\tgzip /d' Makefile || die
60 +}
61 +
62 +src_configure() {
63 + # Used in upstream Makefile, but clobbered by portage's CFLAGS
64 + append-cflags -Wall -std=gnu90
65 + default
66 +}
67 +
68 +src_install() {
69 + emake PREFIX="${ED%/}" install
70 + doman compsize.8
71 + einstalldocs
72 +}
73
74 diff --git a/sys-fs/compsize/compsize-9999.ebuild b/sys-fs/compsize/compsize-9999.ebuild
75 new file mode 100644
76 index 00000000000..ad73046823b
77 --- /dev/null
78 +++ b/sys-fs/compsize/compsize-9999.ebuild
79 @@ -0,0 +1,41 @@
80 +# Copyright 1999-2018 Gentoo Foundation
81 +# Distributed under the terms of the GNU General Public License v2
82 +
83 +EAPI=6
84 +inherit flag-o-matic
85 +
86 +DESCRIPTION="Utility to find btrfs compression ratio"
87 +HOMEPAGE="https://github.com/kilobyte/compsize"
88 +
89 +if [[ ${PV} = 9999 ]] ; then
90 + inherit git-r3
91 + EGIT_REPO_URI="https://github.com/kilobyte/compsize"
92 +else
93 + KEYWORDS="~amd64 ~x86"
94 + SRC_URI="https://github.com/kilobyte/compsize/archive/v${PV}.tar.gz -> ${P}.tar.gz"
95 +fi
96 +
97 +LICENSE="GPL-2+"
98 +SLOT=0
99 +
100 +RDEPEND=""
101 +DEPEND="sys-fs/btrfs-progs"
102 +
103 +src_prepare() {
104 + eapply_user
105 + # Don't try to install a gzipped manfile during make install, instead
106 + # use doman in src_install to ensure that PORTAGE_COMPRESS is used
107 + sed -i $'/^\tgzip /d' Makefile || die
108 +}
109 +
110 +src_configure() {
111 + # Used in upstream Makefile, but clobbered by portage's CFLAGS
112 + append-cflags -Wall -std=gnu90
113 + default
114 +}
115 +
116 +src_install() {
117 + emake PREFIX="${ED%/}" install
118 + doman compsize.8
119 + einstalldocs
120 +}
121
122 diff --git a/sys-fs/compsize/metadata.xml b/sys-fs/compsize/metadata.xml
123 new file mode 100644
124 index 00000000000..7f4384fb84c
125 --- /dev/null
126 +++ b/sys-fs/compsize/metadata.xml
127 @@ -0,0 +1,11 @@
128 +<?xml version="1.0" encoding="UTF-8"?>
129 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
130 +<pkgmetadata>
131 + <maintainer type="person">
132 + <email>adebeus@×××××.com</email>
133 + </maintainer>
134 + <maintainer type="project">
135 + <email>proxy-maint@g.o</email>
136 + <name>Proxy Maintainers</name>
137 + </maintainer>
138 +</pkgmetadata>