diff options
author | Mike Gilbert <floppym@gentoo.org> | 2020-11-03 12:43:03 -0500 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2020-11-03 12:43:51 -0500 |
commit | 7b894054de3e9a3a0fc97f174f8a3bde8456a2c8 (patch) | |
tree | ef31796a28774931c9ca2ceac7811e5d4e77b2a0 | |
parent | fdo-mime.eclass: Mark @DEAD for removal (diff) | |
download | gentoo-7b894054de3e9a3a0fc97f174f8a3bde8456a2c8.tar.gz gentoo-7b894054de3e9a3a0fc97f174f8a3bde8456a2c8.tar.bz2 gentoo-7b894054de3e9a3a0fc97f174f8a3bde8456a2c8.zip |
dev-lua/lutok: port to lua-single eclass
Closes: https://bugs.gentoo.org/752660
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
-rw-r--r-- | dev-lua/lutok/lutok-0.4-r10.ebuild | 44 | ||||
-rw-r--r-- | profiles/package.mask | 1 |
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-lua/lutok/lutok-0.4-r10.ebuild b/dev-lua/lutok/lutok-0.4-r10.ebuild new file mode 100644 index 000000000000..3421f02ed814 --- /dev/null +++ b/dev-lua/lutok/lutok-0.4-r10.ebuild @@ -0,0 +1,44 @@ +# Copyright 2017-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +LUA_COMPAT=( luajit lua5-{1..4} ) + +inherit lua-single + +DESCRIPTION="Lightweight C++ API library for Lua" +HOMEPAGE="https://github.com/jmmv/lutok" +SRC_URI="https://github.com/jmmv/lutok/releases/download/${P}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND=" + virtual/pkgconfig + test? ( + dev-libs/atf + dev-util/kyua + ) +" +DEPEND="${LUA_DEPS}" +RDEPEND="${DEPEND}" + +pkg_setup() { + : +} + +src_configure() { + lua_setup + lua_get_CFLAGS >/dev/null + lua_get_LIBS >/dev/null + econf --enable-shared --disable-static +} + +src_install() { + default + rm -rf "${ED}"/usr/tests || die + find "${ED}" -name '*.la' -type f -delete || die +} diff --git a/profiles/package.mask b/profiles/package.mask index a720b3866b5b..8c61be3dce71 100644 --- a/profiles/package.mask +++ b/profiles/package.mask @@ -222,6 +222,7 @@ dev-lua/luacrypto >=app-misc/worker-3.8.3-r100 >=dev-lua/luv-1.32.0.0-r100 >=dev-lua/luadbi-0.7.2-r100 +>=dev-lua/lutok-0.4-r10 >=dev-lua/messagepack-0.3.2-r100 >=dev-lua/toluapp-1.0.93_p20190513-r100 >=games-engines/love-0.7.2-r100:0.7 |