1 |
commit: 037d049d7c64be83a9d77612f57393d2098f7079 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 9 15:32:45 2021 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 9 15:32:45 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=037d049d |
7 |
|
8 |
dev-lua/lanes: bump to version 3.15.1 |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
12 |
|
13 |
dev-lua/lanes/Manifest | 1 + |
14 |
dev-lua/lanes/lanes-3.15.1.ebuild | 93 +++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 94 insertions(+) |
16 |
|
17 |
diff --git a/dev-lua/lanes/Manifest b/dev-lua/lanes/Manifest |
18 |
index 5acacb0d27a..53a609f247e 100644 |
19 |
--- a/dev-lua/lanes/Manifest |
20 |
+++ b/dev-lua/lanes/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST lanes-3.13.0.tar.gz 247978 BLAKE2B e330f3648e865b8b7c1b77061b6a8210f46e1db650066736afe62040dbb20c7e31e0037b420fded8fb0931cc2ac59687e2039fb31f43c1bdf0cae8cd3c031307 SHA512 bb509181757fa2b4f07a55962015b35ca6bb867b18ec89dd655f333babe2e12f56479fa85bc98e0dacf5bec2a523265bbc3a978396dc332dc1fdda4df760b2e5 |
23 |
DIST lanes-3.15.0.tar.gz 251497 BLAKE2B fbe02a205d3a1e9e14258fcecd5133a01a2376938678840f680ce37d763e44b924cc718f49df6c985871798f03ad51de5f6289456cbc2954b98d7c0b883fa62d SHA512 da198a70e5d88c25e55cf0947a69405b9c666bf10ac92ab0e4018cf689791c5e5bfff31ae39f8b3e0577217d24b2fcd0b70d5b4e31cebb6d5958e570f017ced4 |
24 |
+DIST lanes-3.15.1.tar.gz 252057 BLAKE2B 36de0b85d6d7f43406249e4463c6560d3d539791700d4bd77cd366dd04b8cb672c5aff68c4409dd4e6b5df8ab93f6841c2168ecea9f4ea60768e42f3ffc543e9 SHA512 110528e3ffda5e721046f52a31d9cc707db4b7cca1a706d8c2e35b54d26375855f8ba52f4568c42caa2707da7c05ac1278460af185346bfd4fafdd7c237d256a |
25 |
|
26 |
diff --git a/dev-lua/lanes/lanes-3.15.1.ebuild b/dev-lua/lanes/lanes-3.15.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..c0bf2fbb307 |
29 |
--- /dev/null |
30 |
+++ b/dev-lua/lanes/lanes-3.15.1.ebuild |
31 |
@@ -0,0 +1,93 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+LUA_COMPAT=( lua5-{1..4} luajit ) |
38 |
+ |
39 |
+inherit lua toolchain-funcs |
40 |
+ |
41 |
+DESCRIPTION="Lightweight, native, lazy evaluating multithreading library" |
42 |
+HOMEPAGE="https://github.com/LuaLanes/lanes" |
43 |
+SRC_URI="https://github.com/LuaLanes/lanes/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="MIT" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
48 |
+IUSE="test" |
49 |
+REQUIRED_USE="${LUA_REQUIRED_USE}" |
50 |
+ |
51 |
+# Tests are currently somehow problematic. |
52 |
+# https://github.com/LuaLanes/lanes/issues/197 |
53 |
+# https://github.com/LuaLanes/lanes/issues/198 |
54 |
+RESTRICT="test" |
55 |
+ |
56 |
+RDEPEND="${LUA_DEPS}" |
57 |
+DEPEND="${RDEPEND}" |
58 |
+BDEPEND=" |
59 |
+ virtual/pkgconfig |
60 |
+ test? ( ${RDEPEND} ) |
61 |
+" |
62 |
+ |
63 |
+HTML_DOCS=( "docs/." ) |
64 |
+ |
65 |
+PATCHES=( "${FILESDIR}/${PN}-3.13.0-makefile.patch" ) |
66 |
+ |
67 |
+src_prepare() { |
68 |
+ default |
69 |
+ |
70 |
+ lua_copy_sources |
71 |
+} |
72 |
+ |
73 |
+lua_src_compile() { |
74 |
+ pushd "${BUILD_DIR}" || die |
75 |
+ |
76 |
+ local myemakeargs=( |
77 |
+ "CC=$(tc-getCC)" |
78 |
+ "LUA=${ELUA}" |
79 |
+ "LUA_FLAGS=$(lua_get_CFLAGS)" |
80 |
+ "LUA_LIBS=" |
81 |
+ "OPT_FLAGS=${CFLAGS}" |
82 |
+ ) |
83 |
+ |
84 |
+ tc-export PKG_CONFIG |
85 |
+ |
86 |
+ emake "${myemakeargs[@]}" |
87 |
+ |
88 |
+ popd |
89 |
+} |
90 |
+ |
91 |
+src_compile() { |
92 |
+ lua_foreach_impl lua_src_compile |
93 |
+} |
94 |
+ |
95 |
+lua_src_test() { |
96 |
+ pushd "${BUILD_DIR}" || die |
97 |
+ |
98 |
+ emake LUA="${ELUA}" test |
99 |
+ |
100 |
+ popd |
101 |
+} |
102 |
+ |
103 |
+src_test() { |
104 |
+ lua_foreach_impl lua_src_test |
105 |
+} |
106 |
+ |
107 |
+lua_src_install() { |
108 |
+ pushd "${BUILD_DIR}" || die |
109 |
+ |
110 |
+ local myemakeargs=( |
111 |
+ "LUA_LIBDIR=${ED}/$(lua_get_cmod_dir)" |
112 |
+ "LUA_SHAREDIR=${ED}/$(lua_get_lmod_dir)" |
113 |
+ ) |
114 |
+ |
115 |
+ emake "${myemakeargs[@]}" install |
116 |
+ |
117 |
+ popd |
118 |
+} |
119 |
+ |
120 |
+src_install() { |
121 |
+ lua_foreach_impl lua_src_install |
122 |
+ |
123 |
+ einstalldocs |
124 |
+} |