diff options
author | Aric Belsito <lluixhi@gmail.com> | 2017-02-05 22:58:50 -0800 |
---|---|---|
committer | Michael Palimaka <kensington@gentoo.org> | 2017-02-11 22:36:50 +1100 |
commit | 1445b44d6909745e8725513447d7f193a2a2baf9 (patch) | |
tree | c5bd2ae46ee3f4572e79710518a779366c70b23d /dev-lua/mpack/mpack-1.0.4.ebuild | |
parent | app-emulation/vagrant: loosen dep on dev-ruby/childprocess (diff) | |
download | gentoo-1445b44d6909745e8725513447d7f193a2a2baf9.tar.gz gentoo-1445b44d6909745e8725513447d7f193a2a2baf9.tar.bz2 gentoo-1445b44d6909745e8725513447d7f193a2a2baf9.zip |
dev-lua/mpack: version bump to 1.0.4
Diffstat (limited to 'dev-lua/mpack/mpack-1.0.4.ebuild')
-rw-r--r-- | dev-lua/mpack/mpack-1.0.4.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/dev-lua/mpack/mpack-1.0.4.ebuild b/dev-lua/mpack/mpack-1.0.4.ebuild new file mode 100644 index 000000000000..df76ec53639a --- /dev/null +++ b/dev-lua/mpack/mpack-1.0.4.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit toolchain-funcs + +DESCRIPTION="Lua bindings for libmpack" +HOMEPAGE="https://github.com/tarruda/libmpack/" +SRC_URI="https://github.com/tarruda/libmpack/archive/${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/libmpack-${PV}/binding/lua" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="luajit test" + +RDEPEND="!luajit? ( >=dev-lang/lua-5.1:= ) + luajit? ( dev-lang/luajit:2= )" +DEPEND="${RDEPEND} + virtual/pkgconfig + test? ( dev-lua/busted )" + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + USE_SYSTEM_LUA=yes \ + LUA_INCLUDE="$($(tc-getPKG_CONFIG) --cflags $(usex luajit 'luajit' 'lua'))" \ + LUA_LIB="$($(tc-getPKG_CONFIG) --libs $(usex luajit 'luajit' 'lua'))" +} + +src_test() { + busted -o gtest test.lua || die +} + +src_install() { + emake \ + DESTDIR="${D}" \ + USE_SYSTEM_LUA=yes \ + LUA_CMOD_INSTALLDIR="$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD $(usex luajit 'luajit' 'lua'))" \ + install +} |