Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/lanes/, profiles/
Date: Mon, 30 Nov 2020 21:19:29
Message-Id: 1606771153.1bf5ae81e2859a4bee5820a04dfca5223b96b70a.conikost@gentoo
1 commit: 1bf5ae81e2859a4bee5820a04dfca5223b96b70a
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 30 21:17:15 2020 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 30 21:19:13 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1bf5ae81
7
8 dev-lua/lanes: migrate to lua eclass
9
10 Closes: https://bugs.gentoo.org/752606
11 Package-Manager: Portage-3.0.9, Repoman-3.0.2
12 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
13
14 dev-lua/lanes/lanes-3.13.0-r100.ebuild | 87 ++++++++++++++++++++++++++++++++++
15 dev-lua/lanes/metadata.xml | 4 ++
16 profiles/package.mask | 1 +
17 3 files changed, 92 insertions(+)
18
19 diff --git a/dev-lua/lanes/lanes-3.13.0-r100.ebuild b/dev-lua/lanes/lanes-3.13.0-r100.ebuild
20 new file mode 100644
21 index 00000000000..3c7d429b112
22 --- /dev/null
23 +++ b/dev-lua/lanes/lanes-3.13.0-r100.ebuild
24 @@ -0,0 +1,87 @@
25 +# Copyright 1999-2020 Gentoo Authors
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=7
29 +
30 +LUA_COMPAT=( lua5-{1..3} luajit )
31 +
32 +inherit lua toolchain-funcs
33 +
34 +DESCRIPTION="Lightweight, native, lazy evaluating multithreading library"
35 +HOMEPAGE="https://github.com/LuaLanes/lanes"
36 +SRC_URI="https://github.com/LuaLanes/lanes/archive/v${PV}.tar.gz -> ${P}.tar.gz"
37 +
38 +LICENSE="MIT"
39 +SLOT="0"
40 +KEYWORDS="~amd64 ~arm ~arm64 ~x86"
41 +IUSE="test"
42 +REQUIRED_USE="${LUA_REQUIRED_USE}"
43 +RESTRICT="!test? ( test )"
44 +
45 +RDEPEND="${LUA_DEPS}"
46 +DEPEND="${RDEPEND}"
47 +BDEPEND="
48 + virtual/pkgconfig
49 + test? ( ${RDEPEND} )
50 +"
51 +
52 +HTML_DOCS=( "docs/." )
53 +
54 +PATCHES=( "${FILESDIR}/${PN}-3.13.0-makefile.patch" )
55 +
56 +src_prepare() {
57 + default
58 +
59 + lua_copy_sources
60 +}
61 +
62 +lua_src_compile() {
63 + pushd "${BUILD_DIR}" || die
64 +
65 + local myemakeargs=(
66 + "CC=$(tc-getCC)"
67 + "LUA=${ELUA}"
68 + "LUA_FLAGS=$(lua_get_CFLAGS)"
69 + "LUA_LIBS="
70 + "OPT_FLAGS=${CFLAGS}"
71 + )
72 +
73 + emake "${myemakeargs[@]}"
74 +
75 + popd
76 +}
77 +
78 +src_compile() {
79 + lua_foreach_impl lua_src_compile
80 +}
81 +
82 +lua_src_test() {
83 + pushd "${BUILD_DIR}" || die
84 +
85 + emake LUA="${ELUA}" test
86 +
87 + popd
88 +}
89 +
90 +src_test() {
91 + lua_foreach_impl lua_src_test
92 +}
93 +
94 +lua_src_install() {
95 + pushd "${BUILD_DIR}" || die
96 +
97 + local myemakeargs=(
98 + "LUA_LIBDIR=${ED}/$(lua_get_cmod_dir)"
99 + "LUA_SHAREDIR=${ED}/$(lua_get_lmod_dir)"
100 + )
101 +
102 + emake "${myemakeargs[@]}" install
103 +
104 + popd
105 +}
106 +
107 +src_install() {
108 + lua_foreach_impl lua_src_install
109 +
110 + einstalldocs
111 +}
112
113 diff --git a/dev-lua/lanes/metadata.xml b/dev-lua/lanes/metadata.xml
114 index 5d8223a9b7b..b2c291b1b2b 100644
115 --- a/dev-lua/lanes/metadata.xml
116 +++ b/dev-lua/lanes/metadata.xml
117 @@ -5,6 +5,10 @@
118 <email>williamh@g.o</email>
119 <name>William Hubbs</name>
120 </maintainer>
121 + <maintainer type="person">
122 + <email>conikost@g.o</email>
123 + <name>Conrad Kostecki</name>
124 + </maintainer>
125 <upstream>
126 <remote-id type="github">LuaLanes/lanes</remote-id>
127 </upstream>
128
129 diff --git a/profiles/package.mask b/profiles/package.mask
130 index f3287cd4f24..2b2cf8f636a 100644
131 --- a/profiles/package.mask
132 +++ b/profiles/package.mask
133 @@ -524,6 +524,7 @@ dev-lua/luacrypto
134 >=dev-lua/busted-htest-1.0.0-r100
135 >=dev-lua/dkjson-2.5-r100
136 >=dev-lua/inifile-1.0-r100
137 +>=dev-lua/lanes-3.13.0-r100
138 >=dev-lua/ldoc-1.4.6-r100
139 >=dev-lua/lgi-0.9.2-r100
140 >=dev-lua/lpeg-1.0.2-r100