public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-lua/luasystem/files/, dev-lua/luasystem/
@ 2016-07-12 18:59 William Hubbs
  0 siblings, 0 replies; 2+ messages in thread
From: William Hubbs @ 2016-07-12 18:59 UTC (permalink / raw
  To: gentoo-commits

commit:     98ff4ba917deae6d6eb06aacd92c2ddb9db6d032
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Fri Jul  8 22:16:38 2016 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Tue Jul 12 18:49:17 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98ff4ba9

dev-lua/luasystem: new package

Package-Manager: portage-2.2.28

 dev-lua/luasystem/Manifest                         |  1 +
 .../files/luasystem-0.2.0_p0-fix-makefile.patch    | 33 ++++++++++++++++
 dev-lua/luasystem/luasystem-0.2.0_p0.ebuild        | 45 ++++++++++++++++++++++
 dev-lua/luasystem/metadata.xml                     | 10 +++++
 4 files changed, 89 insertions(+)

diff --git a/dev-lua/luasystem/Manifest b/dev-lua/luasystem/Manifest
new file mode 100644
index 0000000..89b4bed
--- /dev/null
+++ b/dev-lua/luasystem/Manifest
@@ -0,0 +1 @@
+DIST luasystem-0.2.0_p0.tar.gz 8058 SHA256 1c4aea8e5b6205e4ea9739c2fbf185d45b0ab7572397a29d5d3d2e5b5f549054 SHA512 b8c7ba30470cbf100cc3f14df31729778cfb0aabebe4d27ce42c19581a2585f878d86a29a2f73fd1bef4e5861e2a604d3c396a73f131fa99ae14a17cba52c336 WHIRLPOOL 5c6770deddf27a4deb8ada3069caa3edd479c1dbeecb068ea3ea6a219bee968b1a6dde008599572674fdec119d31d40a01d31b4a1e3dbcc3009e5598f6b2aff2

diff --git a/dev-lua/luasystem/files/luasystem-0.2.0_p0-fix-makefile.patch b/dev-lua/luasystem/files/luasystem-0.2.0_p0-fix-makefile.patch
new file mode 100644
index 0000000..803d283
--- /dev/null
+++ b/dev-lua/luasystem/files/luasystem-0.2.0_p0-fix-makefile.patch
@@ -0,0 +1,33 @@
+diff --git a/src/Makefile b/src/Makefile
+index 10fc31a..af5e4e4 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -144,8 +144,8 @@ O_linux=o
+ CC_linux=gcc
+ DEF_linux=
+ CFLAGS_linux= -I$(LUAINC) $(DEF) -Wall -Wshadow -Wextra \
+-	-Wimplicit -O2 -ggdb3 -fpic -fvisibility=hidden
+-LDFLAGS_linux=-lrt -O -shared -fpic -o
++	-Wimplicit -fpic -fvisibility=hidden
++LDFLAGS_linux=-lrt -shared -fpic -o
+ LD_linux=gcc
+ 
+ #------
+@@ -208,7 +208,7 @@ SOLIB=core.$(SO)
+ #
+ CC=$(CC_$(PLAT))
+ DEF=$(DEF_$(PLAT))
+-CFLAGS=$(MYCFLAGS) $(CFLAGS_$(PLAT))
++CFLAGS=$(CFLAGS_$(PLAT)) $(MYCFLAGS)
+ LDFLAGS=$(MYLDFLAGS) $(LDFLAGS_$(PLAT))
+ LD=$(LD_$(PLAT))
+ LUAINC= $(LUAINC_$(PLAT))
+@@ -248,7 +248,7 @@ none:
+ all: $(SOLIB)
+ 
+ $(SOLIB): $(OBJS)
+-	$(LD) $(OBJS) $(LDFLAGS)$@
++	$(LD) $(OBJS) $(LDFLAGS) $@
+ 
+ install: all
+ 	$(INSTALL_DIR) $(INSTALL_TOP_LDIR)

diff --git a/dev-lua/luasystem/luasystem-0.2.0_p0.ebuild b/dev-lua/luasystem/luasystem-0.2.0_p0.ebuild
new file mode 100644
index 0000000..1d6ea49
--- /dev/null
+++ b/dev-lua/luasystem/luasystem-0.2.0_p0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit toolchain-funcs
+
+# The below is the upstream version number. The -x suffix should be kept
+# in sync with the _px suffix in the ebuild version.
+MY_PV="0.2.0-0"
+
+DESCRIPTION="platform independent system calls for lua"
+HOMEPAGE="https://github.com/LuaDist2/luasystem"
+SRC_URI="https://github.com/LuaDist2/luasystem/archive/${MY_PV}.tar.gz ->
+	${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+COMMON_DEPEND=">=dev-lang/lua-5.1:="
+DEPEND="${COMMON_DEPEND}
+	virtual/pkgconfig"
+RDEPEND="${COMMON_DEPEND}"
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+PATCHES=(
+	"${FILESDIR}"/${P}-fix-makefile.patch
+)
+
+src_compile() {
+	emake CC="$(tc-getCC)" MYCFLAGS="${CFLAGS}" \
+		LD="$(tc-getCC)" MYLDFLAGS="${LDFLAGS}"
+}
+
+src_install () {
+	insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)"
+	doins -r system
+	exeinto "$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)"/system
+	doexe src/core.so
+dodoc README.md
+}

diff --git a/dev-lua/luasystem/metadata.xml b/dev-lua/luasystem/metadata.xml
new file mode 100644
index 0000000..82a4d584
--- /dev/null
+++ b/dev-lua/luasystem/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>williamh@gentoo.org</email>
+		<name>William Hubbs</name>
+	</maintainer>
+	<longdescription lang="en">
+	</longdescription>
+</pkgmetadata>


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

* [gentoo-commits] repo/gentoo:master commit in: dev-lua/luasystem/files/, dev-lua/luasystem/
@ 2020-04-07  1:32 Georgy Yakovlev
  0 siblings, 0 replies; 2+ messages in thread
From: Georgy Yakovlev @ 2020-04-07  1:32 UTC (permalink / raw
  To: gentoo-commits

commit:     626634ad6c07f06f6b1abe3e37a6d09b468146c1
Author:     Victor Payno <vpayno+gentoo <AT> gmail <DOT> com>
AuthorDate: Fri Jan 24 23:40:17 2020 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Tue Apr  7 01:31:48 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=626634ad

dev-lua/luasystem: version bump to 0.2.1_p0

Signed-off-by: Victor Payno <vpayno+gentoo <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/14438
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 dev-lua/luasystem/Manifest                         |  1 +
 .../files/luasystem-0.2.1_p0-fix-makefile.patch    | 33 +++++++++++++
 dev-lua/luasystem/luasystem-0.2.1_p0.ebuild        | 56 ++++++++++++++++++++++
 dev-lua/luasystem/metadata.xml                     |  4 ++
 4 files changed, 94 insertions(+)

diff --git a/dev-lua/luasystem/Manifest b/dev-lua/luasystem/Manifest
index 89f8c9f4861..eee4f695f36 100644
--- a/dev-lua/luasystem/Manifest
+++ b/dev-lua/luasystem/Manifest
@@ -1 +1,2 @@
 DIST luasystem-0.2.0_p0.tar.gz 8058 BLAKE2B fd29eaec7fe2f49e933932a436be75678400fc55a275e412379e05ab5b9cfe2036dfc9e61f960caa29d3c4ab1d439f9ede7ff3cbe14a61287270cc3707660636 SHA512 b8c7ba30470cbf100cc3f14df31729778cfb0aabebe4d27ce42c19581a2585f878d86a29a2f73fd1bef4e5861e2a604d3c396a73f131fa99ae14a17cba52c336
+DIST luasystem-0.2.1_p0.tar.gz 8162 BLAKE2B ad8a6009823ad8202ff3884a3167d0779405c2a6be460b7ef2939622eb4d0fc8edbc6b04aba5dec9dd5e4e38f11ae0dcd582b9c348d5b516aa411858d55c6d71 SHA512 9dc323d4d1914cfa4f278a49ef22e58569d5cd7e369fa17fa6006cd47f9d90c6dfd4404067ea2436aa46a27cfbdf91e4aa26e20b89aeeefdf2aa7252c51fb32b

diff --git a/dev-lua/luasystem/files/luasystem-0.2.1_p0-fix-makefile.patch b/dev-lua/luasystem/files/luasystem-0.2.1_p0-fix-makefile.patch
new file mode 100644
index 00000000000..373ef95c42f
--- /dev/null
+++ b/dev-lua/luasystem/files/luasystem-0.2.1_p0-fix-makefile.patch
@@ -0,0 +1,33 @@
+diff --git a/src/Makefile b/src/Makefile
+index 10fc31a..af5e4e4 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -144,8 +144,8 @@ O_linux=o
+ CC_linux=gcc
+ DEF_linux=
+ CFLAGS_linux= -I$(LUAINC) $(DEF) -Wall -Wshadow -Wextra \
+-	-Wimplicit -O2 -ggdb3 -fpic -fvisibility=hidden
+-LDFLAGS_linux=-lrt -O -shared -fpic -o
++	-Wimplicit -fpic -fvisibility=hidden
++LDFLAGS_linux=-lrt -shared -fpic -o
+ LD_linux=gcc
+
+ #------
+@@ -208,7 +208,7 @@ SOLIB=core.$(SO)
+ #
+ CC=$(CC_$(PLAT))
+ DEF=$(DEF_$(PLAT))
+-CFLAGS=$(MYCFLAGS) $(CFLAGS_$(PLAT))
++CFLAGS=$(CFLAGS_$(PLAT)) $(MYCFLAGS)
+ LDFLAGS=$(MYLDFLAGS) $(LDFLAGS_$(PLAT))
+ LD=$(LD_$(PLAT))
+ LUAINC= $(LUAINC_$(PLAT))
+@@ -248,7 +248,7 @@ none:
+ all: $(SOLIB)
+
+ $(SOLIB): $(OBJS)
+-	$(LD) $(OBJS) $(LDFLAGS)$@
++	$(LD) $(OBJS) $(LDFLAGS) $@
+
+ install: all
+	$(INSTALL_DIR) $(INSTALL_TOP_LDIR)

diff --git a/dev-lua/luasystem/luasystem-0.2.1_p0.ebuild b/dev-lua/luasystem/luasystem-0.2.1_p0.ebuild
new file mode 100644
index 00000000000..41616162613
--- /dev/null
+++ b/dev-lua/luasystem/luasystem-0.2.1_p0.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+# The below is the upstream version number. The -x suffix should be kept
+# in sync with the _px suffix in the ebuild version.
+MY_PV="0.2.1-0"
+
+DESCRIPTION="platform independent system calls for lua"
+HOMEPAGE="https://github.com/LuaDist2/luasystem"
+SRC_URI="https://github.com/LuaDist2/luasystem/archive/${MY_PV}.tar.gz ->
+	${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
+IUSE="luajit test"
+
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+	virtual/pkgconfig
+	test? (
+		${RDEPEND}
+		dev-lua/busted
+	)"
+RDEPEND="
+	!luajit? ( >=dev-lang/lua-5.1:= )
+	luajit? ( dev-lang/luajit:2 )"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+PATCHES=(
+	"${FILESDIR}"/${P}-fix-makefile.patch
+)
+
+src_test() {
+	busted -o gtest || die
+}
+
+src_compile() {
+	emake CC="$(tc-getCC)" MYCFLAGS="${CFLAGS}" \
+		LD="$(tc-getCC)" MYLDFLAGS="${LDFLAGS}"
+}
+
+src_install () {
+	insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)"
+	doins -r system
+	exeinto "$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)"/system
+	doexe src/core.so
+	einstalldocs
+}

diff --git a/dev-lua/luasystem/metadata.xml b/dev-lua/luasystem/metadata.xml
index 8ee365e7918..009738e31d6 100644
--- a/dev-lua/luasystem/metadata.xml
+++ b/dev-lua/luasystem/metadata.xml
@@ -5,6 +5,10 @@
 		<email>williamh@gentoo.org</email>
 		<name>William Hubbs</name>
 	</maintainer>
+	<longdescription lang="en">
+		luasystem is a platform independent system call library for Lua.
+		Supports Lua >= 5.1 and luajit >= 2.0.0.
+	</longdescription>
 	<upstream>
 		<remote-id type="github">LuaDist2/luasystem</remote-id>
 	</upstream>


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

end of thread, other threads:[~2020-04-07  1:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-12 18:59 [gentoo-commits] repo/gentoo:master commit in: dev-lua/luasystem/files/, dev-lua/luasystem/ William Hubbs
  -- strict thread matches above, loose matches on Subject: below --
2020-04-07  1:32 Georgy Yakovlev

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