Install this version:
emerge -a =dev-lua/luacrypto-9999
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-lua/luacrypto-9999
Or alternatively:
emerge --autounmask-write -a =dev-lua/luacrypto-9999
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 9999 | 8 | 0 |
# Copyright 2026 mva
# Distributed under the terms of the Public Domain or CC0 License
EAPI=8
LANGS=(en ru)
LUA_COMPAT=( lua{5-{1..4},jit} )
inherit lua git-r3 toolchain-funcs
DESCRIPTION="Lua Crypto Library"
HOMEPAGE="https://github.com/msva/lua-crypto"
EGIT_REPO_URI="https://github.com/msva/lua-crypto"
LICENSE="MIT"
SLOT="0"
IUSE="doc +openssl gcrypt"
for l in ${LANGS[@]}; do
IUSE+=" l10n_${l}"
done
REQUIRED_USE="${LUA_REQUIRED_USE} ^^ ( openssl gcrypt )"
RDEPEND="
${LUA_DEPS}
openssl? ( >=dev-libs/openssl-0.9.7 )
gcrypt? ( dev-libs/libgcrypt )
"
DEPEND="
${RDEPEND}
"
src_prepare() {
for x in ${LANGS[@]}; do
if use l10n_${x}; then
HTML_DOCS+=( doc/${x} )
fi
done
default
lua_copy_sources
}
each_lua_compile() {
pushd "${BUILD_DIR}"
local engine="openssl";
if use gcrypt; then
engine="gcrypt"
tc-getPROG GCRYPT_CONFIG libgcrypt-config
fi
emake \
LUA_IMPL="${ELUA}" \
CRYPTO_ENGINE="${engine}" \
GCRYPT_CONFIG="${GCRYPT_CONFIG}"
popd
}
each_lua_install() {
pushd "${BUILD_DIR}"
insinto "$(lua_get_cmod_dir)"
doins src/crypto.so
popd
}
src_compile() {
lua_foreach_impl each_lua_compile
}
src_install() {
lua_foreach_impl each_lua_install
einstalldocs
}
Manage flags for this package:
euse -i <flag> -p dev-lua/luacrypto |
euse -E <flag> -p dev-lua/luacrypto |
euse -D <flag> -p dev-lua/luacrypto
openssl? ( >=dev-libs/openssl-0.9.7 ) gcrypt? ( dev-libs/libgcrypt )
openssl? ( >=dev-libs/openssl-0.9.7 ) gcrypt? ( dev-libs/libgcrypt )