summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2020-11-03 12:43:03 -0500
committerMike Gilbert <floppym@gentoo.org>2020-11-03 12:43:51 -0500
commit7b894054de3e9a3a0fc97f174f8a3bde8456a2c8 (patch)
treeef31796a28774931c9ca2ceac7811e5d4e77b2a0 /dev-lua
parentfdo-mime.eclass: Mark @DEAD for removal (diff)
downloadgentoo-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>
Diffstat (limited to 'dev-lua')
-rw-r--r--dev-lua/lutok/lutok-0.4-r10.ebuild44
1 files changed, 44 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
+}