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 BC86E158086 for ; Mon, 10 Jan 2022 01:04:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D96A12BC088; Mon, 10 Jan 2022 01:04:05 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 298702BC088 for ; Mon, 10 Jan 2022 01:04:05 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 199BA342D60 for ; Mon, 10 Jan 2022 01:04:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3B6C9288 for ; Mon, 10 Jan 2022 01:04:01 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1641776549.62acc9193ee2728e613bb511a483ee16c8947ec1.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/opencascade/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/opencascade/opencascade-7.5.2-r2.ebuild sci-libs/opencascade/opencascade-7.5.2-r3.ebuild X-VCS-Directories: sci-libs/opencascade/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 62acc9193ee2728e613bb511a483ee16c8947ec1 X-VCS-Branch: master Date: Mon, 10 Jan 2022 01:04:01 +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: dcdcae83-d550-48c5-bba9-969e360a4c79 X-Archives-Hash: 17ab3e37e9e3de91d33942c2cf42f444 commit: 62acc9193ee2728e613bb511a483ee16c8947ec1 Author: Bernd Waibel posteo net> AuthorDate: Mon Dec 13 05:01:20 2021 +0000 Commit: Sam James gentoo org> CommitDate: Mon Jan 10 01:02:29 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62acc919 sci-libs/opencascade: use single slot/subslot for 7.5.2 Instead of using different slots for different versions, the package now uses a single slot with subslots. This is to simplify dependency handling in revdeps. Allow to build against sci-libs/vtk-9.1.0 Package-Manager: Portage-3.0.29, Repoman-3.0.3 Signed-off-by: Bernd Waibel posteo.net> Signed-off-by: Sam James gentoo.org> ...7.5.2-r2.ebuild => opencascade-7.5.2-r3.ebuild} | 34 ++++++++++------------ 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/sci-libs/opencascade/opencascade-7.5.2-r2.ebuild b/sci-libs/opencascade/opencascade-7.5.2-r3.ebuild similarity index 87% rename from sci-libs/opencascade/opencascade-7.5.2-r2.ebuild rename to sci-libs/opencascade/opencascade-7.5.2-r3.ebuild index cf90cc0c8aa1..080f7888f0bd 100644 --- a/sci-libs/opencascade/opencascade-7.5.2-r2.ebuild +++ b/sci-libs/opencascade/opencascade-7.5.2-r3.ebuild @@ -14,7 +14,7 @@ SRC_URI="https://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=refs/ta S="${WORKDIR}/occt-V${MY_PV}" LICENSE="|| ( Open-CASCADE-LGPL-2.1-Exception-1.0 LGPL-2.1 )" -SLOT="${PV_MAJ}" +SLOT="0/${PV_MAJ}" KEYWORDS="~amd64 ~arm64 ~x86" IUSE="debug doc examples ffmpeg freeimage gles2 json optimize tbb vtk" @@ -25,7 +25,6 @@ REQUIRED_USE="?? ( optimize tbb )" RESTRICT="test" RDEPEND=" - app-eselect/eselect-opencascade dev-lang/tcl:= dev-lang/tk:= dev-tcltk/itcl @@ -49,13 +48,11 @@ RDEPEND=" tbb? ( =sci-libs/vtk-9.0.0"; then + if has_version ">=sci-libs/vtk-9.1.0"; then + mycmakeargs+=( + -D3RDPARTY_VTK_DIR="${ESYSROOT}"/usr + -D3RDPARTY_VTK_INCLUDE_DIR="${ESYSROOT}"/usr/include/vtk-9.1 + -D3RDPARTY_VTK_LIBRARY_DIR="${ESYSROOT}"/usr/$(get_libdir) + ) + elif has_version ">=sci-libs/vtk-9.0.0"; then mycmakeargs+=( -D3RDPARTY_VTK_DIR="${ESYSROOT}"/usr -D3RDPARTY_VTK_INCLUDE_DIR="${ESYSROOT}"/usr/include/vtk-9.0 @@ -134,11 +137,11 @@ src_configure() { sed -e "s|lib/|$(get_libdir)/|" \ -e "s|VAR_PV|${PV}|" \ -e "s|VAR_CASROOT|${ESYSROOT}/usr|" \ - < "${FILESDIR}"/${PN}-${PV_MAJ}.env.in > "${T}"/${PV_MAJ} || die + < "${FILESDIR}"/${PN}.env.in > "${T}"/99${PN} || die # use TBB for memory allocation optimizations if use tbb; then - sed -e 's|^#MMGT_OPT=0$|MMGT_OPT=2|' -i "${T}"/${PV_MAJ} || die + sed -e 's|^#MMGT_OPT=0$|MMGT_OPT=2|' -i "${T}"/99${PN} || die fi # use internal optimized memory manager and don't clear memory with this @@ -146,16 +149,14 @@ src_configure() { if use optimize ; then sed -e 's|^#MMGT_OPT=0$|MMGT_OPT=1|' \ -e 's|^#MMGT_CLEAR=1$|MMGT_CLEAR=0|' \ - -i "${T}"/${PV_MAJ} || die + -i "${T}"/99${PN} || die fi } src_install() { cmake_src_install - # respect slotting - insinto "/etc/env.d/${PN}" - doins "${T}/${PV_MAJ}" + doenvd "${T}/99${PN}" # remove examples if use !examples; then @@ -164,8 +165,3 @@ src_install() { docompress -x /usr/share/doc/${PF}/overview/html } - -pkg_postinst() { - eselect ${PN} set ${PV_MAJ} || die "failed to switch to updated implementation" - einfo "You can switch between available ${PN} implementations using eselect ${PN}" -}