public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Vadim A. Misbakh-Soloviov" <mva@mva.name>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/lua:master commit in: dev-lua/mpack/
Date: Thu,  2 Nov 2017 06:39:16 +0000 (UTC)	[thread overview]
Message-ID: <1509604748.7d2d2c2b9a37599f0259f579ac1d97bfc93f12e1.mva@gentoo> (raw)

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"
+}


             reply	other threads:[~2017-11-02  6:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-02  6:39 Vadim A. Misbakh-Soloviov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-11-02 19:47 [gentoo-commits] proj/lua:master commit in: dev-lua/mpack/ Vadim A. Misbakh-Soloviov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1509604748.7d2d2c2b9a37599f0259f579ac1d97bfc93f12e1.mva@gentoo \
    --to=mva@mva.name \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox