1 |
commit: 798012772fe7d1253083a567dfe7d2528993b08d |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 22 15:23:22 2020 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 22 16:47:31 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79801277 |
7 |
|
8 |
sys-libs/libblockdev: Bump to version 2.24 |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
sys-libs/libblockdev/Manifest | 1 + |
14 |
sys-libs/libblockdev/libblockdev-2.24.ebuild | 123 +++++++++++++++++++++++++++ |
15 |
2 files changed, 124 insertions(+) |
16 |
|
17 |
diff --git a/sys-libs/libblockdev/Manifest b/sys-libs/libblockdev/Manifest |
18 |
index dac1ddca807..46f8638f2d6 100644 |
19 |
--- a/sys-libs/libblockdev/Manifest |
20 |
+++ b/sys-libs/libblockdev/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST libblockdev-2.23.tar.gz 856829 BLAKE2B 131bf429e530fc9dd44fade4f5bc937ec220365b1ee2ae46818a6fa3ec7591775fdc3ed531350cc2546f4151e41551dfd3e331b0a6d5777769a7b54c5c15ed42 SHA512 ecc4d5a3cb977fbbe176bf6872b6754833d2869e927c32f8466685916ee4550cf806e0b0c8f5e8e76de3839ae591a4eec502ff974c2f0678af6cfd46dd3016f3 |
23 |
+DIST libblockdev-2.24.tar.gz 905838 BLAKE2B dcc31021d72c2a4f92d8f70387537ec409302e85a9bdb338a09449b02318113d40cabf7fc2f6b4aca819400baccba69a9f67a616b30c744cf843eeac785875e4 SHA512 92b7d734ea2cefbb67e626bef369d6785ba2a4bbbf09a4f59345febe977bc32319fb44f38b3c3177b8652abbc1f87b6cc76d41fdd2d70783c1c168049bdcb1d6 |
24 |
|
25 |
diff --git a/sys-libs/libblockdev/libblockdev-2.24.ebuild b/sys-libs/libblockdev/libblockdev-2.24.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..1ea252a8b26 |
28 |
--- /dev/null |
29 |
+++ b/sys-libs/libblockdev/libblockdev-2.24.ebuild |
30 |
@@ -0,0 +1,123 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
37 |
+inherit python-single-r1 xdg-utils |
38 |
+ |
39 |
+DESCRIPTION="A library for manipulating block devices" |
40 |
+HOMEPAGE="https://github.com/storaged-project/libblockdev" |
41 |
+if [[ "${PV}" == *9999 ]] ; then |
42 |
+ inherit autotools git-r3 |
43 |
+ EGIT_REPO_URI="https://github.com/storaged-project/libblockdev.git" |
44 |
+ BDEPEND=" |
45 |
+ sys-devel/autoconf-archive |
46 |
+ " |
47 |
+else |
48 |
+ MY_PV="${PV}-1" |
49 |
+ #MY_P="${PN}-${MY_PV}" |
50 |
+ #SRC_URI="https://github.com/storaged-project/${PN}/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz" |
51 |
+ SRC_URI="https://github.com/storaged-project/${PN}/releases/download/${MY_PV}/${P}.tar.gz" |
52 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
53 |
+ #S="${WORKDIR}/${MY_P}" |
54 |
+fi |
55 |
+LICENSE="LGPL-2+" |
56 |
+SLOT="0" |
57 |
+IUSE="bcache +cryptsetup device-mapper dmraid escrow gtk-doc introspection lvm kbd test +tools vdo" |
58 |
+RESTRICT="!test? ( test )" |
59 |
+ |
60 |
+RDEPEND=" |
61 |
+ >=dev-libs/glib-2.42.2 |
62 |
+ dev-libs/libbytesize |
63 |
+ >=sys-apps/kmod-19 |
64 |
+ >=sys-apps/util-linux-2.27 |
65 |
+ >=sys-block/parted-3.1 |
66 |
+ cryptsetup? ( |
67 |
+ escrow? ( |
68 |
+ >=dev-libs/nss-3.18.0 |
69 |
+ dev-libs/volume_key |
70 |
+ ) |
71 |
+ >=sys-fs/cryptsetup-1.6.7:= |
72 |
+ ) |
73 |
+ device-mapper? ( sys-fs/lvm2 ) |
74 |
+ dmraid? ( |
75 |
+ sys-fs/dmraid |
76 |
+ sys-fs/lvm2 |
77 |
+ ) |
78 |
+ lvm? ( |
79 |
+ sys-fs/lvm2 |
80 |
+ virtual/udev |
81 |
+ ) |
82 |
+ vdo? ( dev-libs/libyaml ) |
83 |
+ ${PYTHON_DEPS} |
84 |
+" |
85 |
+ |
86 |
+DEPEND=" |
87 |
+ ${RDEPEND} |
88 |
+" |
89 |
+ |
90 |
+BDEPEND+=" |
91 |
+ dev-util/gtk-doc-am |
92 |
+ gtk-doc? ( dev-util/gtk-doc ) |
93 |
+ introspection? ( >=dev-libs/gobject-introspection-1.3.0 ) |
94 |
+" |
95 |
+ |
96 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE} |
97 |
+ escrow? ( cryptsetup )" |
98 |
+ |
99 |
+pkg_setup() { |
100 |
+ python-single-r1_pkg_setup |
101 |
+} |
102 |
+ |
103 |
+src_prepare() { |
104 |
+ xdg_environment_reset #623992 |
105 |
+ default |
106 |
+ [[ "${PV}" == *9999 ]] && eautoreconf |
107 |
+} |
108 |
+ |
109 |
+src_configure() { |
110 |
+ local myeconfargs=( |
111 |
+ --with-btrfs |
112 |
+ --with-fs |
113 |
+ --with-part |
114 |
+ --without-mpath |
115 |
+ --without-nvdimm |
116 |
+ $(use_enable introspection) |
117 |
+ $(use_enable test tests) |
118 |
+ $(use_with bcache) |
119 |
+ $(use_with cryptsetup crypto) |
120 |
+ $(use_with device-mapper dm) |
121 |
+ $(use_with dmraid) |
122 |
+ $(use_with escrow) |
123 |
+ $(use_with gtk-doc) |
124 |
+ $(use_with kbd) |
125 |
+ $(use_with lvm lvm) |
126 |
+ $(use_with lvm lvm-dbus) |
127 |
+ $(use_with tools) |
128 |
+ $(use_with vdo) |
129 |
+ ) |
130 |
+ if python_is_python3 ; then |
131 |
+ myeconfargs+=( |
132 |
+ --without-python2 |
133 |
+ --with-python3 |
134 |
+ ) |
135 |
+ else |
136 |
+ myeconfargs+=( |
137 |
+ --with-python2 |
138 |
+ --without-python3 |
139 |
+ ) |
140 |
+ fi |
141 |
+ econf "${myeconfargs[@]}" |
142 |
+} |
143 |
+ |
144 |
+src_install() { |
145 |
+ default |
146 |
+ find "${ED}" -type f -name "*.la" -delete || die |
147 |
+ # This is installed even with USE=-lvm, but libbd_lvm are omitted so it |
148 |
+ # doesn't work at all. |
149 |
+ if ! use lvm; then |
150 |
+ rm -f "${ED}"/usr/bin/lvm-cache-stats || die |
151 |
+ fi |
152 |
+ python_optimize #718576 |
153 |
+} |