summaryrefslogtreecommitdiffstats
path: root/packaging/macos/src/cairosvg.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:24:48 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:24:48 +0000
commitcca66b9ec4e494c1d919bff0f71a820d8afab1fa (patch)
tree146f39ded1c938019e1ed42d30923c2ac9e86789 /packaging/macos/src/cairosvg.sh
parentInitial commit. (diff)
downloadinkscape-cca66b9ec4e494c1d919bff0f71a820d8afab1fa.tar.xz
inkscape-cca66b9ec4e494c1d919bff0f71a820d8afab1fa.zip
Adding upstream version 1.2.2.upstream/1.2.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--packaging/macos/src/cairosvg.sh38
1 files changed, 38 insertions, 0 deletions
diff --git a/packaging/macos/src/cairosvg.sh b/packaging/macos/src/cairosvg.sh
new file mode 100644
index 0000000..bcd2aa6
--- /dev/null
+++ b/packaging/macos/src/cairosvg.sh
@@ -0,0 +1,38 @@
+# SPDX-FileCopyrightText: 2021 René de Hesselle <dehesselle@web.de>
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+### description ################################################################
+
+# cairosvg is a Python package so we can convert svg to png.
+
+### shellcheck #################################################################
+
+# shellcheck shell=bash # no shebang as this file is intended to be sourced
+
+### dependencies ###############################################################
+
+# Nothing here.
+
+### variables ##################################################################
+
+# https://cairocffi.readthedocs.io/en/stable/
+# https://github.com/Kozea/cairocffi
+# https://cairosvg.org
+# https://github.com/Kozea/CairoSVG
+CAIROSVG_PIP="\
+ cairocffi==1.2.0\
+ cairosvg==2.5.2\
+"
+
+### functions ##################################################################
+
+function cairosvg_install
+{
+ # shellcheck disable=SC2086 # we need word splitting here
+ jhb run pip3 install $CAIROSVG_PIP
+}
+
+### main #######################################################################
+
+# Nothing here. \ No newline at end of file