blob: 44db086f4fa53ad6f68cb83171369f4db1c83606 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
LANGS=( "en" "ru" )
VCS=git-r3
IS_MULTILIB=true
inherit lua
DESCRIPTION="Lua Crypto Library"
HOMEPAGE="https://github.com/msva/lua-crypto"
SRC_URI=""
EGIT_REPO_URI="https://github.com/msva/lua-crypto.git"
LICENSE="MIT"
SLOT="0"
KEYWORDS=""
IUSE="doc +openssl gcrypt linguas_en linguas_ru"
RDEPEND="
openssl? ( >=dev-libs/openssl-0.9.7 )
gcrypt? ( dev-libs/libgcrypt )
"
REQUIRED_USE="^^ ( openssl gcrypt )"
READMES=( README )
HTML_DOCS=()
all_lua_prepare() {
for x in ${LANGS[@]}; do
if use linguas_${x}; then
HTML_DOCS+=( doc/${x} )
fi
done
}
each_lua_compile() {
local engine="openssl";
if use gcrypt; then
engine="gcrypt"
tc-getPROG GCRYPT_CONFIG libgcrypt-config
fi
lua_default \
LUA_IMPL="${lua_impl}" \
CRYPTO_ENGINE="${engine}" \
GCRYPT_CONFIG="${GCRYPT_CONFIG}"
}
each_lua_install() {
dolua src/crypto.so
}
|