# Copyright 2014 Alexander Scheuermann # Distributed under the terms of the GNU General Public License v2 require \ github [ user=brunoos tag=v${PV} ] \ lua [ multiunpack=true whitelist="5.1 5.2 5.3 5.4" ] \ flag-o-matic SUMMARY="OpenSSL library binding to provide TLS/SSL communication" HOMEPAGE="https://github.com/brunoos/luasec" LICENCES="MIT" SLOT="0" PLATFORMS="~amd64" MYOPTIONS="( providers: libressl openssl ) [[ number-selected = exactly-one ]]" DEPENDENCIES=" build+run: dev-lua/luasocket[lua_abis:*(-)?] providers:libressl? ( dev-libs/libressl:= ) providers:openssl? ( dev-libs/openssl:=[>=1.0.2] ) " DEFAULT_SRC_COMPILE_PARAMS=( linux ) prepare_one_multibuild() { default append-flags -I /usr/$(exhost --target)/include/lua$(lua_get_abi) edo cd src edo lua options.lua -g /usr/$(exhost --target)/include/openssl/ssl.h > options.c } compile_one_multibuild() { emake "${DEFAULT_SRC_COMPILE_PARAMS[@]}" } install_one_multibuild() { emake install LUAPATH="${IMAGE}"$(lua_get_sharedir) \ LUACPATH="${IMAGE}"$(lua_get_libdir) emagicdocs }