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