1 |
commit: 03a1bee2fc2e190d8ba765bd46cdb1f95caa3804 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 1 23:44:17 2020 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 1 23:53:54 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03a1bee2 |
7 |
|
8 |
dev-lua/lualdap: bump to version 1.2.5 |
9 |
|
10 |
This version switches back to a more active repo. |
11 |
Thanks to the work of winterheart with some changes. |
12 |
|
13 |
Closes: https://bugs.gentoo.org/693540 |
14 |
Closes: https://bugs.gentoo.org/723164 |
15 |
Closes: https://github.com/gentoo/gentoo/pull/17491 |
16 |
Package-Manager: Portage-3.0.9, Repoman-3.0.2 |
17 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
18 |
|
19 |
dev-lua/lualdap/Manifest | 1 + |
20 |
dev-lua/lualdap/lualdap-1.2.5.ebuild | 58 ++++++++++++++++++++++++++++++++++++ |
21 |
dev-lua/lualdap/metadata.xml | 7 +++++ |
22 |
3 files changed, 66 insertions(+) |
23 |
|
24 |
diff --git a/dev-lua/lualdap/Manifest b/dev-lua/lualdap/Manifest |
25 |
index 727dc31550e..05a2c71f545 100644 |
26 |
--- a/dev-lua/lualdap/Manifest |
27 |
+++ b/dev-lua/lualdap/Manifest |
28 |
@@ -1 +1,2 @@ |
29 |
DIST lualdap-1.2.0.tar.xz 12380 BLAKE2B 42bf8633a5ccd60f6082b8729b9ba77c8f5486a7bab6cf727fc011856fec244de9f0fa96dd53c23a3fb5932a1670bbb621739c965618671c2c856c41e3faffbb SHA512 02cd3089dc6ca1f60957fa4733dae3cbfb2e13c25b068ddeb51b059701278eb86e359d56a6ef1df28cf514193311323255b36ff036bafda9fcbae0676d90a238 |
30 |
+DIST lualdap-1.2.5.tar.gz 85920 BLAKE2B 14015fe258fa391e08fc9b6bdb7a71dae10fbd84636cc3d84c446d67f9d0ea925c0086343a29ce21b81f77c87da37040560c631cdf3df7c8d3c255e5913fd985 SHA512 4fbd7bcea2e55a3b165a7316e4f6c45aee22506915c4cc204d1b5006adbf95611ebf4558c1ef1511f90d7142571cff37ea24952072dc7ecb13bbbe06aef32e72 |
31 |
|
32 |
diff --git a/dev-lua/lualdap/lualdap-1.2.5.ebuild b/dev-lua/lualdap/lualdap-1.2.5.ebuild |
33 |
new file mode 100644 |
34 |
index 00000000000..9d530b5b471 |
35 |
--- /dev/null |
36 |
+++ b/dev-lua/lualdap/lualdap-1.2.5.ebuild |
37 |
@@ -0,0 +1,58 @@ |
38 |
+# Copyright 1999-2020 Gentoo Authors |
39 |
+# Distributed under the terms of the GNU General Public License v2 |
40 |
+ |
41 |
+EAPI=7 |
42 |
+ |
43 |
+inherit toolchain-funcs |
44 |
+ |
45 |
+DESCRIPTION="A lua binding for the OpenLDAP client libraries" |
46 |
+HOMEPAGE="https://github.com/lualdap/lualdap" |
47 |
+SRC_URI="https://github.com/lualdap/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
48 |
+ |
49 |
+LICENSE="MIT" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~amd64 ~x86" |
52 |
+IUSE="luajit test" |
53 |
+RESTRICT="test" |
54 |
+ |
55 |
+RDEPEND=" |
56 |
+ luajit? ( dev-lang/luajit:2 ) |
57 |
+ !luajit? ( dev-lang/lua:0 ) |
58 |
+ net-nds/openldap |
59 |
+" |
60 |
+DEPEND="${RDEPEND}" |
61 |
+BDEPEND=" |
62 |
+ virtual/pkgconfig |
63 |
+ test? ( ${RDEPEND} ) |
64 |
+" |
65 |
+ |
66 |
+HTML_DOCS=( "doc/us/." ) |
67 |
+ |
68 |
+src_compile() { |
69 |
+ local myemakeargs=( |
70 |
+ "CC=$(tc-getCC)" |
71 |
+ "LBER_LIBDIR=/usr/$(get_libdir)" |
72 |
+ "LDAP_LIBDIR=/usr/$(get_libdir)" |
73 |
+ "LUA_INCDIR=$($(tc-getPKG_CONFIG) --variable includedir $(usex luajit 'luajit' 'lua'))" |
74 |
+ ) |
75 |
+ |
76 |
+ emake "${myemakeargs[@]}" |
77 |
+} |
78 |
+ |
79 |
+src_test() { |
80 |
+ LUA_CPATH="${S}/src/?.so" $(usex luajit 'luajit' 'lua') tests/test.lua |
81 |
+} |
82 |
+ |
83 |
+src_install() { |
84 |
+ # Workaround, as 'make install' does not create this directory |
85 |
+ dodir "$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD $(usex luajit 'luajit' 'lua'))" |
86 |
+ |
87 |
+ local myemakeargs=( |
88 |
+ "DESTDIR=${ED}" |
89 |
+ "INST_LIBDIR=$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD $(usex luajit 'luajit' 'lua'))" |
90 |
+ ) |
91 |
+ |
92 |
+ emake "${myemakeargs[@]}" install |
93 |
+ |
94 |
+ einstalldocs |
95 |
+} |
96 |
|
97 |
diff --git a/dev-lua/lualdap/metadata.xml b/dev-lua/lualdap/metadata.xml |
98 |
index 485a025884b..aa61238027f 100644 |
99 |
--- a/dev-lua/lualdap/metadata.xml |
100 |
+++ b/dev-lua/lualdap/metadata.xml |
101 |
@@ -9,4 +9,11 @@ |
102 |
<email>zx2c4@g.o</email> |
103 |
<name>Jason A. Donenfeld</name> |
104 |
</maintainer> |
105 |
+ <maintainer type="person"> |
106 |
+ <email>conikost@g.o</email> |
107 |
+ <name>Conrad Kostecki</name> |
108 |
+ </maintainer> |
109 |
+ <upstream> |
110 |
+ <remote-id type="github">lualdap/lualdap</remote-id> |
111 |
+ </upstream> |
112 |
</pkgmetadata> |