stetre / moonlibs

Lua libraries for graphics and audio programming
221 stars 11 forks source link

LuaRocks support #3

Open iongion opened 6 years ago

iongion commented 6 years ago

Can the libraries be pushed to this dependency manager called luarocks ? Example: https://github.com/starwing/lua-nanovg/blob/master/rockspecs/glfw-0.1.1-1.rockspec

stetre commented 6 years ago

Hi, I am not that familiar with LuaRocks. Every once in a while I tell myself that I should push there the libraries, but when I start reading the documentation I get soon lost and start thinking "how should this be easier than just git clone + make + make install?". Is there any real advantage that I don't see in using it, other than reserving the library names?

iongion commented 6 years ago

Because it is easy to reuse in other projects as a dependency. Besides this, your glfw implementation looks much more complete than https://github.com/starwing/lua-nanovg/blob/master/rockspecs/glfw-0.1.1-1.rockspec and would be a great improvement for both projects.

stetre commented 6 years ago

Is it really easier? I haven't used it for a while, but when some time ago I tried to install a few things I ran into all sorts of problems. I suspect that the approach of pushing software to a package manager is by itself problematic (usually it is pulled by the maintainers of the platform or distribution served by the package manager, not pushed by the software authors). Not to mention having yet another package manager in coexistence with the native one of the platform being used, like apt on Ubuntu, or pacman on MSYS2.

Frityet commented 1 year ago

Is it really easier? I haven't used it for a while, but when some time ago I tried to install a few things I ran into all sorts of problems. I suspect that the approach of pushing software to a package manager is by itself problematic (usually it is pulled by the maintainers of the platform or distribution served by the package manager, not pushed by the software authors). Not to mention having yet another package manager in coexistence with the native one of the platform being used, like apt on Ubuntu, or pacman on MSYS2.

It absolutly is easier, just one command to install packages luarocks install moonnuklear, etc, makes using these libraries wayyy easier

Frityet commented 1 year ago

I created this github organisation to make these libraries use LuaRocks

stetre commented 1 year ago

I created this github organisation to make these libraries use LuaRocks

That's fine with me. After all, it's in the spirit of my last comment: if anyone wants to package the libraries for distribution with its preferred package manager (be it LuaRocks or a OS specific one), he/she is free to pull them and do it. I don't want to do it personally, but I surely appreciate the effort.

When you think the project is in a usable state, let me know and I'll reference it in the manual page.