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>
This commit is contained in:
Victor Payno
2020-01-24 15:40:17 -08:00
committed by Georgy Yakovlev
parent 8124faba9e
commit 626634ad6c
4 changed files with 94 additions and 0 deletions

View File

@@ -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

View File

@@ -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)

View File

@@ -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
}

View File

@@ -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>