1 |
commit: a5e71f61c7db2fa458cffa6571e4f11de7cbc6a3 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 29 18:35:07 2020 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 29 18:48:24 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5e71f61 |
7 |
|
8 |
dev-lua/mpack: bump to version 1.0.8 (slotted lua) |
9 |
|
10 |
Package-Manager: Portage-3.0.9, Repoman-3.0.2 |
11 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
12 |
|
13 |
dev-lua/mpack/Manifest | 1 + |
14 |
dev-lua/mpack/metadata.xml | 7 ++- |
15 |
dev-lua/mpack/mpack-1.0.8-r100.ebuild | 97 +++++++++++++++++++++++++++++++++++ |
16 |
3 files changed, 103 insertions(+), 2 deletions(-) |
17 |
|
18 |
diff --git a/dev-lua/mpack/Manifest b/dev-lua/mpack/Manifest |
19 |
index 34119b47d3b..8b7ebcc7d5b 100644 |
20 |
--- a/dev-lua/mpack/Manifest |
21 |
+++ b/dev-lua/mpack/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST mpack-1.0.4.tar.gz 46382 BLAKE2B 5092830e1a970ad96686ede4d96833a210543418cb23f218ba774bfd724267344f9e44e367490bb33dae8023e1145202ea6e457be7753a426eae990df906547d SHA512 8e40a562faf8b62137dec0733cbb9006fa7054e5a47bdd128fb4dfd676fac4e4385a23c3d908a4ce2edd65d673db25916695fa74bc08c5316b0c80e571a7442c |
24 |
+DIST mpack-1.0.8.tar.gz 15616 BLAKE2B 06593296d1d36459127bf35eaeb37c894a0c0c6ccff0969cd0a82bee1920a715801db26f0ba0bc54a56399d07efc262666ee4ce79878288a5c0221fd27febea1 SHA512 6d21cc6bbdee583a1d808742991459e4b1796f347b2f4eaa747b576f5bb1ca989123339120e43246bac859c20e6f46ac57116ce9f135157256fecbd8cf817f75 |
25 |
|
26 |
diff --git a/dev-lua/mpack/metadata.xml b/dev-lua/mpack/metadata.xml |
27 |
index efac9884a41..c3e9e12ed26 100644 |
28 |
--- a/dev-lua/mpack/metadata.xml |
29 |
+++ b/dev-lua/mpack/metadata.xml |
30 |
@@ -1,8 +1,11 @@ |
31 |
<?xml version="1.0" encoding="UTF-8"?> |
32 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
33 |
<pkgmetadata> |
34 |
- <!-- maintainer-needed --> |
35 |
+ <maintainer type="person"> |
36 |
+ <email>conikost@g.o</email> |
37 |
+ <name>Conrad Kostecki</name> |
38 |
+ </maintainer> |
39 |
<upstream> |
40 |
- <remote-id type="github">libmpack/libmpack</remote-id> |
41 |
+ <remote-id type="github">libmpack/libmpack-lua</remote-id> |
42 |
</upstream> |
43 |
</pkgmetadata> |
44 |
|
45 |
diff --git a/dev-lua/mpack/mpack-1.0.8-r100.ebuild b/dev-lua/mpack/mpack-1.0.8-r100.ebuild |
46 |
new file mode 100644 |
47 |
index 00000000000..6bc69d68ebf |
48 |
--- /dev/null |
49 |
+++ b/dev-lua/mpack/mpack-1.0.8-r100.ebuild |
50 |
@@ -0,0 +1,97 @@ |
51 |
+# Copyright 1999-2020 Gentoo Authors |
52 |
+# Distributed under the terms of the GNU General Public License v2 |
53 |
+ |
54 |
+EAPI=7 |
55 |
+ |
56 |
+LUA_COMPAT=( lua5-{1..3} luajit ) |
57 |
+MY_PN="lib${PN}-lua" |
58 |
+ |
59 |
+inherit lua toolchain-funcs |
60 |
+ |
61 |
+DESCRIPTION="Lua bindings for libmpack" |
62 |
+HOMEPAGE="https://github.com/libmpack/libmpack/" |
63 |
+SRC_URI="https://github.com/${MY_PN/-lua/}/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
64 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
65 |
+ |
66 |
+LICENSE="MIT" |
67 |
+SLOT="0" |
68 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
69 |
+IUSE="test" |
70 |
+RESTRICT="!test? ( test )" |
71 |
+ |
72 |
+RDEPEND=" |
73 |
+ dev-libs/libmpack |
74 |
+ ${LUA_DEPS} |
75 |
+" |
76 |
+DEPEND="${RDEPEND}" |
77 |
+BDEPEND=" |
78 |
+ virtual/pkgconfig |
79 |
+ test? ( |
80 |
+ >=dev-lua/busted-2.0.0-r100[${LUA_USEDEP}] |
81 |
+ ${RDEPEND} |
82 |
+ ) |
83 |
+" |
84 |
+ |
85 |
+src_prepare() { |
86 |
+ default |
87 |
+ |
88 |
+ lua_copy_sources |
89 |
+} |
90 |
+ |
91 |
+lua_src_compile() { |
92 |
+ pushd "${BUILD_DIR}" || die |
93 |
+ |
94 |
+ local myemakeargs=( |
95 |
+ "CC=$(tc-getCC)" |
96 |
+ "LUA_INCLUDE=$(lua_get_CFLAGS)" |
97 |
+ "LUA_LIB=" |
98 |
+ "USE_SYSTEM_MPACK=yes" |
99 |
+ "USE_SYSTEM_LUA=yes" |
100 |
+ ) |
101 |
+ |
102 |
+ emake "${myemakeargs[@]}" |
103 |
+ |
104 |
+ popd |
105 |
+} |
106 |
+ |
107 |
+src_compile() { |
108 |
+ lua_foreach_impl lua_src_compile |
109 |
+} |
110 |
+ |
111 |
+lua_src_test() { |
112 |
+ # "[ FAILED ] test.lua @ 279: mpack should not leak memory" |
113 |
+ # It doesn't seem upstream actually support LuaJIT so were this up to me |
114 |
+ # I would drop it from LUA_COMPAT, unfortunately there are packages in the |
115 |
+ # tree which currently expect it to be supported. |
116 |
+ if [[ ${ELUA} == "luajit" ]]; then |
117 |
+ ewarn "Not running tests under ${ELUA} because they are known to fail" |
118 |
+ return |
119 |
+ fi |
120 |
+ |
121 |
+ busted --lua="${ELUA}" test.lua || die |
122 |
+} |
123 |
+ |
124 |
+src_test() { |
125 |
+ lua_foreach_impl lua_src_test |
126 |
+} |
127 |
+ |
128 |
+lua_src_install() { |
129 |
+ pushd "${BUILD_DIR}" || die |
130 |
+ |
131 |
+ local myemakeargs=( |
132 |
+ "DESTDIR=${ED}" |
133 |
+ "LUA_CMOD_INSTALLDIR=$(lua_get_cmod_dir)" |
134 |
+ "USE_SYSTEM_MPACK=yes" |
135 |
+ "USE_SYSTEM_LUA=yes" |
136 |
+ ) |
137 |
+ |
138 |
+ emake "${myemakeargs[@]}" install |
139 |
+ |
140 |
+ popd |
141 |
+} |
142 |
+ |
143 |
+src_install() { |
144 |
+ lua_foreach_impl lua_src_install |
145 |
+ |
146 |
+ einstalldocs |
147 |
+} |