From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-lua/luasystem/Manifest | 4 ++ .../files/luasystem-0.2.0_p0-fix-makefile.patch | 33 ++++++++++++++++ dev-lua/luasystem/luasystem-0.2.0_p0.ebuild | 44 ++++++++++++++++++++++ dev-lua/luasystem/metadata.xml | 11 ++++++ 4 files changed, 92 insertions(+) create mode 100644 dev-lua/luasystem/Manifest create mode 100644 dev-lua/luasystem/files/luasystem-0.2.0_p0-fix-makefile.patch create mode 100644 dev-lua/luasystem/luasystem-0.2.0_p0.ebuild create mode 100644 dev-lua/luasystem/metadata.xml (limited to 'dev-lua/luasystem') diff --git a/dev-lua/luasystem/Manifest b/dev-lua/luasystem/Manifest new file mode 100644 index 000000000000..e8f5141f0e9c --- /dev/null +++ b/dev-lua/luasystem/Manifest @@ -0,0 +1,4 @@ +AUX luasystem-0.2.0_p0-fix-makefile.patch 829 BLAKE2B 03d7eae8746d38837056b2d990491da070a6ff24a78c6eb1bb86ac583e93a32c4576b956fd06836e0088dafcffba155ae254eb3273230bf84cfaa90e70464d45 SHA512 7123c427527788034cd2a5f759f5924bd00dc2ca7a2071d986152f535a4da641887e75131ae7d6afe39d82b4c71c84796cf52a451603db50a21ad99f061c746e +DIST luasystem-0.2.0_p0.tar.gz 8058 BLAKE2B fd29eaec7fe2f49e933932a436be75678400fc55a275e412379e05ab5b9cfe2036dfc9e61f960caa29d3c4ab1d439f9ede7ff3cbe14a61287270cc3707660636 SHA512 b8c7ba30470cbf100cc3f14df31729778cfb0aabebe4d27ce42c19581a2585f878d86a29a2f73fd1bef4e5861e2a604d3c396a73f131fa99ae14a17cba52c336 +EBUILD luasystem-0.2.0_p0.ebuild 1051 BLAKE2B f5f30ed92fa9c16beb76f2008ddfadd90d06272596ee4db2ca9d6b50e1be186a9a5243210d78706b1f35bb3b8a00e91fc945a2dff951ec992b3ef38700712da6 SHA512 eaf185953931eb2dd82daf1dd7d89e4f52b9479fd45f25916cbb2c73520e62e839a0838e6c8bb21d5f253f401749ecfb285ec677d71541341014666eb50da136 +MISC metadata.xml 331 BLAKE2B 8878c677de3e97ca867c0acff719fa5c949149e77f09649e4792927f33abdc971156809f0f1cec4caae2e619dec8f686c92cfade7a4fc12bc5b575305533a6f0 SHA512 f597f3af9c0e0422e49e8da76ecbb645b02cf6b0dd2ff3420c8923aaa173160610a9edd8f7aa5411479e1c1c2e2805f9e5a36b637e3fc42d2b48caf9033796aa 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 000000000000..803d2835c37f --- /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 000000000000..f4986115532b --- /dev/null +++ b/dev-lua/luasystem/luasystem-0.2.0_p0.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 ~arm ~ppc ~ppc64 x86" +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 000000000000..8ee365e7918b --- /dev/null +++ b/dev-lua/luasystem/metadata.xml @@ -0,0 +1,11 @@ + + + + + williamh@gentoo.org + William Hubbs + + + LuaDist2/luasystem + + -- cgit v1.2.3