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/lanes/Manifest | 4 +++ .../lanes/files/lanes-3.10.0-fix-makefile.patch | 28 +++++++++++++++++++ dev-lua/lanes/lanes-3.10.0.ebuild | 31 ++++++++++++++++++++++ dev-lua/lanes/metadata.xml | 14 ++++++++++ 4 files changed, 77 insertions(+) create mode 100644 dev-lua/lanes/Manifest create mode 100644 dev-lua/lanes/files/lanes-3.10.0-fix-makefile.patch create mode 100644 dev-lua/lanes/lanes-3.10.0.ebuild create mode 100644 dev-lua/lanes/metadata.xml (limited to 'dev-lua/lanes') diff --git a/dev-lua/lanes/Manifest b/dev-lua/lanes/Manifest new file mode 100644 index 000000000000..ecb241de2423 --- /dev/null +++ b/dev-lua/lanes/Manifest @@ -0,0 +1,4 @@ +AUX lanes-3.10.0-fix-makefile.patch 855 BLAKE2B 4505cb94476ffcc1100917a660d5b8d9aa062c2a87fa463cc98bcf84190239ceb5ad53bb0c9db57b512db5590dc128f102c1af4b72c02442953220a1ed12e46e SHA512 877e3ad24d9192c2b87de7e684f77c7db725d929d1f2709b531929cf343e1da9b0396a79dd0763d2fa36a492d7920937553f533d9a75dfb353ec2ab4466c2e80 +DIST lanes-3.10.0.tar.gz 231359 BLAKE2B beb1972a9b37097947fc673a644330fe8b66c826bc09967526b96d8e28838939516ee3ad4640fb8e5dca7061227c2844d55270c48f26416c7a7bd3613a83e648 SHA512 4a49f560623e291a8344ffef69f4f26fd422d21d3926d73dfee9c9ae9ebd4973e5ae2d307dfd42c5a3bf101bfcc277df54f0a46d89390c83483208e36d4e5d9b +EBUILD lanes-3.10.0.ebuild 755 BLAKE2B 9034cc6d8f6f0124e9e18d1ebad67d33a798b62dd286a2d7b16d2940c44c3c55827e8343da6a19fca663b73a1ebde60845170917f287cecb264fff353bd07938 SHA512 e3dd7ab1960a3fa2e9f90123b1f6d52ed90215c167b504c1d5986d0b2adcac3d279292c26628e8cc8d30d98c95d81acc7f9a0973333451c0173c785b08b0c679 +MISC metadata.xml 458 BLAKE2B 4eb134f1212f3f5177e3db2e2347f7fd06acd2f50985fe95882070148b0b3019623ea50de84fda07c944d6cade018c61868caefd1f19a742f51d3ab19afba560 SHA512 bf51b49998baca68175e79573c3352fb0fdc66d75904dd1ad2058273a3370f23a9979655395d826a22d582f9f86391b84d7d53e0962d0a9e116e9acdb5ac3e8f diff --git a/dev-lua/lanes/files/lanes-3.10.0-fix-makefile.patch b/dev-lua/lanes/files/lanes-3.10.0-fix-makefile.patch new file mode 100644 index 000000000000..52549704248e --- /dev/null +++ b/dev-lua/lanes/files/lanes-3.10.0-fix-makefile.patch @@ -0,0 +1,28 @@ +diff --git a/Makefile b/Makefile +index fc44fac..6c87e89 100644 +--- a/Makefile ++++ b/Makefile +@@ -202,17 +202,17 @@ _perftest: + # + # LUA_LIBDIR and LUA_SHAREDIR are used by the .rockspec (don't change the names!) + # +-DESTDIR=/usr/local +-LUA_LIBDIR=$(DESTDIR)/lib/lua/5.1 +-LUA_SHAREDIR=$(DESTDIR)/share/lua/5.1 ++PREFIX=/usr/local ++LUA_LIBDIR=$(PREFIX)/lib/lua/5.1 ++LUA_SHAREDIR=$(PREFIX)/share/lua/5.1 + + # + # AKa 17-Oct: changed to use 'install -m 644' and 'cp -p' + # + install: $(_TARGET_SO) src/lanes.lua +- mkdir -p $(LUA_LIBDIR) $(LUA_LIBDIR)/lanes $(LUA_SHAREDIR) +- install -m 644 $(_TARGET_SO) $(LUA_LIBDIR)/lanes +- cp -p src/lanes.lua $(LUA_SHAREDIR) ++ mkdir -p $(DESTDIR)$(LUA_LIBDIR)/lanes $(DESTDIR)$(LUA_SHAREDIR) ++ install -m 644 $(_TARGET_SO) $(DESTDIR)$(LUA_LIBDIR)/lanes ++ cp -p src/lanes.lua $(DESTDIR)$(LUA_SHAREDIR) + + + #--- Packaging --- diff --git a/dev-lua/lanes/lanes-3.10.0.ebuild b/dev-lua/lanes/lanes-3.10.0.ebuild new file mode 100644 index 000000000000..0db398773e8e --- /dev/null +++ b/dev-lua/lanes/lanes-3.10.0.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils multilib toolchain-funcs + +DESCRIPTION="lightweight, native, lazy evaluating multithreading library" +HOMEPAGE="https://github.com/LuaLanes/lanes" +SRC_URI="https://github.com/LuaLanes/lanes/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64" +IUSE="" + +COMMON_DEPEND=">=dev-lang/lua-5.1" +DEPEND="${COMMON_DEPEND}" +RDEPEND="${COMMON_DEPEND}" + +src_prepare() { + tc-export CC + epatch "${FILESDIR}"/${P}-fix-makefile.patch + sed -i -e "s#/lib#/$(get_libdir)#" Makefile || die "sed failed" +} + +src_install() { + emake DESTDIR="${D}" PREFIX=/usr install + dodoc ABOUT BUGS CHANGES README TODO +dohtml -r docs/* +} diff --git a/dev-lua/lanes/metadata.xml b/dev-lua/lanes/metadata.xml new file mode 100644 index 000000000000..c1baef2d9b21 --- /dev/null +++ b/dev-lua/lanes/metadata.xml @@ -0,0 +1,14 @@ + + + + + williamh@gentoo.org + William Hubbs + + + lightweight, native, lazy evaluating multithreading library for Lua-5.1 or 5.2. + + + LuaLanes/lanes + + -- cgit v1.2.3