blob: cb54da755b015766f657c373e79ee0e46ed24c1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-2.0-or-later
#
# This file is part of the build pipeline for Inkscape on macOS.
#
# ### 160-jhbuild-other.sh ###
# Install additional components that are not direct dependencies, like tools
# required for packaging.
### load settings and functions ################################################
SELF_DIR=$(F=$0; while [ ! -z $(readlink $F) ] && F=$(readlink $F); cd $(dirname $F); F=$(basename $F); [ -L $F ]; do :; done; echo $(pwd -P))
for script in $SELF_DIR/0??-*.sh; do source $script; done
set -e -o errtrace
trap 'catch_error "$SELF_NAME" "$LINENO" "$FUNCNAME" "${BASH_COMMAND}" "${?}"' ERR
### install disk image creator #################################################
jhbuild run pip3 install $PYTHON_DMGBUILD
### download icon for disk image ###############################################
# dmgbuild offers to generate a badged version of the disk image icon, but
# it doesn't work and I have not investigated yet. We use a pre-made image
# for now.
save_file $URL_INKSCAPE_DMG_ICNS
### install gtk-mac-bundler ####################################################
(
export GMB_BINDIR=$BIN_DIR
install_source $URL_GTK_MAC_BUNDLER
jhbuild run make install
)
### install svg to png convertor ###############################################
jhbuild run pip3 install $PYTHON_CAIROSVG
jhbuild run pip3 install $PYTHON_CAIROCFFI
### install png to icns converter ##############################################
install_source $URL_PNG2ICNS
ln -s $(pwd)/png2icns.sh $BIN_DIR
### downlaod a pre-built Python.framework ######################################
# This will be bundled with the application.
save_file $URL_PYTHON
### install compiler cache #####################################################
jhbuild build ccache
################################################################################
# vim: expandtab:shiftwidth=2:tabstop=2:softtabstop=2 :
|