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 E165E158087 for ; Mon, 27 Dec 2021 01:09:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 990362BC007; Mon, 27 Dec 2021 01:08:57 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 C37192BC004 for ; Mon, 27 Dec 2021 01:08:55 +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 7E57C342EE9 for ; Mon, 27 Dec 2021 01:08:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 14ADF272 for ; Mon, 27 Dec 2021 01:08:51 +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: <1640567317.3ca29f3be368a7a7e3e17023d1f6ccff80f68956.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-electronics/kicad/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-electronics/kicad/kicad-6.0.0.ebuild sci-electronics/kicad/kicad-9999.ebuild X-VCS-Directories: sci-electronics/kicad/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 3ca29f3be368a7a7e3e17023d1f6ccff80f68956 X-VCS-Branch: master Date: Mon, 27 Dec 2021 01:08:51 +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: 548d8011-6a1c-45d4-b8dd-7afb8e2f9cfc X-Archives-Hash: b5e4b1c190fd50395d84438011ee3e05 commit: 3ca29f3be368a7a7e3e17023d1f6ccff80f68956 Author: Sam James gentoo org> AuthorDate: Mon Dec 27 00:38:34 2021 +0000 Commit: Sam James gentoo org> CommitDate: Mon Dec 27 01:08:37 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ca29f3b sci-electronics/kicad: 6+ always needs Python See: https://gitlab.com/kicad/code/kicad/-/commit/f274a00c089e0e9fbe0c495ed047138405b5798f See: https://gitlab.com/kicad/code/kicad/-/merge_requests/796 Signed-off-by: Sam James gentoo.org> sci-electronics/kicad/kicad-6.0.0.ebuild | 54 +++++++++++++++----------------- sci-electronics/kicad/kicad-9999.ebuild | 52 ++++++++++++++---------------- 2 files changed, 48 insertions(+), 58 deletions(-) diff --git a/sci-electronics/kicad/kicad-6.0.0.ebuild b/sci-electronics/kicad/kicad-6.0.0.ebuild index 87a5fb43e652..be4d85dce48d 100644 --- a/sci-electronics/kicad/kicad-6.0.0.ebuild +++ b/sci-electronics/kicad/kicad-6.0.0.ebuild @@ -28,11 +28,9 @@ fi LICENSE="GPL-2+ GPL-3+ Boost-1.0" SLOT="0" -IUSE="doc examples +ngspice openmp +python occ +pcm" +IUSE="doc examples +ngspice openmp occ +pcm" -REQUIRED_USE=" - python? ( ${PYTHON_REQUIRED_USE} ) -" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" COMMON_DEPEND=" >=dev-libs/boost-1.61:=[context,nls] @@ -43,26 +41,24 @@ COMMON_DEPEND=" >=x11-libs/cairo-1.8.8:= >=x11-libs/pixman-0.30 x11-libs/wxGTK:${WX_GTK_VER}[X,opengl] + $(python_gen_cond_dep ' + >=dev-libs/boost-1.61:=[context,nls,python,${PYTHON_USEDEP}] + dev-python/wxpython:4.0[${PYTHON_USEDEP}] + ') + ${PYTHON_DEPS} ngspice? ( >sci-electronics/ngspice-27[shared] ) occ? ( >=sci-libs/opencascade-6.8.0:= ) - python? ( - $(python_gen_cond_dep ' - >=dev-libs/boost-1.61:=[context,nls,python,${PYTHON_MULTI_USEDEP}] - dev-python/wxpython:4.0[${PYTHON_MULTI_USEDEP}] - ') - ${PYTHON_DEPS} - ) " -DEPEND="${COMMON_DEPEND} - python? ( >=dev-lang/swig-3.0:0 )" +DEPEND="${COMMON_DEPEND}" RDEPEND="${COMMON_DEPEND} sci-electronics/electronics-menu " -BDEPEND="doc? ( app-doc/doxygen )" +BDEPEND=">=dev-lang/swig-3.0 + doc? ( app-doc/doxygen )" if [[ ${PV} == 9999 ]] ; then # x11-misc-util/macros only required on live ebuilds @@ -73,8 +69,9 @@ CHECKREQS_DISK_BUILD="800M" CAS_VERSION=7.5.3 pkg_setup() { - use python && python-single-r1_pkg_setup use openmp && tc-check-openmp + + python-single-r1_pkg_setup setup-wxwidgets check-reqs_pkg_setup } @@ -92,13 +89,15 @@ src_configure() { local mycmakeargs=( -DKICAD_DOCS="${EPREFIX}/usr/share/doc/${PF}" - -DKICAD_HELP="${EPREFIX}/usr/share/doc/${PN}-doc-${PV}" - -DKICAD_SCRIPTING="$(usex python)" - -DKICAD_SCRIPTING_MODULES="$(usex python)" - -DKICAD_SCRIPTING_WXPYTHON="$(usex python)" - -DKICAD_SCRIPTING_WXPYTHON_PHOENIX="$(usex python)" - -DKICAD_SCRIPTING_PYTHON3="$(usex python)" - -DKICAD_SCRIPTING_ACTION_MENU="$(usex python)" + + -DKICAD_SCRIPTING_WXPYTHON=ON + -DKICAD_SCRIPTING_WXPYTHON_PHOENIX=ON + + -DPYTHON_DEST="$(python_get_sitedir)" + -DPYTHON_EXECUTABLE="${PYTHON}" + -DPYTHON_INCLUDE_DIR="$(python_get_includedir)" + -DPYTHON_LIBRARY="$(python_get_library_path)" + -DKICAD_SPICE="$(usex ngspice)" -DKICAD_PCM="$(usex pcm)" @@ -106,15 +105,11 @@ src_configure() { -DKICAD_INSTALL_DEMOS="$(usex examples)" -DCMAKE_SKIP_RPATH="ON" ) - use python && mycmakeargs+=( - -DPYTHON_DEST="$(python_get_sitedir)" - -DPYTHON_EXECUTABLE="${PYTHON}" - -DPYTHON_INCLUDE_DIR="$(python_get_includedir)" - -DPYTHON_LIBRARY="$(python_get_library_path)" - ) + local OCC_P=$(best_version sci-libs/opencascade) OCC_P=${OCC_P#sci-libs/} OCC_P=${OCC_P%-r*} + use occ && mycmakeargs+=( -DOCC_INCLUDE_DIR="${CASROOT}"/include/${OCC_P} -DOCC_LIBRARY_DIR="${CASROOT}"/$(get_libdir)/${OCC_P} @@ -141,7 +136,8 @@ src_test() { src_install() { cmake_src_install - use python && python_optimize + python_optimize + if use doc ; then dodoc uncrustify.cfg cd Documentation || die diff --git a/sci-electronics/kicad/kicad-9999.ebuild b/sci-electronics/kicad/kicad-9999.ebuild index 67d0c512c106..be4d85dce48d 100644 --- a/sci-electronics/kicad/kicad-9999.ebuild +++ b/sci-electronics/kicad/kicad-9999.ebuild @@ -28,11 +28,9 @@ fi LICENSE="GPL-2+ GPL-3+ Boost-1.0" SLOT="0" -IUSE="doc examples +ngspice openmp +python occ +pcm" +IUSE="doc examples +ngspice openmp occ +pcm" -REQUIRED_USE=" - python? ( ${PYTHON_REQUIRED_USE} ) -" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" COMMON_DEPEND=" >=dev-libs/boost-1.61:=[context,nls] @@ -43,26 +41,24 @@ COMMON_DEPEND=" >=x11-libs/cairo-1.8.8:= >=x11-libs/pixman-0.30 x11-libs/wxGTK:${WX_GTK_VER}[X,opengl] + $(python_gen_cond_dep ' + >=dev-libs/boost-1.61:=[context,nls,python,${PYTHON_USEDEP}] + dev-python/wxpython:4.0[${PYTHON_USEDEP}] + ') + ${PYTHON_DEPS} ngspice? ( >sci-electronics/ngspice-27[shared] ) occ? ( >=sci-libs/opencascade-6.8.0:= ) - python? ( - $(python_gen_cond_dep ' - >=dev-libs/boost-1.61:=[context,nls,python,${PYTHON_MULTI_USEDEP}] - dev-python/wxpython:4.0[${PYTHON_MULTI_USEDEP}] - ') - ${PYTHON_DEPS} - ) " -DEPEND="${COMMON_DEPEND} - python? ( >=dev-lang/swig-3.0:0 )" +DEPEND="${COMMON_DEPEND}" RDEPEND="${COMMON_DEPEND} sci-electronics/electronics-menu " -BDEPEND="doc? ( app-doc/doxygen )" +BDEPEND=">=dev-lang/swig-3.0 + doc? ( app-doc/doxygen )" if [[ ${PV} == 9999 ]] ; then # x11-misc-util/macros only required on live ebuilds @@ -73,8 +69,9 @@ CHECKREQS_DISK_BUILD="800M" CAS_VERSION=7.5.3 pkg_setup() { - use python && python-single-r1_pkg_setup use openmp && tc-check-openmp + + python-single-r1_pkg_setup setup-wxwidgets check-reqs_pkg_setup } @@ -92,13 +89,15 @@ src_configure() { local mycmakeargs=( -DKICAD_DOCS="${EPREFIX}/usr/share/doc/${PF}" - -DKICAD_HELP="${EPREFIX}/usr/share/doc/${PN}-doc-${PV}" - -DKICAD_SCRIPTING="$(usex python)" - -DKICAD_SCRIPTING_MODULES="$(usex python)" - -DKICAD_SCRIPTING_WXPYTHON="$(usex python)" - -DKICAD_SCRIPTING_WXPYTHON_PHOENIX="$(usex python)" - -DKICAD_SCRIPTING_PYTHON3="$(usex python)" - -DKICAD_SCRIPTING_ACTION_MENU="$(usex python)" + + -DKICAD_SCRIPTING_WXPYTHON=ON + -DKICAD_SCRIPTING_WXPYTHON_PHOENIX=ON + + -DPYTHON_DEST="$(python_get_sitedir)" + -DPYTHON_EXECUTABLE="${PYTHON}" + -DPYTHON_INCLUDE_DIR="$(python_get_includedir)" + -DPYTHON_LIBRARY="$(python_get_library_path)" + -DKICAD_SPICE="$(usex ngspice)" -DKICAD_PCM="$(usex pcm)" @@ -106,12 +105,6 @@ src_configure() { -DKICAD_INSTALL_DEMOS="$(usex examples)" -DCMAKE_SKIP_RPATH="ON" ) - use python && mycmakeargs+=( - -DPYTHON_DEST="$(python_get_sitedir)" - -DPYTHON_EXECUTABLE="${PYTHON}" - -DPYTHON_INCLUDE_DIR="$(python_get_includedir)" - -DPYTHON_LIBRARY="$(python_get_library_path)" - ) local OCC_P=$(best_version sci-libs/opencascade) OCC_P=${OCC_P#sci-libs/} @@ -143,7 +136,8 @@ src_test() { src_install() { cmake_src_install - use python && python_optimize + python_optimize + if use doc ; then dodoc uncrustify.cfg cd Documentation || die