diff options
Diffstat (limited to 'dev-lua/lanes')
-rw-r--r-- | dev-lua/lanes/Manifest | 6 | ||||
-rw-r--r-- | dev-lua/lanes/files/lanes-3.10.0-fix-makefile.patch | 28 | ||||
-rw-r--r-- | dev-lua/lanes/lanes-3.10.0.ebuild | 31 | ||||
-rw-r--r-- | dev-lua/lanes/metadata.xml | 14 |
4 files changed, 79 insertions, 0 deletions
diff --git a/dev-lua/lanes/Manifest b/dev-lua/lanes/Manifest new file mode 100644 index 000000000000..eea131f6b217 --- /dev/null +++ b/dev-lua/lanes/Manifest @@ -0,0 +1,6 @@ +AUX lanes-3.10.0-fix-makefile.patch 855 SHA256 0d8c3bcf5366e64461f6737e79a6ba59a95f224cbd9843dfab277b240aec62ff SHA512 877e3ad24d9192c2b87de7e684f77c7db725d929d1f2709b531929cf343e1da9b0396a79dd0763d2fa36a492d7920937553f533d9a75dfb353ec2ab4466c2e80 WHIRLPOOL bed9171b1797040c8a1fe5b30eecd626cd3953769b44f3ac6e9a410ec3d6fa3e7623c91ff6e44d02fc921371195d5aeee106f13d200557f742123c99c81ec4a3 +DIST lanes-3.10.0.tar.gz 231359 SHA256 9cb2ac81bf291f0c5a7c7daf67448b2c7fd183b9c36f93c25a8210c11abb2eac SHA512 4a49f560623e291a8344ffef69f4f26fd422d21d3926d73dfee9c9ae9ebd4973e5ae2d307dfd42c5a3bf101bfcc277df54f0a46d89390c83483208e36d4e5d9b WHIRLPOOL e42b9c84e558ee3187b1f18b81abcda7f3b23d8de38cfc060708c7255ae69532fd389556ba8c51c842c6857e135163a0057ea1c122998c4ecedb3831b7d14072 +EBUILD lanes-3.10.0.ebuild 755 SHA256 3e0a4b3408a835983bc12ef19a6933ddadf4c257f9d0bd7595dd4b504cf05f8a SHA512 e3dd7ab1960a3fa2e9f90123b1f6d52ed90215c167b504c1d5986d0b2adcac3d279292c26628e8cc8d30d98c95d81acc7f9a0973333451c0173c785b08b0c679 WHIRLPOOL 445f5833da9b23a18dacbe140dac4e07b153c0e6aa2aac9148e80e7e6ab9d61499539610337a7fb2c5175b12746a171c74ae7c1f505c0c63d645920bc2b44573 +MISC ChangeLog 2454 SHA256 4d7c1190d0ebbdcc30466844424a98c4d1fc93d8a092138d17d07e7b9e543aee SHA512 587e8d71c4aae84e5e440f493d04de2545230712ac9d754872c82a2faa14ebec79a3d13d43cff1f1b96847ae485fd3f302bf0dcb5bb21ebe9b2ddd6a0eadd764 WHIRLPOOL c187e5592dfcc9d0d9d8b0836f22cbdef9ac809c154cb90f033fa0e7ae70e2a7da9048fec9d1dd3ec66954d7c7cf1db203676d7a04700a5990d88ff675ce504c +MISC ChangeLog-2015 497 SHA256 81f0d804e2fc50050aa265f3ef4e6a35cda9f47cb50a27c748354928736a6a06 SHA512 056cd9598066af198deafa1234054d62bd54c408ac4df2199d457d9cbebf00104fb366e56b50886f9c5d61849433bfd5fb9f1156845cc0a4b65711928aad4a3a WHIRLPOOL 01c4b629b194a77176ce7dc55e8e27f12edd4fef1dce875bf896ee46a71a0d07182a7b93519527e16a2994e441ab2c7aebfc3b69280a0cf09dde622c1fa96450 +MISC metadata.xml 458 SHA256 4d5a3154cba0bd563f43b032cf2b1783c532245797200eb2c24c2294065509df SHA512 bf51b49998baca68175e79573c3352fb0fdc66d75904dd1ad2058273a3370f23a9979655395d826a22d582f9f86391b84d7d53e0962d0a9e116e9acdb5ac3e8f WHIRLPOOL a7c2c7577458d340da0613434694e025eb5ec3f82e899cd168ad17dc2c1b18757f7fbada1b1621c4f998b660c2c3d6bfb1d8c22f755cf7d82738977531c247c1 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 @@ +<?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"> + lightweight, native, lazy evaluating multithreading library for Lua-5.1 or 5.2. + </longdescription> + <upstream> + <remote-id type="github">LuaLanes/lanes</remote-id> + </upstream> +</pkgmetadata> |