commit:     12b513c20a136f8cd124c874464678612de4a190
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 28 08:11:49 2021 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Wed Jul 28 08:15:02 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12b513c2

sys-libs/libblockdev: Bump to version 2.26

Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 sys-libs/libblockdev/Manifest                |   1 +
 sys-libs/libblockdev/libblockdev-2.26.ebuild | 119 +++++++++++++++++++++++++++
 2 files changed, 120 insertions(+)

diff --git a/sys-libs/libblockdev/Manifest b/sys-libs/libblockdev/Manifest
index f589b2f9e54..5d4204f8e73 100644
--- a/sys-libs/libblockdev/Manifest
+++ b/sys-libs/libblockdev/Manifest
@@ -1,2 +1,3 @@
 DIST libblockdev-2.24.tar.gz 905838 BLAKE2B 
dcc31021d72c2a4f92d8f70387537ec409302e85a9bdb338a09449b02318113d40cabf7fc2f6b4aca819400baccba69a9f67a616b30c744cf843eeac785875e4
 SHA512 
92b7d734ea2cefbb67e626bef369d6785ba2a4bbbf09a4f59345febe977bc32319fb44f38b3c3177b8652abbc1f87b6cc76d41fdd2d70783c1c168049bdcb1d6
 DIST libblockdev-2.25.tar.gz 930238 BLAKE2B 
ae28c40b5e114826baf4a8ba9012267b297dbc4abee52669cf39c886d2c9989291f41937ec742c7457049a6a30e674f9c89ad6478923f393ae1773db3afcf621
 SHA512 
628d05f3a257b44208a9d0b5d84ae248fefd415812d9a93d132c03039b09fefc4d6110beb9aa0d3072e3f0c992e642d7867d0241209056538f132f86a748e195
+DIST libblockdev-2.26.tar.gz 932129 BLAKE2B 
39d95db69de917449e6009fa0160b6288327b2c49b64309d17a1e4e028756d1ce170779ce1c4df926c8796d8a8ed7b9131b5d4b51115a3ea901dacdaa971961a
 SHA512 
ddd4e9c22135bd7dad0bb9bc254ac0c63e3bacc592e7c5a0c846e367da3fc248bf6187f1c81407c3bce599d3b0ceeec9a8a0030ad8e981e245f715b35eaec523

diff --git a/sys-libs/libblockdev/libblockdev-2.26.ebuild 
b/sys-libs/libblockdev/libblockdev-2.26.ebuild
new file mode 100644
index 00000000000..7a897bf9254
--- /dev/null
+++ b/sys-libs/libblockdev/libblockdev-2.26.ebuild
@@ -0,0 +1,119 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7..9} )
+inherit autotools python-single-r1 xdg-utils
+
+DESCRIPTION="A library for manipulating block devices"
+HOMEPAGE="https://github.com/storaged-project/libblockdev";
+if [[ "${PV}" == *9999 ]] ; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/storaged-project/libblockdev.git";
+       BDEPEND="
+               sys-devel/autoconf-archive
+       "
+else
+       MY_PV="${PV}-1"
+       #MY_P="${PN}-${MY_PV}"
+       
#SRC_URI="https://github.com/storaged-project/${PN}/archive/${MY_PV}.tar.gz -> 
${MY_P}.tar.gz"
+       
SRC_URI="https://github.com/storaged-project/${PN}/releases/download/${MY_PV}/${P}.tar.gz";
+       KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~riscv 
~sparc ~x86"
+       #S="${WORKDIR}/${MY_P}"
+fi
+LICENSE="LGPL-2+"
+SLOT="0"
+IUSE="bcache +cryptsetup device-mapper dmraid escrow gtk-doc introspection lvm 
kbd test +tools vdo"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       >=dev-libs/glib-2.42.2
+       dev-libs/libbytesize
+       >=sys-apps/kmod-19
+       >=sys-apps/util-linux-2.27
+       >=sys-block/parted-3.1
+       cryptsetup? (
+               escrow? (
+                       >=dev-libs/nss-3.18.0
+                       dev-libs/volume_key
+               )
+               >=sys-fs/cryptsetup-1.6.7:=
+       )
+       device-mapper? ( sys-fs/lvm2 )
+       dmraid? (
+               sys-fs/dmraid
+               sys-fs/lvm2
+       )
+       lvm? (
+               sys-fs/lvm2
+               virtual/udev
+       )
+       vdo? ( dev-libs/libyaml )
+       ${PYTHON_DEPS}
+"
+
+DEPEND="
+       ${RDEPEND}
+"
+
+BDEPEND+="
+       dev-util/gtk-doc-am
+       gtk-doc? ( dev-util/gtk-doc )
+       introspection? ( >=dev-libs/gobject-introspection-1.3.0 )
+"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}
+               escrow? ( cryptsetup )"
+
+pkg_setup() {
+       python-single-r1_pkg_setup
+}
+
+src_prepare() {
+       xdg_environment_reset #623992
+       default
+
+       # https://bugs.gentoo.org/744289
+       find -type f \( -name "Makefile.am" -o -name "configure.ac" \) -print0 \
+               | xargs --null sed "s@ -Werror@@" -i || die
+
+       eautoreconf
+}
+
+src_configure() {
+       local myeconfargs=(
+               --with-btrfs
+               --with-fs
+               --with-part
+               --without-mpath
+               --without-nvdimm
+               $(use_enable introspection)
+               $(use_enable test tests)
+               $(use_with bcache)
+               $(use_with cryptsetup crypto)
+               $(use_with device-mapper dm)
+               $(use_with dmraid)
+               $(use_with escrow)
+               $(use_with gtk-doc)
+               $(use_with kbd)
+               $(use_with lvm lvm)
+               $(use_with lvm lvm-dbus)
+               $(use_with tools)
+               $(use_with vdo)
+               --without-python2
+               --with-python3
+       )
+       econf "${myeconfargs[@]}"
+}
+
+src_install() {
+       default
+       find "${ED}" -type f -name "*.la" -delete || die
+       # This is installed even with USE=-lvm, but libbd_lvm are omitted so it
+       # doesn't work at all.
+       if ! use lvm; then
+               rm -f "${ED}"/usr/bin/lvm-cache-stats || die
+       fi
+       python_optimize #718576
+}

Reply via email to