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 4F77F139347 for ; Wed, 21 Jul 2021 21:58:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 49067E0B0C; Wed, 21 Jul 2021 21:57:59 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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 21310E0B0A for ; Wed, 21 Jul 2021 21:57:59 +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 B21B7342C0C for ; Wed, 21 Jul 2021 21:57:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4B083844 for ; Wed, 21 Jul 2021 21:57:55 +0000 (UTC) From: "Marek Szuba" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marek Szuba" Message-ID: <1626904662.7ed444ce97883c35a0d0eabf03611430b8d429e5.marecki@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/imath/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/imath/imath-3.0.5.ebuild X-VCS-Directories: dev-libs/imath/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: 7ed444ce97883c35a0d0eabf03611430b8d429e5 X-VCS-Branch: master Date: Wed, 21 Jul 2021 21:57:55 +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: fb3a696f-109b-49fd-bf4c-15c6c5ee4041 X-Archives-Hash: c4dbe39ce245fd8306836c80319ebd2f commit: 7ed444ce97883c35a0d0eabf03611430b8d429e5 Author: Marek Szuba gentoo org> AuthorDate: Wed Jul 21 21:41:59 2021 +0000 Commit: Marek Szuba gentoo org> CommitDate: Wed Jul 21 21:57:42 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ed444ce dev-libs/imath: some tweaks to the new ebuild 1. Compute MY_PN from PN instead of hardcoding it; 2. Make PYTHON_REQUIRED_USE conditional on USE=python (other Pythonic bits have already been conditional on this flag); 3. s/PYTHON_MULTI_USEDEP/PYTHON_USEDEP/ ; 4. In src_configure, change the name of a local variable from MY_PV to majorver to avoid confusing it for a global one; 5. In src_install() set HTML_DOCS before calling cmake_src_install so that einstalldocs isn't called twice. Closes: https://github.com/gentoo/gentoo/pull/20930 Signed-off-by: Marek Szuba gentoo.org> dev-libs/imath/imath-3.0.5.ebuild | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/dev-libs/imath/imath-3.0.5.ebuild b/dev-libs/imath/imath-3.0.5.ebuild index 184a8b00f47..a4cce563f14 100644 --- a/dev-libs/imath/imath-3.0.5.ebuild +++ b/dev-libs/imath/imath-3.0.5.ebuild @@ -7,7 +7,7 @@ PYTHON_COMPAT=( python3_{8..10} ) inherit cmake python-single-r1 -MY_PN=Imath +MY_PN="${PN^}" DESCRIPTION="Imath basic math package" HOMEPAGE="https://imath.readthedocs.io" @@ -15,12 +15,11 @@ SRC_URI="https://github.com/AcademySoftwareFoundation/${MY_PN}/archive/refs/tags # re-keywording needed for (according to ilmbase keywords): # ~arm ~arm64 ~mips ~x64-macos ~x86-solaris KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" -S="${WORKDIR}/${MY_PN}-${PV}" LICENSE="BSD" SLOT="3/28" IUSE="doc large-stack python static-libs test" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" RESTRICT="!test? ( test )" RDEPEND=" @@ -28,35 +27,39 @@ RDEPEND=" python? ( ${PYTHON_DEPS} $(python_gen_cond_dep ' - dev-libs/boost:=[python?,${PYTHON_MULTI_USEDEP}] - dev-python/numpy[${PYTHON_MULTI_USEDEP}] + dev-libs/boost:=[python,${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] ') ) " DEPEND="${RDEPEND}" BDEPEND=" virtual/pkgconfig - doc? ( $(python_gen_cond_dep 'dev-python/breathe[${PYTHON_MULTI_USEDEP}]') ) + doc? ( $(python_gen_cond_dep 'dev-python/breathe[${PYTHON_USEDEP}]') ) python? ( ${PYTHON_DEPS} ) " -PATCHES=( "${FILESDIR}"/${P}-0001-changes-needed-for-proper-slotting.patch ) +PATCHES=( + "${FILESDIR}"/${P}-0001-changes-needed-for-proper-slotting.patch +) DOCS=( CHANGES.md CONTRIBUTORS.md README.md SECURITY.md docs/PortingGuide2-3.md ) +S="${WORKDIR}/${MY_PN}-${PV}" + pkg_setup() { use python && python-single-r1_pkg_setup } src_configure() { - local MY_PV=$(ver_cut 1) + local majorver=$(ver_cut 1) + local mycmakeargs=( -DBUILD_SHARED_LIBS=$(usex !static-libs) -DIMATH_ENABLE_LARGE_STACK=$(usex large-stack) -DIMATH_INSTALL_PKG_CONFIG=ON - -DIMATH_OUTPUT_SUBDIR="${MY_PN}-${MY_PV}" + -DIMATH_OUTPUT_SUBDIR="${MY_PN}-${majorver}" -DIMATH_USE_CLANG_TIDY=OFF ) - if use python; then mycmakeargs+=( # temp. disable for finding libboost_python310, #803032 @@ -83,13 +86,9 @@ src_compile() { } src_install() { + use doc && HTML_DOCS=( "${S}/docs/_build/html/." ) cmake_src_install - if use doc; then - HTML_DOCS=( "${S}/docs/_build/html/." ) - einstalldocs - fi - # if use python; then # rm "${ED}"/usr/$(get_libdir)/cmake/${MY_PN}/${MY_PN}Config-gentoo.cmake || die # fi