summaryrefslogtreecommitdiff
path: root/Ports
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2021-09-26 20:46:41 +0200
committerAndreas Kling <kling@serenityos.org>2021-10-05 02:13:08 +0200
commite507cfcdb0cc3be9e8e3304952c81d4410e6b610 (patch)
tree27660032342c6a43bcce829645f04e100f0bd1db /Ports
parent52e9f254032b7c5bc59f8eeb4cfaeb5cd9df323a (diff)
downloadserenity-e507cfcdb0cc3be9e8e3304952c81d4410e6b610.zip
Ports: Set defaults before loading package.sh
This is too much bash magic for a simple "Use this value if the script doesn't set anything", especially since only one default setting depends on values from the script.
Diffstat (limited to 'Ports')
-rwxr-xr-xPorts/.port_include.sh31
1 files changed, 16 insertions, 15 deletions
diff --git a/Ports/.port_include.sh b/Ports/.port_include.sh
index 93f8006289..bf953a5a8c 100755
--- a/Ports/.port_include.sh
+++ b/Ports/.port_include.sh
@@ -54,25 +54,26 @@ host_env() {
packagesdb="${DESTDIR}/usr/Ports/packages.db"
+makeopts=-j$(nproc)
+installopts=
+configscript=configure
+configopts=
+useconfigure=false
+depends=
+patchlevel=1
+auth_type=
+auth_import_key=
+auth_opts=
+launcher_name=
+launcher_category=
+launcher_command=
+launcher_run_in_terminal=false
+icon_file=
+
. "$@"
shift
-: "${makeopts:=-j$(nproc)}"
-: "${installopts:=}"
: "${workdir:=$port-$version}"
-: "${configscript:=configure}"
-: "${configopts:=}"
-: "${useconfigure:=false}"
-: "${depends:=}"
-: "${patchlevel:=1}"
-: "${auth_type:=}"
-: "${auth_import_key:=}"
-: "${auth_opts:=}"
-: "${launcher_name:=}"
-: "${launcher_category:=}"
-: "${launcher_command:=}"
-: "${launcher_run_in_terminal:=false}"
-: "${icon_file:=}"
run_nocd() {
echo "+ $@ (nocd)"