public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Conrad Kostecki" <conikost@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/mpack/
Date: Sun, 29 Nov 2020 18:49:31 +0000 (UTC)	[thread overview]
Message-ID: <1606675704.a5e71f61c7db2fa458cffa6571e4f11de7cbc6a3.conikost@gentoo> (raw)

commit:     a5e71f61c7db2fa458cffa6571e4f11de7cbc6a3
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 29 18:35:07 2020 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Sun Nov 29 18:48:24 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5e71f61

dev-lua/mpack: bump to version 1.0.8 (slotted lua)

Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 dev-lua/mpack/Manifest                |  1 +
 dev-lua/mpack/metadata.xml            |  7 ++-
 dev-lua/mpack/mpack-1.0.8-r100.ebuild | 97 +++++++++++++++++++++++++++++++++++
 3 files changed, 103 insertions(+), 2 deletions(-)

diff --git a/dev-lua/mpack/Manifest b/dev-lua/mpack/Manifest
index 34119b47d3b..8b7ebcc7d5b 100644
--- a/dev-lua/mpack/Manifest
+++ b/dev-lua/mpack/Manifest
@@ -1 +1,2 @@
 DIST mpack-1.0.4.tar.gz 46382 BLAKE2B 5092830e1a970ad96686ede4d96833a210543418cb23f218ba774bfd724267344f9e44e367490bb33dae8023e1145202ea6e457be7753a426eae990df906547d SHA512 8e40a562faf8b62137dec0733cbb9006fa7054e5a47bdd128fb4dfd676fac4e4385a23c3d908a4ce2edd65d673db25916695fa74bc08c5316b0c80e571a7442c
+DIST mpack-1.0.8.tar.gz 15616 BLAKE2B 06593296d1d36459127bf35eaeb37c894a0c0c6ccff0969cd0a82bee1920a715801db26f0ba0bc54a56399d07efc262666ee4ce79878288a5c0221fd27febea1 SHA512 6d21cc6bbdee583a1d808742991459e4b1796f347b2f4eaa747b576f5bb1ca989123339120e43246bac859c20e6f46ac57116ce9f135157256fecbd8cf817f75

diff --git a/dev-lua/mpack/metadata.xml b/dev-lua/mpack/metadata.xml
index efac9884a41..c3e9e12ed26 100644
--- a/dev-lua/mpack/metadata.xml
+++ b/dev-lua/mpack/metadata.xml
@@ -1,8 +1,11 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-	<!-- maintainer-needed -->
+	<maintainer type="person">
+		<email>conikost@gentoo.org</email>
+		<name>Conrad Kostecki</name>
+	</maintainer>
 	<upstream>
-		<remote-id type="github">libmpack/libmpack</remote-id>
+		<remote-id type="github">libmpack/libmpack-lua</remote-id>
 	</upstream>
 </pkgmetadata>

