Request: a way to specify alternatives in pkgconfig-depends
Open
Cabal: cmd/build
re: pkg-config
type: enhancement
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
Some packages, specifically Lua, do not have a standard name in for pkg-config. Lua 5.1 could be one of lua51, lua5.1, lua-5.1, or lua. It would be nice to have an "or" feature in pkgconfig-depends so you could specify that as something like:
pkgconfig-depends: lua51 || lua5.1 || lua-5.1 || (lua >= 5.1, lua < 5.2)
The last example in https://autotools.io/pkgconfig/pkg_check_modules.html shows how to accomplish this using autoconf.
Contributor guide
Assessment
This issue has not been assessed yet.