summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2016-07-08 17:16:38 -0500
committerWilliam Hubbs <williamh@gentoo.org>2016-07-12 13:49:17 -0500
commit98ff4ba917deae6d6eb06aacd92c2ddb9db6d032 (patch)
tree4fcfb7e668be8f6736ba76002c10e703af19ccdd /dev-lua/luasystem
parentdev-lua/lua_cliargs: 3.0_p1 version bump (diff)
downloadgentoo-98ff4ba917deae6d6eb06aacd92c2ddb9db6d032.tar.gz
gentoo-98ff4ba917deae6d6eb06aacd92c2ddb9db6d032.tar.bz2
gentoo-98ff4ba917deae6d6eb06aacd92c2ddb9db6d032.zip
dev-lua/luasystem: new package
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-lua/luasystem')
-rw-r--r--dev-lua/luasystem/Manifest1
-rw-r--r--dev-lua/luasystem/files/luasystem-0.2.0_p0-fix-makefile.patch33
-rw-r--r--dev-lua/luasystem/luasystem-0.2.0_p0.ebuild45
-rw-r--r--dev-lua/luasystem/metadata.xml10
4 files changed, 89 insertions, 0 deletions
diff --git a/dev-lua/luasystem/Manifest b/dev-lua/luasystem/Manifest
new file mode 100644
index 00000000000..89b4bed85ef
--- /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 00000000000..803d2835c37
--- /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 00000000000..1d6ea495113
--- /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 00000000000..82a4d5848b6
--- /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>