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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 12B9015823F for ; Fri, 17 Nov 2023 16:51:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 474052BC02E; Fri, 17 Nov 2023 16:51:20 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 31FD62BC02E for ; Fri, 17 Nov 2023 16:51:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 706F4335D1E for ; Fri, 17 Nov 2023 16:51:19 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D67B613A3 for ; Fri, 17 Nov 2023 16:51:17 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1700239874.b810a9fab82208bec4caf41a281dcadb09add83a.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/fonttools/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/fonttools/fonttools-4.44.3.ebuild X-VCS-Directories: dev-python/fonttools/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: b810a9fab82208bec4caf41a281dcadb09add83a X-VCS-Branch: master Date: Fri, 17 Nov 2023 16:51:17 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 57175dac-6dbd-43ef-9a88-b0c630a4de77 X-Archives-Hash: 8093b0ea579d5042109b3c55f538b38b commit: b810a9fab82208bec4caf41a281dcadb09add83a Author: Michał Górny gentoo org> AuthorDate: Fri Nov 17 15:47:37 2023 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Nov 17 16:51:14 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b810a9fa dev-python/fonttools: Make Cython extensions optional Sponsored-by: Ex Makhina, Inc. exmakhina.com> Signed-off-by: Michał Górny gentoo.org> dev-python/fonttools/fonttools-4.44.3.ebuild | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/dev-python/fonttools/fonttools-4.44.3.ebuild b/dev-python/fonttools/fonttools-4.44.3.ebuild index 219165929729..6d2a93312bc3 100644 --- a/dev-python/fonttools/fonttools-4.44.3.ebuild +++ b/dev-python/fonttools/fonttools-4.44.3.ebuild @@ -23,12 +23,15 @@ SRC_URI=" LICENSE="BSD" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos" +IUSE="+native-extensions" RDEPEND=" >=dev-python/fs-2.4.9[${PYTHON_USEDEP}] " BDEPEND=" - dev-python/cython[${PYTHON_USEDEP}] + native-extensions? ( + dev-python/cython[${PYTHON_USEDEP}] + ) test? ( dev-python/brotlicffi[${PYTHON_USEDEP}] app-arch/zopfli @@ -55,8 +58,9 @@ python_prepare_all() { distutils-r1_python_prepare_all } -src_configure() { - export FONTTOOLS_WITH_CYTHON=1 +python_compile() { + local -x FONTTOOLS_WITH_CYTHON=$(usex native-extensions) + distutils-r1_python_compile } src_test() {