summaryrefslogtreecommitdiff
path: root/dev-python/python-blivet/python-blivet-0.23.9-r3.ebuild
blob: db9300293fd82989af8ab68fbddfc97a6d491cfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="5"
SUPPORT_PYTHON_ABIS="1"

inherit eutils distutils

REAL_PN="${PN/python-}"

DESCRIPTION="python module for examining and modifying storage configuration."
HOMEPAGE="https://fedoraproject.org/wiki/Blivet"
SRC_URI="https://github.com/Sabayon/${REAL_PN}/archive/${REAL_PN}-${PV}-1.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND=">=dev-util/pykickstart-1.99.22
	>=sys-apps/util-linux-2.15.1
	>=sys-block/parted-1.8.1
	sys-fs/cryptsetup
	>=dev-python/python-cryptsetup-0.1.1
	sys-fs/mdadm
	sys-fs/dosfstools
	>=sys-fs/e2fsprogs-1.41.0
	sys-fs/btrfs-progs
	>=dev-python/pyblock-0.45
	sys-fs/multipath-tools
	sys-process/lsof
	"
DEPEND="${RDEPEND}"

S="${WORKDIR}/${REAL_PN}-${REAL_PN}-${PV}-1"

src_prepare() {
	# libudev in Gentoo is in /usr/lib64 if systemd
	epatch "${FILESDIR}/${PN}-udev-path.patch"

	# multipath -c hangs on x86 due to a libc bug
	# Temporarily disable this
	use x86 && epatch "${FILESDIR}/${PN}-workaround-disable-multipath.patch"

	# Fix package names
	epatch "${FILESDIR}/0001-Update-package-names-to-reflect-Gentoo-ones.patch"
	# enable UUID= support for dm-based devices (dmcrypt, md, etc)
	epatch "${FILESDIR}/0001-devices-enable-UUID-for-dm-based-devices-in-fstab.patch"

	# Sabayon: commitToDisk should wait on udev. There is a missing udev_settle() call.
	epatch "${FILESDIR}/${PN}-commit-to-disk-settle.patch"

	distutils_src_prepare
}