summaryrefslogtreecommitdiff
path: root/dev-lua/lualdap
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-03-15 18:22:11 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-03-15 18:22:11 +0000
commit0ffb93f7e1f8ab9362275c3ba3e7a7dff0939a26 (patch)
tree2903d1d01514fd325ad130d68e5b0724d0398ed8 /dev-lua/lualdap
parentcf5d856691cbc347f5816a181e5bf767792afa55 (diff)
gentoo auto-resync : 15:03:2023 - 18:22:11
Diffstat (limited to 'dev-lua/lualdap')
-rw-r--r--dev-lua/lualdap/Manifest2
-rw-r--r--dev-lua/lualdap/lualdap-1.3.1.ebuild89
2 files changed, 91 insertions, 0 deletions
diff --git a/dev-lua/lualdap/Manifest b/dev-lua/lualdap/Manifest
index 9222f838afc5..72333d57ed28 100644
--- a/dev-lua/lualdap/Manifest
+++ b/dev-lua/lualdap/Manifest
@@ -1,4 +1,6 @@
AUX lualdap-1.3.0-lua5-4.patch 552 BLAKE2B d685838d05b9c2e4354abf436837940725f80fd8d81d806a383c0975bfb67ff8b679bd668bfbc524129a4e62cb0f4b5f77e070b1afeec85809a6533114fb1442 SHA512 fb1f7eea88afae2e854f0cabf115739ab4900247483f9d1d8f15f0c5dcaa85ee2c6e16414bce300450b1531a5c76516f8260000c54707d85547236a7185d65e8
DIST lualdap-1.3.0.tar.gz 81987 BLAKE2B cd25cada91a3c330fb72ee1106298442c64b1bcae4a57f48937efb4311f70b53c5a0e96587caab4b1950b16d9957bb8c25b2b9e0d3753089f06fbae64180ff04 SHA512 dea4282928c5138a327cd97d3d8049341fac17b5e853440f5b0a6e115e3400bac908f24827d48e36bfe81720c7d2bacdc50ae189953ecbcdfb27cb23b78d0de8
+DIST lualdap-1.3.1.tar.gz 82290 BLAKE2B 8436f1b3cf6497a3aea19de74a2e06bf2bb9ba4951d7357584c5b29a4d37ea2c5d4877d6ea3d44fca42d19207366abdf6a017ce1953d283a7bc243d230081077 SHA512 29d622ecf63214ac26ade71478c383e4f1b7468097bf19b99b8209b3f6cbb2078298a149d64ba8a7ca4abe97aa45550982792fa4ac0a8014f7daf709fe725e9f
EBUILD lualdap-1.3.0-r2.ebuild 1584 BLAKE2B 3221fd2bec9b524c8aca6c22961de9b4b60a413288f273f9d7085f3de8bffa5d90ee541aecec6aa7fc0d7b1f3214ef988ddca581cf0761b4722255d43cf7bdbd SHA512 02d811158ae71460337a11b6351ad3d383d61fc924ea90d08c3077de2a7df2c064743546f47ee8290a59d79b3b5076fcc54e0d6fb9c7fb2c1d254717667e875c
+EBUILD lualdap-1.3.1.ebuild 1535 BLAKE2B 722c563eeb0eab0d454071c51ee330e96f6b2230db07843c3b471619eb28e3c07145a18f7c4a6996bae5ed1d2989a62a40006ba1635c1986f947434cbc3e7248 SHA512 0f25161c676386ceb8382b0ec9947fd043e2ee962c88709c544b68d30dd3433d74d9a882ad1fd150832246e4eb7348a55d11a2611695dd825fa5ee13631ec648
MISC metadata.xml 442 BLAKE2B 7e232b04c35cca3befb630d268e162bc7bb095f9802d6aa01b15a78f0ac276d8de41cb02e1f6a94f16f79d7afcbd99bce981ff3f6e04459b71a846378e4d2911 SHA512 c94b931cf34eabb0efc127029419aafa87491a3453ccf3f0045e19b8d23893b9192bbdc22eaf654d2250955f0dd90a217b7118e89664b2572258044ad40e265e
diff --git a/dev-lua/lualdap/lualdap-1.3.1.ebuild b/dev-lua/lualdap/lualdap-1.3.1.ebuild
new file mode 100644
index 000000000000..bc819abad462
--- /dev/null
+++ b/dev-lua/lualdap/lualdap-1.3.1.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LUA_COMPAT=( lua5-{1..4} luajit )
+
+inherit lua toolchain-funcs
+
+DESCRIPTION="A lua binding for the OpenLDAP client libraries"
+HOMEPAGE="https://github.com/lualdap/lualdap"
+SRC_URI="https://github.com/lualdap/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~sparc ~x86"
+IUSE="test"
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+RESTRICT="test"
+
+RDEPEND="
+ net-nds/openldap:=
+ ${LUA_DEPS}
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ virtual/pkgconfig
+ test? ( ${RDEPEND} )
+"
+
+HTML_DOCS=( "docs/." )
+
+src_prepare() {
+ default
+
+ lua_copy_sources
+}
+
+lua_src_compile() {
+ pushd "${BUILD_DIR}" || die
+
+ local myemakeargs=(
+ "CC=$(tc-getCC)"
+ "LBER_LIBDIR=/usr/$(get_libdir)"
+ "LDAP_LIBDIR=/usr/$(get_libdir)"
+ "LUA_INCDIR=$(lua_get_include_dir)"
+ "LUA_LIBDIR=/usr/$(get_libdir)"
+ )
+
+ emake "${myemakeargs[@]}"
+
+ popd || die
+}
+
+src_compile() {
+ lua_foreach_impl lua_src_compile
+}
+
+lua_src_test() {
+ pushd "${BUILD_DIR}" || die
+ LUA_CPATH="./src/?.so" ${ELUA} tests/test.lua || die
+ popd || die
+}
+
+src_test() {
+ lua_foreach_impl lua_src_test
+}
+
+lua_src_install() {
+ pushd "${BUILD_DIR}" || die
+
+ # Workaround, as 'make install' does not create this directory
+ dodir "$(lua_get_cmod_dir)"
+
+ local myemakeargs=(
+ "DESTDIR=${ED}"
+ "INST_LIBDIR=$(lua_get_cmod_dir)"
+ )
+
+ emake "${myemakeargs[@]}" install
+
+ popd || die
+}
+
+src_install() {
+ lua_foreach_impl lua_src_install
+
+ einstalldocs
+}