summaryrefslogtreecommitdiff
blob: 9b6e16a782b11d0a7ed59106f9134bb724efe778 (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
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lua/messagepack/messagepack-0.3.2.ebuild,v 1.1 2015/02/26 05:33:29 yngwin Exp $

EAPI=5
inherit toolchain-funcs

DESCRIPTION="A pure Lua implementation of the MessagePack serialization format"
HOMEPAGE="http://fperrad.github.io/lua-MessagePack/"
SRC_URI="http://dev.gentoo.org/~yngwin/distfiles/lua-${P}.tar.xz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+luajit"

RDEPEND="luajit? ( dev-lang/luajit:2 )
	!luajit? ( dev-lang/lua:= )"
DEPEND="${RDEPEND}
	virtual/pkgconfig"

src_install() {
	local lua=lua
	use luajit && lua=luajit
	insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD ${lua})"
	doins src/MessagePack.lua
	dodoc CHANGES README.md
}