Using lua and luajit.

Jan Beich jbeich at FreeBSD.org
Thu Nov 9 16:46:21 UTC 2017


Gleb Popov <6yearold at gmail.com> writes:

> Another question is how to handle lua packages that can work with different
> lua versions (like py27- and py36- ports, for instance). The example of
> such port is devel/lua-Penlight, as you can see it is basically a bunch of
> .lua files, which I decided to install everything into lua/5.1/ subdir.
> What's proper way to handle this?

I've used PKGNAMEPREFIX=${LUA_PKGNAMEPREFIX} + USES=uniquefiles:dirs in my
effort to port Torch7 a few years ago. Maybe you can salvage some bits.

https://github.com/jbeich/freebsd-ports/blob/torch/devel/lua-penlight/Makefile


More information about the freebsd-ports mailing list