diff --git a/dev-lua/mpack/mpack-1.0.8-r100.ebuild b/dev-lua/mpack/mpack-1.0.8-r100.ebuild
new file mode 100644
index 00000000000..6bc69d68ebf
--- /dev/null
+++ b/dev-lua/mpack/mpack-1.0.8-r100.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-{1..3} luajit )
+MY_PN="lib${PN}-lua"
+
+inherit lua toolchain-funcs
+
+DESCRIPTION="Lua bindings for libmpack"
+HOMEPAGE="https://github.com/libmpack/libmpack/"
+SRC_URI="https://github.com/${MY_PN/-lua/}/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+	dev-libs/libmpack
+	${LUA_DEPS}
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+	virtual/pkgconfig
+	test? (
+		>=dev-lua/busted-2.0.0-r100[${LUA_USEDEP}]
+		${RDEPEND}
+	)
+"
+
+src_prepare() {
+	default
+
+	lua_copy_sources
+}
+
+lua_src_compile() {
+	pushd "${BUILD_DIR}" || die
+
+	local myemakeargs=(
+		"CC=$(tc-getCC)"
+		"LUA_INCLUDE=$(lua_get_CFLAGS)"
+		"LUA_LIB="
+		"USE_SYSTEM_MPACK=yes"
+		"USE_SYSTEM_LUA=yes"
+	)
+
+	emake "${myemakeargs[@]}"
+
+	popd
+}
+
+src_compile() {
+	lua_foreach_impl lua_src_compile
+}
+
+lua_src_test() {
+	# "[  FAILED  ] test.lua @ 279: mpack should not leak memory"
+	# It doesn't seem upstream actually support LuaJIT so were this up to me
+	# I would drop it from LUA_COMPAT, unfortunately there are packages in the
+	# tree which currently expect it to be supported.
+	if [[ ${ELUA} == "luajit" ]]; then
+		ewarn "Not running tests under ${ELUA} because they are known to fail"
+		return
+	fi
+
+	busted --lua="${ELUA}" test.lua || die
+}
+
+src_test() {
+	lua_foreach_impl lua_src_test
+}
+
+lua_src_install() {
+	pushd "${BUILD_DIR}" || die
+
+	local myemakeargs=(
+		"DESTDIR=${ED}"
+		"LUA_CMOD_INSTALLDIR=$(lua_get_cmod_dir)"
+		"USE_SYSTEM_MPACK=yes"
+		"USE_SYSTEM_LUA=yes"
+	)
+
+	emake "${myemakeargs[@]}" install
+
+	popd
+}
+
+src_install() {
+	lua_foreach_impl lua_src_install
+
+	einstalldocs
+}


             reply	other threads:[~2020-11-29 18:49 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-29 18:49 Conrad Kostecki [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-06-22 20:01 [gentoo-commits] repo/gentoo:master commit in: dev-lua/mpack/ Conrad Kostecki
2024-04-03  9:14 Arthur Zamarin
2024-04-03  9:14 Arthur Zamarin
2024-04-03  5:02 Sam James
2024-02-29 16:48 Matt Turner
2024-02-08 23:43 Conrad Kostecki
2024-02-08 23:43 Conrad Kostecki
2023-11-12  5:56 Arthur Zamarin
2023-11-12  4:24 Sam James
2023-11-12  2:34 Sam James
2023-10-10 23:35 Conrad Kostecki
2023-10-10 23:35 Conrad Kostecki
2023-08-05 22:41 Conrad Kostecki
2023-04-20  5:01 Sam James
2023-04-20  4:17 Sam James
2023-04-20  4:02 Sam James
2023-03-19 22:12 Conrad Kostecki
2022-07-15  7:40 Sam James
2021-11-07 12:37 Conrad Kostecki
2021-11-07 12:37 Conrad Kostecki
2021-11-07 12:37 Conrad Kostecki
2021-10-11 13:47 Yixun Lan
2021-10-06 10:50 Conrad Kostecki
2021-10-06 10:50 Conrad Kostecki
2021-06-27 20:03 Aaron Bauman
2021-06-02 22:07 Conrad Kostecki
2021-04-22 19:31 Sergei Trofimovich
2021-04-21 21:03 Conrad Kostecki
2021-04-21 20:44 Conrad Kostecki
2021-04-21 20:29 Conrad Kostecki
2021-04-20 21:20 Sergei Trofimovich
2021-03-16 17:37 Conrad Kostecki
2021-03-05  8:58 Conrad Kostecki
2021-01-25 17:38 Marek Szuba
2020-12-03 13:50 Marek Szuba
2020-12-01 10:18 Conrad Kostecki
2020-12-01 10:18 Conrad Kostecki
2020-11-29 21:41 Marek Szuba
2020-11-29 21:41 Marek Szuba
2020-11-29 18:49 Conrad Kostecki
2020-07-20  9:01 Joonas Niilola
2019-04-20 19:01 Mikle Kolyada
2018-07-07 12:15 Jonas Stein
2018-01-05 11:18 Patrice Clement
2018-01-05 11:18 Patrice Clement
2017-03-16 10:27 Michael Palimaka
2017-02-11 11:37 Michael Palimaka
2016-10-21 21:00 Michael Palimaka
2016-04-21 19:45 Patrice Clement

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=1606675704.a5e71f61c7db2fa458cffa6571e4f11de7cbc6a3.conikost@gentoo \
    --to=conikost@gentoo.org \
    --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