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, 09 Apr 2019 10:53:40
Message-Id: 1554807209.4bfc258b21e8435498fee9b8f837510cd3e52f81.polynomial-c@gentoo
1 commit: 4bfc258b21e8435498fee9b8f837510cd3e52f81
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 9 10:53:16 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 9 10:53:29 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4bfc258b
7
8 sys-libs/libblockdev: Added live ebuild.
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 sys-libs/libblockdev/libblockdev-9999.ebuild | 115 +++++++++++++++++++++++++++
14 1 file changed, 115 insertions(+)
15
16 diff --git a/sys-libs/libblockdev/libblockdev-9999.ebuild b/sys-libs/libblockdev/libblockdev-9999.ebuild
17 new file mode 100644
18 index 00000000000..6ac3ee749a8
19 --- /dev/null
20 +++ b/sys-libs/libblockdev/libblockdev-9999.ebuild
21 @@ -0,0 +1,115 @@
22 +# Copyright 1999-2019 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +PYTHON_COMPAT=( python{2_7,3_{5,6,7}} )
28 +inherit python-single-r1 xdg-utils
29 +
30 +DESCRIPTION="A library for manipulating block devices"
31 +HOMEPAGE="https://github.com/storaged-project/libblockdev"
32 +if [[ "${PV}" == *9999 ]] ; then
33 + inherit autotools git-r3
34 + EGIT_REPO_URI="https://github.com/storaged-project/libblockdev.git"
35 + BDEPEND="
36 + gtk-doc? ( dev-util/gtk-doc )
37 + "
38 +else
39 + MY_PV="${PV}-1"
40 + #MY_P="${PN}-${MY_PV}"
41 + #SRC_URI="https://github.com/storaged-project/${PN}/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
42 + SRC_URI="https://github.com/storaged-project/${PN}/releases/download/${MY_PV}/${P}.tar.gz"
43 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
44 + #S="${WORKDIR}/${MY_P}"
45 +fi
46 +LICENSE="LGPL-2+"
47 +SLOT="0"
48 +IUSE="bcache +cryptsetup device-mapper dmraid escrow gtk-doc lvm kbd test +tools vdo"
49 +
50 +RDEPEND="
51 + >=dev-libs/glib-2.42.2
52 + dev-libs/libbytesize
53 + >=sys-apps/kmod-19
54 + >=sys-apps/util-linux-2.27
55 + >=sys-block/parted-3.1
56 + cryptsetup? (
57 + escrow? (
58 + >=dev-libs/nss-3.18.0
59 + dev-libs/volume_key
60 + )
61 + >=sys-fs/cryptsetup-1.6.7:=
62 + )
63 + device-mapper? ( sys-fs/lvm2 )
64 + dmraid? (
65 + sys-fs/dmraid
66 + sys-fs/lvm2
67 + )
68 + lvm? (
69 + sys-fs/lvm2
70 + virtual/udev
71 + )
72 + vdo? ( dev-libs/libyaml )
73 + ${PYTHON_DEPS}
74 +"
75 +
76 +DEPEND="
77 + ${RDEPEND}
78 + >=dev-libs/gobject-introspection-1.3.0
79 +"
80 +
81 +BDEPEND+="
82 + dev-util/gtk-doc-am
83 +"
84 +
85 +REQUIRED_USE="${PYTHON_REQUIRED_USE}
86 + escrow? ( cryptsetup )"
87 +
88 +
89 +pkg_setup() {
90 + python-single-r1_pkg_setup
91 +}
92 +
93 +src_prepare() {
94 + xdg_environment_reset #623992
95 + default
96 + [[ "${PV}" == *9999 ]] && eautoreconf
97 +}
98 +
99 +src_configure() {
100 + local myeconfargs=(
101 + --with-btrfs
102 + --with-fs
103 + --with-part
104 + --without-mpath
105 + --without-nvdimm
106 + $(use_enable test tests)
107 + $(use_with bcache)
108 + $(use_with cryptsetup crypto)
109 + $(use_with device-mapper dm)
110 + $(use_with dmraid)
111 + $(use_with escrow)
112 + $(use_with gtk-doc)
113 + $(use_with kbd)
114 + $(use_with lvm lvm)
115 + $(use_with lvm lvm-dbus)
116 + $(use_with tools)
117 + $(use_with vdo)
118 + )
119 + if python_is_python3 ; then
120 + myeconfargs+=(
121 + --without-python2
122 + --with-python3
123 + )
124 + else
125 + myeconfargs+=(
126 + --with-python2
127 + --without-python3
128 + )
129 + fi
130 + econf "${myeconfargs[@]}"
131 +}
132 +
133 +src_install() {
134 + default
135 + find "${ED}" -name "*.la" -delete || die
136 +}