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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 823A613835C for ; Tue, 16 Mar 2021 17:37:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BFE97E0857; Tue, 16 Mar 2021 17:37:09 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A8B5EE0857 for ; Tue, 16 Mar 2021 17:37:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A3D79340D5B for ; Tue, 16 Mar 2021 17:37:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E0DC15CE for ; Tue, 16 Mar 2021 17:37:05 +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: <1615915721.e06f3b1e4608fe41898d146d410c1e196d5c486b.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.2.5.ebuild X-VCS-Directories: dev-lua/lualdap/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: e06f3b1e4608fe41898d146d410c1e196d5c486b X-VCS-Branch: master Date: Tue, 16 Mar 2021 17:37:05 +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: 03bc4244-278b-4a97-9377-5715587b3b65 X-Archives-Hash: 3ace78d12901fcb2450adeb1ccedbd4d commit: e06f3b1e4608fe41898d146d410c1e196d5c486b Author: Conrad Kostecki gentoo org> AuthorDate: Tue Mar 16 17:21:15 2021 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Tue Mar 16 17:28:41 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e06f3b1e dev-lua/lualdap: add lua5-4 support Package-Manager: Portage-3.0.16, Repoman-3.0.2 Signed-off-by: Conrad Kostecki gentoo.org> dev-lua/lualdap/Manifest | 1 + dev-lua/lualdap/lualdap-1.2.5.ebuild | 97 ++++++++++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) diff --git a/dev-lua/lualdap/Manifest b/dev-lua/lualdap/Manifest index e9f4bc8976a..d4ced84947a 100644 --- a/dev-lua/lualdap/Manifest +++ b/dev-lua/lualdap/Manifest @@ -1 +1,2 @@ +DIST lua-compat-5.3-0.10.tar.gz 53695 BLAKE2B e570aedb23b8ed7ca38c4316ffab25b93a0f9f6f0fae79af563ca8a81dd6453ac273e1f9e70674c484a2dec68749e7d53a1c1736a72616c210b8e38a31b3f191 SHA512 f7f39085f4f6b16095f41e635b4c5477b3dab5e42b5b65a9d522941a3807ea521d4a27a77293a3c9d0ecea78a1f6c2a2497394b2d220f4d7d65e23510563d46d DIST lualdap-1.2.5.tar.gz 85920 BLAKE2B 14015fe258fa391e08fc9b6bdb7a71dae10fbd84636cc3d84c446d67f9d0ea925c0086343a29ce21b81f77c87da37040560c631cdf3df7c8d3c255e5913fd985 SHA512 4fbd7bcea2e55a3b165a7316e4f6c45aee22506915c4cc204d1b5006adbf95611ebf4558c1ef1511f90d7142571cff37ea24952072dc7ecb13bbbe06aef32e72 diff --git a/dev-lua/lualdap/lualdap-1.2.5.ebuild b/dev-lua/lualdap/lualdap-1.2.5.ebuild new file mode 100644 index 00000000000..d8210cb3aa7 --- /dev/null +++ b/dev-lua/lualdap/lualdap-1.2.5.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +LUA_COMPAT=( lua5-{1..4} luajit ) +MY_PN_LUACOMPAT="lua-compat-5.3" +MY_PV_LUACOMPAT="0.10" +MY_P_LUACOMPAT="${MY_PN_LUACOMPAT}-${MY_PV_LUACOMPAT}" + +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 + https://github.com/keplerproject/${MY_PN_LUACOMPAT}/archive/v${MY_PV_LUACOMPAT}.tar.gz -> ${MY_P_LUACOMPAT}.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~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=( "doc/us/." ) + +src_prepare() { + default + + # Copy current lua-compat-5.3 files to support lua5-4 + cp ../${MY_P_LUACOMPAT}/c-api/* src || die + + 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)" + ) + + emake "${myemakeargs[@]}" + + popd +} + +src_compile() { + lua_foreach_impl lua_src_compile +} + +lua_src_test() { + pushd "${BUILD_DIR}" || die + LUA_CPATH="./src/?.so" ${ELUA} tests/test.lua + popd +} + +src_install() { + 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 +} + +src_install() { + lua_foreach_impl lua_src_install + + einstalldocs +}