diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2018-04-09 10:53:41 +0200 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2018-04-09 10:53:56 +0200 |
commit | b81b9becd91226e5c01e3112632db3e60db26afe (patch) | |
tree | 0e4741320a1b521f5d416c516f027a2927a6c523 /sys-fs/btrfs-progs | |
parent | sys-fs/btrfs-progs: Added python support. (diff) | |
download | gentoo-b81b9becd91226e5c01e3112632db3e60db26afe.tar.gz gentoo-b81b9becd91226e5c01e3112632db3e60db26afe.tar.bz2 gentoo-b81b9becd91226e5c01e3112632db3e60db26afe.zip |
sys-fs/btrfs-progs: Added python support.
Closes: https://bugs.gentoo.org/652772
Package-Manager: Portage-2.3.28, Repoman-2.3.9
Diffstat (limited to 'sys-fs/btrfs-progs')
-rw-r--r-- | sys-fs/btrfs-progs/btrfs-progs-4.16.ebuild | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/sys-fs/btrfs-progs/btrfs-progs-4.16.ebuild b/sys-fs/btrfs-progs/btrfs-progs-4.16.ebuild index 1a8e2474dfbe..0936ade75910 100644 --- a/sys-fs/btrfs-progs/btrfs-progs-4.16.ebuild +++ b/sys-fs/btrfs-progs/btrfs-progs-4.16.ebuild @@ -3,7 +3,9 @@ EAPI=6 -inherit bash-completion-r1 +PYTHON_COMPAT=( python3_{4,5,6} ) + +inherit bash-completion-r1 python-single-r1 libbtrfs_soname=0 @@ -25,7 +27,7 @@ HOMEPAGE="https://btrfs.wiki.kernel.org" LICENSE="GPL-2" SLOT="0/${libbtrfs_soname}" -IUSE="+convert reiserfs static static-libs +zstd" +IUSE="+convert python reiserfs static static-libs +zstd" RESTRICT=test # tries to mount repared filesystems @@ -40,6 +42,7 @@ RDEPEND=" >=sys-fs/reiserfsprogs-3.6.27 ) ) + python? ( ${PYTHON_DEPS} ) zstd? ( app-arch/zstd:0= ) " DEPEND="${RDEPEND} @@ -47,6 +50,7 @@ DEPEND="${RDEPEND} >=app-text/asciidoc-8.6.0 app-text/docbook-xml-dtd:4.5 app-text/xmlto + python? ( dev-python/setuptools[${PYTHON_USEDEP}] ) static? ( dev-libs/lzo:2[static-libs(+)] sys-apps/util-linux:0[static-libs(+)] @@ -66,6 +70,12 @@ if [[ ${PV} == 9999 ]]; then DEPEND+=" sys-devel/gnuconfig" fi +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + src_prepare() { default if [[ ${PV} == 9999 ]]; then @@ -84,6 +94,7 @@ src_configure() { --bindir="${EPREFIX}"/sbin $(use_enable convert) $(use_enable elibc_glibc backtrace) + $(use_enable python) $(use_enable zstd) --with-convert=ext2$(usex reiserfs ',reiserfs' '') ) @@ -96,9 +107,11 @@ src_compile() { src_install() { local makeargs=( + $(usex python install_python '') $(usex static-libs '' 'libs_static=') $(usex static install-static '') ) emake V=1 DESTDIR="${D}" install "${makeargs[@]}" newbashcomp btrfs-completion btrfs + use python && python_optimize } |