From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0F05315A7D9 for ; Wed, 15 Mar 2023 11:39:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F18C0E086D; Wed, 15 Mar 2023 11:39:22 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6DCFAE086D for ; Wed, 15 Mar 2023 11:39:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 22F3D33FA71 for ; Wed, 15 Mar 2023 11:39:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C04CB7F9 for ; Wed, 15 Mar 2023 11:39:18 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1678880349.ed5b7476b4ba9dba0a027726f3a2e416b2679112.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/lualdap/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lua/lualdap/Manifest dev-lua/lualdap/lualdap-1.3.1.ebuild X-VCS-Directories: dev-lua/lualdap/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: ed5b7476b4ba9dba0a027726f3a2e416b2679112 X-VCS-Branch: master Date: Wed, 15 Mar 2023 11:39:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8b199075-24f2-4ddb-98b6-98572c328298 X-Archives-Hash: 30cf2a6dedf51fd98def3f23722dbb26 commit: ed5b7476b4ba9dba0a027726f3a2e416b2679112 Author: Conrad Kostecki gentoo org> AuthorDate: Wed Mar 15 11:38:44 2023 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Wed Mar 15 11:39:09 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed5b7476 dev-lua/lualdap: add 1.3.1 Signed-off-by: Conrad Kostecki gentoo.org> dev-lua/lualdap/Manifest | 1 + dev-lua/lualdap/lualdap-1.3.1.ebuild | 89 ++++++++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+) diff --git a/dev-lua/lualdap/Manifest b/dev-lua/lualdap/Manifest index fee4147b5b72..acdc409ca153 100644 --- a/dev-lua/lualdap/Manifest +++ b/dev-lua/lualdap/Manifest @@ -1 +1,2 @@ DIST lualdap-1.3.0.tar.gz 81987 BLAKE2B cd25cada91a3c330fb72ee1106298442c64b1bcae4a57f48937efb4311f70b53c5a0e96587caab4b1950b16d9957bb8c25b2b9e0d3753089f06fbae64180ff04 SHA512 dea4282928c5138a327cd97d3d8049341fac17b5e853440f5b0a6e115e3400bac908f24827d48e36bfe81720c7d2bacdc50ae189953ecbcdfb27cb23b78d0de8 +DIST lualdap-1.3.1.tar.gz 82290 BLAKE2B 8436f1b3cf6497a3aea19de74a2e06bf2bb9ba4951d7357584c5b29a4d37ea2c5d4877d6ea3d44fca42d19207366abdf6a017ce1953d283a7bc243d230081077 SHA512 29d622ecf63214ac26ade71478c383e4f1b7468097bf19b99b8209b3f6cbb2078298a149d64ba8a7ca4abe97aa45550982792fa4ac0a8014f7daf709fe725e9f 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 +}