lua: add fetcher for luarocks (#28707)
This commit is contained in:
parent
427d281d15
commit
165f686400
@ -33,6 +33,7 @@ class Lua(Package):
|
|||||||
variant("pcfile", default=False, description="Add patch for lua.pc generation")
|
variant("pcfile", default=False, description="Add patch for lua.pc generation")
|
||||||
variant('shared', default=True,
|
variant('shared', default=True,
|
||||||
description='Builds a shared version of the library')
|
description='Builds a shared version of the library')
|
||||||
|
variant('fetcher', default='curl', values=('curl', 'wget'), description='Fetcher to use in the LuaRocks package manager')
|
||||||
|
|
||||||
extendable = True
|
extendable = True
|
||||||
|
|
||||||
@ -43,6 +44,11 @@ class Lua(Package):
|
|||||||
# luarocks needs unzip for some packages (e.g. lua-luaposix)
|
# luarocks needs unzip for some packages (e.g. lua-luaposix)
|
||||||
depends_on('unzip', type='run')
|
depends_on('unzip', type='run')
|
||||||
|
|
||||||
|
# luarocks needs a fetcher (curl/wget), unfortunately I have not found
|
||||||
|
# how to force a choice for curl or wget, but curl seems the default.
|
||||||
|
depends_on('curl', when='fetcher=curl', type='run')
|
||||||
|
depends_on('wget', when='fetcher=wget', type='run')
|
||||||
|
|
||||||
patch(
|
patch(
|
||||||
"http://lua.2524044.n2.nabble.com/attachment/7666421/0/pkg-config.patch",
|
"http://lua.2524044.n2.nabble.com/attachment/7666421/0/pkg-config.patch",
|
||||||
sha256="208316c2564bdd5343fa522f3b230d84bd164058957059838df7df56876cb4ae",
|
sha256="208316c2564bdd5343fa522f3b230d84bd164058957059838df7df56876cb4ae",
|
||||||
|
Loading…
Reference in New Issue
Block a user