Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libblockdev/
Date: Tue, 30 Aug 2022 08:06:07
Message-Id: 1661846051.160590bb185da40d7b4df8649b1f99e90268d6f4.marecki@gentoo
1 commit: 160590bb185da40d7b4df8649b1f99e90268d6f4
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 30 07:54:11 2022 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 30 07:54:11 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=160590bb
7
8 sys-libs/libblockdev: drop 2.26
9
10 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
11
12 sys-libs/libblockdev/Manifest | 1 -
13 sys-libs/libblockdev/libblockdev-2.26.ebuild | 128 ---------------------------
14 2 files changed, 129 deletions(-)
15
16 diff --git a/sys-libs/libblockdev/Manifest b/sys-libs/libblockdev/Manifest
17 index f57d6fe309d0..8f32e2f6d875 100644
18 --- a/sys-libs/libblockdev/Manifest
19 +++ b/sys-libs/libblockdev/Manifest
20 @@ -1,2 +1 @@
21 -DIST libblockdev-2.26.tar.gz 932129 BLAKE2B 39d95db69de917449e6009fa0160b6288327b2c49b64309d17a1e4e028756d1ce170779ce1c4df926c8796d8a8ed7b9131b5d4b51115a3ea901dacdaa971961a SHA512 ddd4e9c22135bd7dad0bb9bc254ac0c63e3bacc592e7c5a0c846e367da3fc248bf6187f1c81407c3bce599d3b0ceeec9a8a0030ad8e981e245f715b35eaec523
22 DIST libblockdev-2.27.tar.gz 914021 BLAKE2B 1e02a364ac918cc9bb288d3b8745cb09378317c4b509224326d13ff8b6481ba3d44502f248680801316a9a94d7d5eac353c5659eca55a681c88511da5dfc83da SHA512 fa9faf3efefc1c76165c9456936175b2addb336a5257c43c1e41403db200386fd660203ef17559529f57b2f57b9ef768686ecd31493c58527434297c31712c10
23
24 diff --git a/sys-libs/libblockdev/libblockdev-2.26.ebuild b/sys-libs/libblockdev/libblockdev-2.26.ebuild
25 deleted file mode 100644
26 index 7127ea5bc94a..000000000000
27 --- a/sys-libs/libblockdev/libblockdev-2.26.ebuild
28 +++ /dev/null
29 @@ -1,128 +0,0 @@
30 -# Copyright 1999-2022 Gentoo Authors
31 -# Distributed under the terms of the GNU General Public License v2
32 -
33 -EAPI=7
34 -
35 -PYTHON_COMPAT=( python3_{8..10} )
36 -inherit autotools python-single-r1 xdg-utils
37 -
38 -DESCRIPTION="A library for manipulating block devices"
39 -HOMEPAGE="https://github.com/storaged-project/libblockdev"
40 -if [[ "${PV}" == *9999 ]] ; then
41 - inherit git-r3
42 - EGIT_REPO_URI="https://github.com/storaged-project/libblockdev.git"
43 - BDEPEND="
44 - sys-devel/autoconf-archive
45 - "
46 -else
47 - MY_PV="${PV}-1"
48 - #MY_P="${PN}-${MY_PV}"
49 - #SRC_URI="https://github.com/storaged-project/${PN}/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
50 - SRC_URI="https://github.com/storaged-project/${PN}/releases/download/${MY_PV}/${P}.tar.gz"
51 - KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~loong ~mips ppc ppc64 ~riscv sparc x86"
52 - #S="${WORKDIR}/${MY_P}"
53 -fi
54 -LICENSE="LGPL-2+"
55 -SLOT="0"
56 -IUSE="bcache +cryptsetup device-mapper dmraid escrow gtk-doc introspection lvm kbd test +tools vdo"
57 -# Tests require root. In a future release, we may be able to run a smaller
58 -# subset with new run_tests.py arguments.
59 -RESTRICT="!test? ( test ) test"
60 -
61 -RDEPEND="
62 - >=dev-libs/glib-2.42.2
63 - dev-libs/libbytesize
64 - >=sys-apps/kmod-19
65 - >=sys-apps/util-linux-2.27
66 - >=sys-block/parted-3.1
67 - cryptsetup? (
68 - escrow? (
69 - >=dev-libs/nss-3.18.0
70 - dev-libs/volume_key
71 - )
72 - >=sys-fs/cryptsetup-1.6.7:=
73 - )
74 - device-mapper? ( sys-fs/lvm2 )
75 - dmraid? (
76 - sys-fs/dmraid
77 - sys-fs/lvm2
78 - )
79 - lvm? (
80 - sys-fs/lvm2
81 - virtual/udev
82 - )
83 - vdo? ( dev-libs/libyaml )
84 - ${PYTHON_DEPS}
85 -"
86 -
87 -DEPEND="
88 - ${RDEPEND}
89 -"
90 -
91 -BDEPEND+="
92 - dev-util/gtk-doc-am
93 - gtk-doc? ( dev-util/gtk-doc )
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 -
108 - # https://bugs.gentoo.org/744289
109 - find -type f \( -name "Makefile.am" -o -name "configure.ac" \) -print0 \
110 - | xargs --null sed "s@ -Werror@@" -i || die
111 -
112 - eautoreconf
113 -}
114 -
115 -src_configure() {
116 - local myeconfargs=(
117 - --with-btrfs
118 - --with-fs
119 - --with-part
120 - --without-mpath
121 - --without-nvdimm
122 - $(use_enable introspection)
123 - $(use_enable test tests)
124 - $(use_with bcache)
125 - $(use_with cryptsetup crypto)
126 - $(use_with device-mapper dm)
127 - $(use_with dmraid)
128 - $(use_with escrow)
129 - $(use_with gtk-doc)
130 - $(use_with kbd)
131 - $(use_with lvm lvm)
132 - $(use_with lvm lvm-dbus)
133 - $(use_with tools)
134 - $(use_with vdo)
135 - --without-python2
136 - --with-python3
137 - )
138 - econf "${myeconfargs[@]}"
139 -}
140 -
141 -src_test() {
142 - # See http://storaged.org/libblockdev/ch03.html
143 - # The 'check' target just does Pylint.
144 - # ... but it needs root.
145 - emake test
146 -}
147 -
148 -src_install() {
149 - default
150 - find "${ED}" -type f -name "*.la" -delete || die
151 - # This is installed even with USE=-lvm, but libbd_lvm are omitted so it
152 - # doesn't work at all.
153 - if ! use lvm; then
154 - rm -f "${ED}"/usr/bin/lvm-cache-stats || die
155 - fi
156 - python_optimize #718576
157 -}