diff options
Diffstat (limited to 'dev-lua/mpack')
-rw-r--r-- | dev-lua/mpack/Manifest | 1 | ||||
-rw-r--r-- | dev-lua/mpack/mpack-1.0.3.ebuild | 43 |
2 files changed, 44 insertions, 0 deletions
diff --git a/dev-lua/mpack/Manifest b/dev-lua/mpack/Manifest index c63f696443d0..9548a14c58f2 100644 --- a/dev-lua/mpack/Manifest +++ b/dev-lua/mpack/Manifest @@ -1 +1,2 @@ DIST mpack-1.0.2.tar.gz 44671 SHA256 9c570b2aab81b0c56d97cbd8fc483dc431b69510fd9becb4a1845291563e8bc9 SHA512 307ae26799e59224dd624d1f5473c86d5cf975155c58b7ccfd17be98321afb0f7235d06a7a2c50112d4630b3cc7c185c9b307007be5cdbd792819ec2991fa3d2 WHIRLPOOL b5461701898d3e8ab72c92f8d75c4b098986821a3cba281e82a15e495ee4ac2a9efddbd61c542dc3f3cb0cb45f18362652b102dfa8bae690d6c8f4b1b3261911 +DIST mpack-1.0.3.tar.gz 45720 SHA256 65eb21cfa9313204ac5296e3b305d752b8422c724b6375caecc6385f0a6d6e22 SHA512 3024d2830d83a7572a648ee6074467e2096dc6af7c92aaf3c6531e4c25c1c57d9853a60f5b2d1f50039ceeb80bae83f8fdc7241fa48f789cb636bba32fc2a9ba WHIRLPOOL 7b79463f4912eba45e65a2bf24ef0dd7787f781333a3bd559e46999277abf96995cef3ac5d3f14e176f89a61062cb0049d4c6f3e93d6d5a6ddf1fc1a09c5a7f0 diff --git a/dev-lua/mpack/mpack-1.0.3.ebuild b/dev-lua/mpack/mpack-1.0.3.ebuild new file mode 100644 index 000000000000..c2d6be191206 --- /dev/null +++ b/dev-lua/mpack/mpack-1.0.3.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2016 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 +} |