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 8FC3A138334 for ; Wed, 25 Jul 2018 10:55:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 86E8DE08C4; Wed, 25 Jul 2018 10:55:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 5E898E08C4 for ; Wed, 25 Jul 2018 10:55:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 9A757335C2B for ; Wed, 25 Jul 2018 10:55:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B3494353 for ; Wed, 25 Jul 2018 10:55:33 +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: <1532516128.3d4a2c3bc5e194ac73017c185f92a16a513fe2f6.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libblockdev/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-libs/libblockdev/libblockdev-2.17.ebuild sys-libs/libblockdev/libblockdev-2.18-r1.ebuild X-VCS-Directories: sys-libs/libblockdev/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: 3d4a2c3bc5e194ac73017c185f92a16a513fe2f6 X-VCS-Branch: master Date: Wed, 25 Jul 2018 10:55:33 +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: 5822ea5d-4a50-4c4a-8d0e-89c8e948f655 X-Archives-Hash: 3bc4dc47ff92d4b893c5afeb8cec74f5 commit: 3d4a2c3bc5e194ac73017c185f92a16a513fe2f6 Author: Lars Wendler gentoo org> AuthorDate: Wed Jul 25 10:54:41 2018 +0000 Commit: Lars Wendler gentoo org> CommitDate: Wed Jul 25 10:55:28 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d4a2c3b sys-libs/libblockdev: Use python_is_python3 to check for major python version. Package-Manager: Portage-2.3.43, Repoman-2.3.10 sys-libs/libblockdev/libblockdev-2.17.ebuild | 13 +++++++++++-- sys-libs/libblockdev/libblockdev-2.18-r1.ebuild | 13 +++++++++++-- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/sys-libs/libblockdev/libblockdev-2.17.ebuild b/sys-libs/libblockdev/libblockdev-2.17.ebuild index 5e350e43a26..f494d3d270e 100644 --- a/sys-libs/libblockdev/libblockdev-2.17.ebuild +++ b/sys-libs/libblockdev/libblockdev-2.17.ebuild @@ -81,8 +81,17 @@ src_configure() { $(use_with lvm lvm) $(use_with lvm lvm-dbus) $(use_with kbd) - $(use_with python_single_target_python2_7 python2) - $(use_with !python_single_target_python2_7 python3) ) + if python_is_python3 ; then + myeconfargs+=( + --without-python2 + --with-python3 + ) + else + myeconfargs+=( + --with-python2 + --without-python3 + ) + fi econf "${myeconfargs[@]}" } diff --git a/sys-libs/libblockdev/libblockdev-2.18-r1.ebuild b/sys-libs/libblockdev/libblockdev-2.18-r1.ebuild index eb79e1e1cb4..dbb703c0700 100644 --- a/sys-libs/libblockdev/libblockdev-2.18-r1.ebuild +++ b/sys-libs/libblockdev/libblockdev-2.18-r1.ebuild @@ -78,9 +78,18 @@ src_configure() { $(use_with lvm lvm) $(use_with lvm lvm-dbus) $(use_with kbd) - $(use_with python_single_target_python2_7 python2) - $(use_with !python_single_target_python2_7 python3) $(use_with vdo) ) + if python_is_python3 ; then + myeconfargs+=( + --without-python2 + --with-python3 + ) + else + myeconfargs+=( + --with-python2 + --without-python3 + ) + fi econf "${myeconfargs[@]}" }