diff options
author | Victor Payno <vpayno+gentoo@gmail.com> | 2020-01-24 15:40:17 -0800 |
---|---|---|
committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2020-04-06 18:31:48 -0700 |
commit | 626634ad6c07f06f6b1abe3e37a6d09b468146c1 (patch) | |
tree | 9e309d2f830d459dc2dad621fc393a123ad3e118 /dev-lua/luasystem | |
parent | dev-lua/luassert: version bump to 1.8.0 (diff) | |
download | gentoo-626634ad6c07f06f6b1abe3e37a6d09b468146c1.tar.gz gentoo-626634ad6c07f06f6b1abe3e37a6d09b468146c1.tar.bz2 gentoo-626634ad6c07f06f6b1abe3e37a6d09b468146c1.zip |
dev-lua/luasystem: version bump to 0.2.1_p0
Signed-off-by: Victor Payno <vpayno+gentoo@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/14438
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'dev-lua/luasystem')
-rw-r--r-- | dev-lua/luasystem/Manifest | 1 | ||||
-rw-r--r-- | dev-lua/luasystem/files/luasystem-0.2.1_p0-fix-makefile.patch | 33 | ||||
-rw-r--r-- | dev-lua/luasystem/luasystem-0.2.1_p0.ebuild | 56 | ||||
-rw-r--r-- | dev-lua/luasystem/metadata.xml | 4 |
4 files changed, 94 insertions, 0 deletions
diff --git a/dev-lua/luasystem/Manifest b/dev-lua/luasystem/Manifest index 89f8c9f4861c..eee4f695f364 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 000000000000..373ef95c42fa --- /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 000000000000..416161626135 --- /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 8ee365e7918b..009738e31d63 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> |