1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:27:45 +00:00

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

View file

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