mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-02 22:24:26 +00:00
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.
This commit is contained in:
parent
52e9f25403
commit
e507cfcdb0
|
@ -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)"
|
||||
|
|
Loading…
Reference in a new issue