Skip to content

Commit

Permalink
media-libs/libcamera: run python_optimize only when USE=python
Browse files Browse the repository at this point in the history
  • Loading branch information
dguglielmi committed Dec 26, 2024
1 parent 125756f commit 59b1eb9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions media-libs/libcamera/libcamera-0.4.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,14 @@ src_configure() {
local emesonargs=(
-Dandroid=disabled
$(meson_feature app cam)
#$(meson_feature doc documentation)
# Building documentation is broken
# $(meson_feature doc documentation)
-Ddocumentation=disabled
$(meson_feature gstreamer)
$(meson_feature python pycamera)
$(meson_feature qt6 qcam)
$(meson_feature udev)
# depend on libyuv
# Depend on libyuv
#$(meson_use test)
-Dtest=false
-Dpipelines=imx8-isi,ipu3,mali-c55,rkisp1,rpi/vc4,simple,uvcvideo,vimc
Expand All @@ -98,5 +99,7 @@ src_configure() {

src_install() {
meson_src_install
python_optimize "${D}/$(python_get_sitedir)/libcamera"
if use python; then
python_optimize "${D}/$(python_get_sitedir)/libcamera"
fi
}

0 comments on commit 59b1eb9

Please sign in to comment.