public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/lua:master commit in: dev-lua/mpack/
@ 2017-11-02  6:39 Vadim A. Misbakh-Soloviov
  0 siblings, 0 replies; 2+ messages in thread
From: Vadim A. Misbakh-Soloviov @ 2017-11-02  6:39 UTC (permalink / raw
  To: gentoo-commits

commit:     7d2d2c2b9a37599f0259f579ac1d97bfc93f12e1
Author:     Vadim A. Misbakh-Soloviov <git <AT> mva <DOT> name>
AuthorDate: Thu Nov  2 06:39:08 2017 +0000
Commit:     Vadim A. Misbakh-Soloviov <mva <AT> mva <DOT> name>
CommitDate: Thu Nov  2 06:39:08 2017 +0000
URL:        https://gitweb.gentoo.org/proj/lua.git/commit/?id=7d2d2c2b

mpack: ported from the tree (fixed build and installation)

 dev-lua/mpack/Manifest           |  1 +
 dev-lua/mpack/metadata.xml       | 19 +++++++++++
 dev-lua/mpack/mpack-1.0.4.ebuild | 72 ++++++++++++++++++++++++++++++++++++++++
 3 files changed, 92 insertions(+)

diff --git a/dev-lua/mpack/Manifest b/dev-lua/mpack/Manifest
new file mode 100644
index 0000000..f5e1bec
--- /dev/null
+++ b/dev-lua/mpack/Manifest
@@ -0,0 +1 @@
+DIST mpack-1.0.4.tar.gz 46382 SHA256 0a5d69f3966b31d14faddbd81db53b543fb092c711250ecb0aa5e22d060aa080 SHA512 8e40a562faf8b62137dec0733cbb9006fa7054e5a47bdd128fb4dfd676fac4e4385a23c3d908a4ce2edd65d673db25916695fa74bc08c5316b0c80e571a7442c WHIRLPOOL bd538133a3b5f3723ad8c2c2193821971c0a0d7f4959265309c694db3b0cded7e350fde58b3fe90fd57564e7c9de9ca9f0efc495faec3af12ebba463dffd3e3f

diff --git a/dev-lua/mpack/metadata.xml b/dev-lua/mpack/metadata.xml
new file mode 100644
index 0000000..3fbadc7
--- /dev/null
+++ b/dev-lua/mpack/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>lluixhi@gmail.com</email>
+		<name>Aric Belsito</name>
+	</maintainer>
+	<maintainer type="project">
+		<email>proxy-maint@gentoo.org</email>
+		<name>Proxy Maintainers</name>
+	</maintainer>
+	<use>
+		<flag name="luajit">Use <pkg>dev-lang/luajit</pkg> instead of
+			<pkg>dev-lang/lua</pkg></flag>
+	</use>
+	<upstream>
+		<remote-id type="github">tarruda/libmpack</remote-id>
+	</upstream>
+</pkgmetadata>

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 0000000..a9b7d1b
--- /dev/null
+++ b/dev-lua/mpack/mpack-1.0.4.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+GITHUB_A="tarruda"
+GITHUB_PN="libmpack"
+
+inherit lua
+
+DESCRIPTION="Lua bindings for libmpack"
+HOMEPAGE="https://github.com/tarruda/libmpack/"
+
+#S="${WORKDIR}/all/libmpack-${PV}/binding/lua"
+LUA_S="libmpack-${PV}/binding/lua"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~arm ~arm64"
+IUSE="luajit test"
+
+RDEPEND="
+	|| (
+		virtual/lua[luajit=]
+		!luajit? (
+			|| (
+				( virtual/lua dev-lang/lua:5.1 )
+				>=dev-lang/lua-5.1:0
+			)
+		)
+		luajit? (
+			|| (
+				virtual/lua[luajit]
+				>=dev-lang/luajit-2
+			)
+		)
+	)
+"
+DEPEND="
+	${RDEPEND}
+	virtual/pkgconfig
+	test? ( dev-lua/busted )
+"
+
+each_lua_prepare() {
+	sed \
+		-e '/^LUA_/d' \
+		-i Makefile
+	if lua_is_jit; then
+		sed \
+			-e '1i#define luaL_reg luaL_Reg' \
+			-i "${S}/lmpack.c"
+	fi
+}
+
+each_lua_compile() {
+	local myemakeargs=(
+		USE_SYSTEM_LUA=yes
+#		LUA_INCLUDE="$(lua_get_incdir)"
+#		LUA_LIB=""
+		# ^ lua modules shouldn't ever link against liblua
+	)
+	lua_default
+}
+
+each_lua_test() {
+	${LUA} ${EROOT}/usr/bin/busted -o gtest test.lua || die
+}
+
+each_lua_install() {
+	dolua "${PN}.so"
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] proj/lua:master commit in: dev-lua/mpack/
@ 2017-11-02 19:47 Vadim A. Misbakh-Soloviov
  0 siblings, 0 replies; 2+ messages in thread
From: Vadim A. Misbakh-Soloviov @ 2017-11-02 19:47 UTC (permalink / raw
  To: gentoo-commits

commit:     51e0b41f2baff035e5c37c75d45c381fa006e0ff
Author:     Vadim A. Misbakh-Soloviov <git <AT> mva <DOT> name>
AuthorDate: Thu Nov  2 19:47:49 2017 +0000
Commit:     Vadim A. Misbakh-Soloviov <mva <AT> mva <DOT> name>
CommitDate: Thu Nov  2 19:47:49 2017 +0000
URL:        https://gitweb.gentoo.org/proj/lua.git/commit/?id=51e0b41f

mpack: some cleanup in ebuild

 dev-lua/mpack/mpack-1.0.4.ebuild | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/dev-lua/mpack/mpack-1.0.4.ebuild b/dev-lua/mpack/mpack-1.0.4.ebuild
index a9b7d1b..c6ba6f3 100644
--- a/dev-lua/mpack/mpack-1.0.4.ebuild
+++ b/dev-lua/mpack/mpack-1.0.4.ebuild
@@ -43,10 +43,13 @@ DEPEND="
 "
 
 each_lua_prepare() {
+	# fixed in git HEAD
 	sed \
 		-e '/^LUA_/d' \
 		-i Makefile
+
 	if lua_is_jit; then
+		# fixed in git HEAD
 		sed \
 			-e '1i#define luaL_reg luaL_Reg' \
 			-i "${S}/lmpack.c"
@@ -56,9 +59,7 @@ each_lua_prepare() {
 each_lua_compile() {
 	local myemakeargs=(
 		USE_SYSTEM_LUA=yes
-#		LUA_INCLUDE="$(lua_get_incdir)"
-#		LUA_LIB=""
-		# ^ lua modules shouldn't ever link against liblua
+		MPACK_LUA_VERSION_NOPATCH="$(lua_get_abi)"
 	)
 	lua_default
 }


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-11-02 19:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-02  6:39 [gentoo-commits] proj/lua:master commit in: dev-lua/mpack/ Vadim A. Misbakh-Soloviov
  -- strict thread matches above, loose matches on Subject: below --
2017-11-02 19:47 Vadim A. Misbakh-Soloviov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox