summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2020-11-23 22:36:42 +0100
committerConrad Kostecki <conikost@gentoo.org>2020-11-23 22:37:58 +0100
commit3d58bafcacd3161785b3e9c4f48b267a5835cda5 (patch)
tree8163eb1ed71541e68e2e3fad4df21b7d6a7edf84 /dev-lua
parentdev-lua/luafilesystem: migrate to lua eclass (diff)
downloadgentoo-3d58bafcacd3161785b3e9c4f48b267a5835cda5.tar.gz
gentoo-3d58bafcacd3161785b3e9c4f48b267a5835cda5.tar.bz2
gentoo-3d58bafcacd3161785b3e9c4f48b267a5835cda5.zip
dev-lua/luafilesystem: update ebuild
Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'dev-lua')
-rw-r--r--dev-lua/luafilesystem/luafilesystem-1.8.0-r1.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/dev-lua/luafilesystem/luafilesystem-1.8.0-r1.ebuild b/dev-lua/luafilesystem/luafilesystem-1.8.0-r1.ebuild
new file mode 100644
index 000000000000..a1dd2af7610c
--- /dev/null
+++ b/dev-lua/luafilesystem/luafilesystem-1.8.0-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+MY_PV=${PV//./_}
+
+DESCRIPTION="File System Library for the Lua programming language"
+HOMEPAGE="https://keplerproject.github.io/luafilesystem/"
+SRC_URI="https://github.com/keplerproject/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="luajit test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ >=dev-lang/lua-5.1:0
+ luajit? ( dev-lang/luajit:2 )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ virtual/pkgconfig
+ test? ( ${RDEPEND} )
+"
+
+HTML_DOCS=( "doc/us/." )
+
+src_prepare() {
+ default
+
+ cat > "config" <<-EOF
+ CC=$(tc-getCC)
+ CFLAGS=${CFLAGS} -I$($(tc-getPKG_CONFIG) --variable includedir $(usex luajit 'luajit' 'lua')) -fPIC
+ DESTDIR=${ED}
+ LIB_OPTION=${LDFLAGS} -shared
+ LUA_LIBDIR=$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD $(usex luajit 'luajit' 'lua'))
+ EOF
+}
+
+src_test() {
+ LUA_CPATH="src/lfs.so" lua tests/test.lua || die
+}