diff options
Diffstat (limited to 'dev-lua/luazen')
| -rw-r--r-- | dev-lua/luazen/Manifest | 1 | ||||
| -rw-r--r-- | dev-lua/luazen/luazen-0.16.ebuild | 55 |
2 files changed, 56 insertions, 0 deletions
diff --git a/dev-lua/luazen/Manifest b/dev-lua/luazen/Manifest new file mode 100644 index 0000000..68cdb5e --- /dev/null +++ b/dev-lua/luazen/Manifest @@ -0,0 +1 @@ +DIST luazen-0.16.tar.gz 109174 BLAKE2B 07c6dfcc9670307241244c29f6f252d0ef27dfcdc0de89cefca58125f3d96d7326e0c55c623033f269e51fbc230152a1d8f64d5d3a5697739083f1e3e1262fb6 SHA512 749c38d00128b22412b2965e9103ad922298c8d08a0c737164c2d24f6e37f266b70235acb9aff6b545363c973515d6bebd1a27d94bff4ed8acffc974dd772179 diff --git a/dev-lua/luazen/luazen-0.16.ebuild b/dev-lua/luazen/luazen-0.16.ebuild new file mode 100644 index 0000000..4b7a543 --- /dev/null +++ b/dev-lua/luazen/luazen-0.16.ebuild @@ -0,0 +1,55 @@ +# +# ~~~ dev-lua/luazen +# +# ~~~ a compression & crypto library for lua +# + +# +# ~~~ metadata + +# portage info +EAPI=8 +SLOT=0 + +KEYWORDS="amd64" + +# info +HOMEPAGE="https://github.com/philanc/luazen/" +DESCRIPTION="A compression & crypto library for Lua" + +# package data +SRC_URI="https://github.com/philanc/luazen/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +# +# ~~~ dependencies + +# lua setup +LUA_COMPAT=( lua5-{3..4} ) + +inherit lua + +REQUIRED_USE="${LUA_REQUIRED_USE}" + +DEPEND="${LUA_DEPS}" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +lua_src_compile() { + emake LUAINC="-I$(lua_get_include_dir)" + echo $(lua_get_cmod_dir) +} + +src_compile() { + lua_foreach_impl lua_src_compile +} + +lua_src_install() { + insinto $(lua_get_cmod_dir) + + doins luazen.a + doins luazen.so +} + +src_install() { + lua_foreach_impl lua_src_install +} |
