From d67701b3afcc4ab78e1d100f75c1974873b1611b Mon Sep 17 00:00:00 2001 From: q66 Date: Mon, 20 Jan 2020 02:24:19 +0100 Subject: [PATCH] bcnc: no opencv on ppc32 (it's optional) --- srcpkgs/bcnc/template | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/srcpkgs/bcnc/template b/srcpkgs/bcnc/template index bd573f4b199..e36fca328db 100644 --- a/srcpkgs/bcnc/template +++ b/srcpkgs/bcnc/template @@ -6,7 +6,7 @@ archs=noarch wrksrc=bCNC-$version build_style=python3-module hostmakedepends="python3-setuptools" -depends="python3-pyserial python3-Pillow python3-tkinter python3-numpy libopencv-python3 python3-scipy" +depends="python3-pyserial python3-Pillow python3-tkinter python3-numpy python3-scipy" short_desc="GRBL CNC command sender, autoleveler and g-code editor" maintainer="Urs Schulz " license="GPL-2.0-only" @@ -14,6 +14,17 @@ homepage="https://github.com/vlachoudis/bCNC" distfiles="${PYPI_SITE}/b/bCNC/bCNC-${version}.tar.gz" checksum=2df238989184179726870559f0531aea1e85ae9369d194bf8dba3638107671d7 +# opencv is not available on 32-bit ppc +case "$XBPS_TARGET_MACHINE" in + ppc64*) ;; + ppc*) _no_opencv=yes;; +esac + +# libopencv-python3 is optional +if [ -z "$_no_opencv" ]; then + depends+=" libopencv-python3" +fi + post_install() { vmkdir usr/share/applications vmkdir usr/share/pixmaps