Ports: Describe in README that 'depends' is an array

The README previously described `depends` as a space-separated
string. This is now changed to an array, which seem to be the
correct type used in the other Ports.
This commit is contained in:
Erlend Lind Madsen 2022-01-07 01:20:50 +01:00 committed by Ali Mohammad Pur
parent c62c10caf0
commit aa6e5e8cdc
Notes: sideshowbarker 2024-07-17 21:29:54 +09:00

View file

@ -106,7 +106,7 @@ port="foo"
version="1.2.3"
useconfigure="true"
files="https://example.com/foo-${version}.tar.gz foo-${version}.tar.gz"
depends="bar baz"
depends=("bar" "baz")
```
The script in the shebang, [`.port_include.sh`](./.port_include.sh), is where
@ -160,8 +160,14 @@ Defaults to `configure`.
#### `depends`
A space-separated list of other SerenityOS ports the port depends on and which
will be installed during the `installdepends` step.
An array of other SerenityOS ports the port depends on and which will be
installed during the `installdepends` step.
For example:
```bash
depends=("ncurses" "gettext")
```
#### `files`