mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-25 08:58:27 -07:00
28 lines
688 B
Bash
28 lines
688 B
Bash
# Copyright 1999-2015 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=5
|
|
inherit toolchain-funcs
|
|
|
|
DESCRIPTION="A pure Lua implementation of the MessagePack serialization format"
|
|
HOMEPAGE="http://fperrad.github.io/lua-MessagePack/"
|
|
SRC_URI="https://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
|
|
}
|