From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 36D0B138331 for ; Mon, 9 Apr 2018 08:54:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4DC46E08CD; Mon, 9 Apr 2018 08:54:07 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 122C5E08CD for ; Mon, 9 Apr 2018 08:54:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BF76E335C51 for ; Mon, 9 Apr 2018 08:54:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 450E7266 for ; Mon, 9 Apr 2018 08:54:04 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1523264035.fb48e64affbd9c43022edd3bbae29f375074e81a.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/btrfs-progs/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-fs/btrfs-progs/btrfs-progs-9999.ebuild X-VCS-Directories: sys-fs/btrfs-progs/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: fb48e64affbd9c43022edd3bbae29f375074e81a X-VCS-Branch: master Date: Mon, 9 Apr 2018 08:54:04 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: da981b99-3734-4eae-bf4f-54d00fb166e6 X-Archives-Hash: 268edf9948960f3e4afb3483d571323a commit: fb48e64affbd9c43022edd3bbae29f375074e81a Author: Lars Wendler gentoo org> AuthorDate: Mon Apr 9 08:41:59 2018 +0000 Commit: Lars Wendler gentoo org> CommitDate: Mon Apr 9 08:53:55 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb48e64a sys-fs/btrfs-progs: Added python support. Package-Manager: Portage-2.3.28, Repoman-2.3.9 sys-fs/btrfs-progs/btrfs-progs-9999.ebuild | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/sys-fs/btrfs-progs/btrfs-progs-9999.ebuild b/sys-fs/btrfs-progs/btrfs-progs-9999.ebuild index 0b955eb22a0..0936ade7591 100644 --- a/sys-fs/btrfs-progs/btrfs-progs-9999.ebuild +++ b/sys-fs/btrfs-progs/btrfs-progs-9999.ebuild @@ -3,14 +3,16 @@ EAPI=6 -inherit bash-completion-r1 +PYTHON_COMPAT=( python3_{4,5,6} ) + +inherit bash-completion-r1 python-single-r1 libbtrfs_soname=0 if [[ ${PV} != 9999 ]]; then MY_PV="v${PV/_/-}" [[ "${PV}" = *_rc* ]] || \ - KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" SRC_URI="https://www.kernel.org/pub/linux/kernel/people/kdave/${PN}/${PN}-${MY_PV}.tar.xz" S="${WORKDIR}"/${PN}-${MY_PV} else @@ -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 }