diff options
author | Zoltan Puskas <zoltan@sinustrom.info> | 2023-11-23 02:19:47 -0800 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2023-11-28 18:36:45 +0200 |
commit | 369713e2349ce8197ea5cbfdbac319584fe81025 (patch) | |
tree | 44ba767d0c05372929b75fe115c0c938f8dde911 /sci-electronics/kicad | |
parent | sci-electronics/kicad: add 7.0.9 (diff) | |
download | gentoo-369713e2349ce8197ea5cbfdbac319584fe81025.tar.gz gentoo-369713e2349ce8197ea5cbfdbac319584fe81025.tar.bz2 gentoo-369713e2349ce8197ea5cbfdbac319584fe81025.zip |
sci-electronics/kicad: Add USE=test and use it to control building QA tests
Closes: https://bugs.gentoo.org/917323
Signed-off-by: Zoltan Puskas <zoltan@sinustrom.info>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'sci-electronics/kicad')
-rw-r--r-- | sci-electronics/kicad/kicad-7.0.8.ebuild | 6 | ||||
-rw-r--r-- | sci-electronics/kicad/kicad-7.0.9.ebuild | 6 | ||||
-rw-r--r-- | sci-electronics/kicad/kicad-9999.ebuild | 7 |
3 files changed, 16 insertions, 3 deletions
diff --git a/sci-electronics/kicad/kicad-7.0.8.ebuild b/sci-electronics/kicad/kicad-7.0.8.ebuild index 7af71d049c15..41bb4dac9a3c 100644 --- a/sci-electronics/kicad/kicad-7.0.8.ebuild +++ b/sci-electronics/kicad/kicad-7.0.8.ebuild @@ -28,10 +28,12 @@ fi # BSD for bundled pybind LICENSE="GPL-2+ GPL-3+ Boost-1.0 BSD" SLOT="0" -IUSE="doc examples nls openmp" +IUSE="doc examples nls openmp test" REQUIRED_USE="${PYTHON_REQUIRED_USE}" +RESTRICT="!test? ( test )" + # Contains bundled pybind but it's patched for wx # See https://gitlab.com/kicad/code/kicad/-/commit/74e4370a9b146b21883d6a2d1df46c7a10bd0424 # Depend on opencascade:0 to get unslotted variant (so we know path to it), bug #833301 @@ -115,6 +117,8 @@ src_configure() { -DOCC_INCLUDE_DIR="${CASROOT}"/include/opencascade -DOCC_LIBRARY_DIR="${CASROOT}"/$(get_libdir)/opencascade + + -DKICAD_BUILD_QA_TESTS="$(usex test)" ) cmake_src_configure diff --git a/sci-electronics/kicad/kicad-7.0.9.ebuild b/sci-electronics/kicad/kicad-7.0.9.ebuild index 7af71d049c15..41bb4dac9a3c 100644 --- a/sci-electronics/kicad/kicad-7.0.9.ebuild +++ b/sci-electronics/kicad/kicad-7.0.9.ebuild @@ -28,10 +28,12 @@ fi # BSD for bundled pybind LICENSE="GPL-2+ GPL-3+ Boost-1.0 BSD" SLOT="0" -IUSE="doc examples nls openmp" +IUSE="doc examples nls openmp test" REQUIRED_USE="${PYTHON_REQUIRED_USE}" +RESTRICT="!test? ( test )" + # Contains bundled pybind but it's patched for wx # See https://gitlab.com/kicad/code/kicad/-/commit/74e4370a9b146b21883d6a2d1df46c7a10bd0424 # Depend on opencascade:0 to get unslotted variant (so we know path to it), bug #833301 @@ -115,6 +117,8 @@ src_configure() { -DOCC_INCLUDE_DIR="${CASROOT}"/include/opencascade -DOCC_LIBRARY_DIR="${CASROOT}"/$(get_libdir)/opencascade + + -DKICAD_BUILD_QA_TESTS="$(usex test)" ) cmake_src_configure diff --git a/sci-electronics/kicad/kicad-9999.ebuild b/sci-electronics/kicad/kicad-9999.ebuild index 93ae9f0c2274..ab648cee85b8 100644 --- a/sci-electronics/kicad/kicad-9999.ebuild +++ b/sci-electronics/kicad/kicad-9999.ebuild @@ -28,10 +28,12 @@ fi # BSD for bundled pybind LICENSE="GPL-2+ GPL-3+ Boost-1.0 BSD" SLOT="0" -IUSE="doc examples nls openmp" +IUSE="doc examples nls openmp test" REQUIRED_USE="${PYTHON_REQUIRED_USE}" +RESTRICT="!test? ( test )" + # Contains bundled pybind but it's patched for wx # See https://gitlab.com/kicad/code/kicad/-/commit/74e4370a9b146b21883d6a2d1df46c7a10bd0424 # Depend on opencascade:0 to get unslotted variant (so we know path to it), bug #833301 @@ -116,6 +118,9 @@ src_configure() { -DOCC_INCLUDE_DIR="${CASROOT}"/include/opencascade -DOCC_LIBRARY_DIR="${CASROOT}"/$(get_libdir)/opencascade + + -DKICAD_SPICE_QA="$(usex test)" + -DKICAD_BUILD_QA_TESTS="$(usex test)" ) cmake_src_configure |