diff options
Diffstat (limited to 'dev-lua/messagepack/messagepack-0.3.2.ebuild')
-rw-r--r-- | dev-lua/messagepack/messagepack-0.3.2.ebuild | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dev-lua/messagepack/messagepack-0.3.2.ebuild b/dev-lua/messagepack/messagepack-0.3.2.ebuild new file mode 100644 index 0000000..31c329b --- /dev/null +++ b/dev-lua/messagepack/messagepack-0.3.2.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +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 + emake LUAVER="$($(tc-getPKG_CONFIG) --variable V ${lua})" \ + PREFIX="${EPREFIX}"/usr DESTDIR="${D}" install + dodoc CHANGES README.md +} |