1 |
commit: 46704de3a4351cf314f4e2b47499311da3ffc73a |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 13 22:07:05 2021 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 13 22:07:26 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46704de3 |
7 |
|
8 |
sys-fs/btrfs-progs: Bump to version 5.12.1 |
9 |
|
10 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
11 |
|
12 |
sys-fs/btrfs-progs/Manifest | 1 + |
13 |
sys-fs/btrfs-progs/btrfs-progs-5.12.1.ebuild | 129 +++++++++++++++++++++++++++ |
14 |
2 files changed, 130 insertions(+) |
15 |
|
16 |
diff --git a/sys-fs/btrfs-progs/Manifest b/sys-fs/btrfs-progs/Manifest |
17 |
index 55c726c7dae..5722c44bb2d 100644 |
18 |
--- a/sys-fs/btrfs-progs/Manifest |
19 |
+++ b/sys-fs/btrfs-progs/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST btrfs-progs-v5.10.1.tar.xz 2204164 BLAKE2B ed83729754f9abd22d4d2e7ae9a7e90e80be9b63d49a4a9692e20e5939467dbd864834b71495661e1c7a1fca89e253a62fbda37f1d01d2eadecb13f5904f0dd0 SHA512 32e5b8bda1863e34613802db91946f240b2cde21288ff8f95c1807e7afd0a67c5a704aa4d2bc0d7b1ca094de6831adbfec83fe61f74e1caf6d1975be7d972f2d |
22 |
DIST btrfs-progs-v5.11.1.tar.xz 2213548 BLAKE2B f428e8ffb62f60e6772102f4623b9965edc5d18fa60aa8cb60fd92b4867ee29e3067a6b9d0935c738acce5f0abfc4b88c900121ee233aa881857ed4690e38e3b SHA512 f93a54bd2256851a74fc8e52b26f697bd7bf788cb2481512c92ebf1b9a2f2968b62d680f9f000d6162bd6f22b5d632b2149a88adad8c489e1332f810b439da90 |
23 |
+DIST btrfs-progs-v5.12.1.tar.xz 2220424 BLAKE2B 1e6120609feb37dd2ced04b27d8cba9a28c3b962add6f037927dcb05bdcd46a229f981f7f68231ee58e7e36a65fae4e6041e92c0db11dba56fe63b09bca30cc7 SHA512 a4044ad7e40e232442601f102ea1c64a65aa4d9765be303813d2547a5b730c5f2f84c9b9c652a4218ab16821fdd049dd8573a1f7f6cc27974c2c4389243e20f5 |
24 |
DIST btrfs-progs-v5.12.tar.xz 2220396 BLAKE2B be3eaadca7386ab1348c4bef6cf10270a42ac34c8e7e1cb54b9db600fde6a5958cff9453e6c287fba23f928116eeccca5d90f78f9c042b972a3ac66a31566e3b SHA512 af9ab8bf232e0c62cc093d848b95991924cc3a84020fb9c85765a63a1cc132403e784bf18f81b71b2af9daa0038a7b11e578ee7b50d90481a888f7a967a5b197 |
25 |
|
26 |
diff --git a/sys-fs/btrfs-progs/btrfs-progs-5.12.1.ebuild b/sys-fs/btrfs-progs/btrfs-progs-5.12.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..e7da9aa59cf |
29 |
--- /dev/null |
30 |
+++ b/sys-fs/btrfs-progs/btrfs-progs-5.12.1.ebuild |
31 |
@@ -0,0 +1,129 @@ |
32 |
+# Copyright 2008-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{7..9} ) |
38 |
+ |
39 |
+inherit bash-completion-r1 python-single-r1 |
40 |
+ |
41 |
+libbtrfs_soname=0 |
42 |
+ |
43 |
+if [[ ${PV} != 9999 ]]; then |
44 |
+ MY_PV="v${PV/_/-}" |
45 |
+ [[ "${PV}" = *_rc* ]] || \ |
46 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" |
47 |
+ SRC_URI="https://www.kernel.org/pub/linux/kernel/people/kdave/${PN}/${PN}-${MY_PV}.tar.xz" |
48 |
+ S="${WORKDIR}/${PN}-${MY_PV}" |
49 |
+else |
50 |
+ WANT_LIBTOOL=none |
51 |
+ inherit autotools git-r3 |
52 |
+ EGIT_REPO_URI="https://github.com/kdave/btrfs-progs.git" |
53 |
+ EGIT_BRANCH="devel" |
54 |
+fi |
55 |
+ |
56 |
+DESCRIPTION="Btrfs filesystem utilities" |
57 |
+HOMEPAGE="https://btrfs.wiki.kernel.org" |
58 |
+ |
59 |
+LICENSE="GPL-2" |
60 |
+SLOT="0/${libbtrfs_soname}" |
61 |
+IUSE="+convert doc python reiserfs static static-libs +zstd" |
62 |
+ |
63 |
+RESTRICT=test # tries to mount repared filesystems |
64 |
+ |
65 |
+RDEPEND=" |
66 |
+ dev-libs/lzo:2= |
67 |
+ sys-apps/util-linux:0=[static-libs(+)?] |
68 |
+ sys-libs/zlib:0= |
69 |
+ convert? ( |
70 |
+ sys-fs/e2fsprogs:0= |
71 |
+ sys-libs/e2fsprogs-libs:0= |
72 |
+ reiserfs? ( |
73 |
+ >=sys-fs/reiserfsprogs-3.6.27 |
74 |
+ ) |
75 |
+ ) |
76 |
+ python? ( ${PYTHON_DEPS} ) |
77 |
+ zstd? ( app-arch/zstd:0= ) |
78 |
+" |
79 |
+DEPEND="${RDEPEND} |
80 |
+ convert? ( sys-apps/acl ) |
81 |
+ python? ( |
82 |
+ $(python_gen_cond_dep ' |
83 |
+ dev-python/setuptools[${PYTHON_MULTI_USEDEP}] |
84 |
+ ') |
85 |
+ ) |
86 |
+ static? ( |
87 |
+ dev-libs/lzo:2[static-libs(+)] |
88 |
+ sys-apps/util-linux:0[static-libs(+)] |
89 |
+ sys-libs/zlib:0[static-libs(+)] |
90 |
+ convert? ( |
91 |
+ sys-fs/e2fsprogs:0[static-libs(+)] |
92 |
+ sys-libs/e2fsprogs-libs:0[static-libs(+)] |
93 |
+ reiserfs? ( |
94 |
+ >=sys-fs/reiserfsprogs-3.6.27[static-libs(+)] |
95 |
+ ) |
96 |
+ ) |
97 |
+ zstd? ( app-arch/zstd:0[static-libs(+)] ) |
98 |
+ ) |
99 |
+" |
100 |
+BDEPEND=" |
101 |
+ doc? ( |
102 |
+ || ( >=app-text/asciidoc-8.6.0 dev-ruby/asciidoctor ) |
103 |
+ app-text/docbook-xml-dtd:4.5 |
104 |
+ app-text/xmlto |
105 |
+ ) |
106 |
+" |
107 |
+ |
108 |
+if [[ ${PV} == 9999 ]]; then |
109 |
+ DEPEND+=" sys-devel/gnuconfig" |
110 |
+fi |
111 |
+ |
112 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
113 |
+ |
114 |
+pkg_setup() { |
115 |
+ use python && python-single-r1_pkg_setup |
116 |
+} |
117 |
+ |
118 |
+src_prepare() { |
119 |
+ default |
120 |
+ if [[ ${PV} == 9999 ]]; then |
121 |
+ AT_M4DIR=m4 eautoreconf |
122 |
+ mkdir config || die |
123 |
+ local automakedir="$(autotools_run_tool --at-output automake --print-libdir)" |
124 |
+ [[ -e ${automakedir} ]] || die "Could not locate automake directory" |
125 |
+ ln -s "${automakedir}"/install-sh config/install-sh || die |
126 |
+ ln -s "${EPREFIX}"/usr/share/gnuconfig/config.guess config/config.guess || die |
127 |
+ ln -s "${EPREFIX}"/usr/share/gnuconfig/config.sub config/config.sub || die |
128 |
+ fi |
129 |
+} |
130 |
+ |
131 |
+src_configure() { |
132 |
+ local myeconfargs=( |
133 |
+ --bindir="${EPREFIX}"/sbin |
134 |
+ $(use_enable convert) |
135 |
+ $(use_enable doc documentation) |
136 |
+ $(use_enable elibc_glibc backtrace) |
137 |
+ $(use_enable python) |
138 |
+ $(use_enable static-libs static) |
139 |
+ $(use_enable zstd) |
140 |
+ --with-convert=ext2$(usex reiserfs ',reiserfs' '') |
141 |
+ ) |
142 |
+ econf "${myeconfargs[@]}" |
143 |
+} |
144 |
+ |
145 |
+src_compile() { |
146 |
+ emake V=1 all $(usev static) |
147 |
+} |
148 |
+ |
149 |
+src_install() { |
150 |
+ local makeargs=( |
151 |
+ $(usex python install_python '') |
152 |
+ $(usex static install-static '') |
153 |
+ ) |
154 |
+ emake V=1 DESTDIR="${D}" install "${makeargs[@]}" |
155 |
+ newbashcomp btrfs-completion btrfs |
156 |
+ use python && python_optimize |
157 |
+ |
158 |
+ # install prebuilt subset of manuals |
159 |
+ use doc || doman Documentation/*.[58] |
160 |
+} |