1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit eutils toolchain-funcs multilib
9 DESCRIPTION="Takes node.js' architecture and dependencies and fits it in the Lua language"
10 HOMEPAGE="http://luvit.io/"
11 SRC_URI="http://${PN}.io/dist/${PV}/${P}.tar.gz"
13 KEYWORDS="~amd64 ~x86"
16 LICENSE="Apache-2.0 MIT"
18 # fails in portage environment
19 # succeeds if run manually
22 RDEPEND="dev-lang/luajit:2
25 >=dev-lua/luacrypto-0.3.1
27 =dev-libs/libuv-0.7.6_p20120404
33 epatch "${FILESDIR}"/${PVR}-makefile.patch
36 -e "s:^YAJL_VERSION=.*:YAJL_VERSION=$(pkg-config --modversion yajl):" \
37 -e "s:^LUAJIT_VERSION=.*:LUAJIT_VERSION=$(pkg-config --modversion luajit):" \
38 -e "s:^UV_VERSION=.*:UV_VERSION=0.7.6_p20120404:" \
39 -i Makefile || die "sed failed"
43 # skip python build system
57 LIBDIR=$(get_libdir) \