diff options
author | Ismael Luceno | 2021-02-13 18:35:48 +0100 |
---|---|---|
committer | Ismael Luceno | 2021-02-13 19:02:43 +0100 |
commit | 217f1108f14e135085ccaa9a85fe3596514e85b5 (patch) | |
tree | ab44e7be8fd5b53d6668263de149f00245b5d045 /ftp | |
parent | d523cfc301c17731bde576b86a0cea5f30dcade2 (diff) |
Add improved vdepends implementation
Example:
LANGS="ADA,FORTRAN" LANGFLAGS="--enable-ada --enable-fortran"
vdepends << EOF
gcc[$LANGS] >= 6.0 < 7.0 flags: $LANGFLAGS
binutils[LIBERTY] >= 2.35 flags: --with-liberty
EOF
This changes the format and adds support for:
- chained comparisons
- sub-dependencies
- comment lines
Now the check is done against the grimoire version of the spell too, to
avoid casting a spell that can't satisfy the dependency.
Diffstat (limited to 'ftp')
-rwxr-xr-x | ftp/rtorrent/DEPENDS | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ftp/rtorrent/DEPENDS b/ftp/rtorrent/DEPENDS index 888fe448b6..e7cbddb4c0 100755 --- a/ftp/rtorrent/DEPENDS +++ b/ftp/rtorrent/DEPENDS @@ -1,5 +1,4 @@ -. $GRIMOIRE/FUNCTIONS - +. "$GRIMOIRE"/VDEPENDS && vdepends << ! && libtorrent >= 0.12.9 ! |