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