Gentoo Archives: gentoo-commits

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