Skip to content

Commit

Permalink
sci-electronics/kicad: Add telemetry USE flag and fix QA settings
Browse files Browse the repository at this point in the history
- Introduce 'telemetry' USE flag in IUSE
- Configure build to use telemetry based on USE flag
- Update QA tests configuration with KICAD_SPICE_QA

Thanks to @dlan17 and @zpuskas for their improvements to the ebuilds

Closes: gentoo#35548
Signed-off-by: Huang Rui <[email protected]>
Signed-off-by: Yixun Lan <[email protected]>
  • Loading branch information
vowstar authored and dlan17 committed Feb 28, 2024
1 parent 2a8367f commit bff1eea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
5 changes: 4 additions & 1 deletion sci-electronics/kicad/kicad-8.0.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fi
# BSD for bundled pybind
LICENSE="GPL-2+ GPL-3+ Boost-1.0 BSD"
SLOT="0"
IUSE="doc examples nls openmp test"
IUSE="doc examples nls openmp telemetry test"

REQUIRED_USE="${PYTHON_REQUIRED_USE}"

Expand Down Expand Up @@ -115,6 +115,9 @@ src_configure() {
-DOCC_INCLUDE_DIR="${CASROOT}"/include/opencascade
-DOCC_LIBRARY_DIR="${CASROOT}"/$(get_libdir)/opencascade

-DKICAD_USE_SENTRY="$(usex telemetry)"

-DKICAD_SPICE_QA="$(usex test)"
-DKICAD_BUILD_QA_TESTS="$(usex test)"
)

Expand Down
10 changes: 4 additions & 6 deletions sci-electronics/kicad/kicad-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fi
# BSD for bundled pybind
LICENSE="GPL-2+ GPL-3+ Boost-1.0 BSD"
SLOT="0"
IUSE="doc examples nls openmp test"
IUSE="doc examples nls openmp telemetry test"

REQUIRED_USE="${PYTHON_REQUIRED_USE}"

Expand All @@ -41,7 +41,7 @@ RESTRICT="!test? ( test )"
COMMON_DEPEND="
dev-db/unixODBC
dev-libs/boost:=[context,nls]
dev-libs/libgit2
dev-libs/libgit2:=
media-libs/freeglut
media-libs/glew:0=
>=media-libs/glm-0.9.9.1
Expand Down Expand Up @@ -76,10 +76,6 @@ fi

CHECKREQS_DISK_BUILD="1500M"

PATCHES=(
"${FILESDIR}"/${PN}-7.0.0-werror.patch
)

pkg_setup() {
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp

Expand Down Expand Up @@ -119,6 +115,8 @@ src_configure() {
-DOCC_INCLUDE_DIR="${CASROOT}"/include/opencascade
-DOCC_LIBRARY_DIR="${CASROOT}"/$(get_libdir)/opencascade

-DKICAD_USE_SENTRY="$(usex telemetry)"

-DKICAD_SPICE_QA="$(usex test)"
-DKICAD_BUILD_QA_TESTS="$(usex test)"
)
Expand Down

0 comments on commit bff1eea

Please sign in to comment.