1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit multilib multilib-minimal flag-o-matic
8 DESCRIPTION="Networking support library for the Lua language"
9 HOMEPAGE="http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/"
10 SRC_URI="https://github.com/diegonehab/${PN}/archive/v${PV/_/-}.tar.gz -> ${P}.tar.gz"
14 KEYWORDS="amd64 arm ~arm64 hppa ~mips ppc ppc64 sparc x86"
17 RDEPEND=">=dev-lang/lua-5.1.5-r2[deprecated,${MULTILIB_USEDEP}]"
19 >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]"
21 S=${WORKDIR}/${PN}-${PV/_/-}
29 multilib_src_compile() {
31 CC="$(tc-getCC) ${CFLAGS}" \
32 LD="$(tc-getCC) ${LDFLAGS}"\
33 $(usex debug DEBUG="DEBUG" "")
36 multilib_src_install() {
37 local luav=$($(tc-getPKG_CONFIG) --variable V lua)
40 LUAPREFIX_linux=/usr \
42 CDIR_linux=$(get_libdir)/lua/${luav} \
46 multilib_src_install_all() {