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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9771515808B for ; Wed, 30 Mar 2022 20:58:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 89584E01B5; Wed, 30 Mar 2022 20:58:54 +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 882AFE01B5 for ; Wed, 30 Mar 2022 20:58:53 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AC0A5341591 for ; Wed, 30 Mar 2022 20:58:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C5DE3250 for ; Wed, 30 Mar 2022 20:58:49 +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: <1648673871.92d2a4887341427bacb8829676b2fa7ebd8b4ce8.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/luaexpat/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lua/luaexpat/Manifest dev-lua/luaexpat/luaexpat-1.4.0.ebuild dev-lua/luaexpat/metadata.xml X-VCS-Directories: dev-lua/luaexpat/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: 92d2a4887341427bacb8829676b2fa7ebd8b4ce8 X-VCS-Branch: master Date: Wed, 30 Mar 2022 20:58:49 +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: d51547b6-d1f1-43c9-b407-92afe6b3e3ce X-Archives-Hash: 6be196144a61d7790344bc9efd82b99b commit: 92d2a4887341427bacb8829676b2fa7ebd8b4ce8 Author: Conrad Kostecki gentoo org> AuthorDate: Wed Mar 30 20:56:15 2022 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Wed Mar 30 20:57:51 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92d2a488 dev-lua/luaexpat: add 1.4.0 Closes: https://bugs.gentoo.org/834411 Signed-off-by: Conrad Kostecki gentoo.org> dev-lua/luaexpat/Manifest | 1 + dev-lua/luaexpat/luaexpat-1.4.0.ebuild | 73 ++++++++++++++++++++++++++++++++++ dev-lua/luaexpat/metadata.xml | 4 ++ 3 files changed, 78 insertions(+) diff --git a/dev-lua/luaexpat/Manifest b/dev-lua/luaexpat/Manifest index 5913ec63d907..5449c7b27685 100644 --- a/dev-lua/luaexpat/Manifest +++ b/dev-lua/luaexpat/Manifest @@ -1 +1,2 @@ DIST luaexpat-1.3.0.tar.gz 29567 BLAKE2B 176cb107e6047b15338ff45751af82389920e4210d40bd0b4400e549130a4983c843f7a64bb7b2fba37e36eb592e850d06efe196f8e837e79e50c8d135dbe763 SHA512 91884653310e2dc89ade6d1653875ac8607640a21853d3ccb1fd0f833812e41981fad5c40101732ec249104d2c50c9a332208d1e44423b8428065a223c60b4ae +DIST luaexpat-1.4.0.tar.gz 51890 BLAKE2B 6e2cda190e7b2ebe2bda64398a447155df3ccdb83f1b4ff78aead981c38cf6705f896ba31ac0d557ec55f750919b6b2b07205c533339d7aa8e0f88ee6b0991fd SHA512 ba1a98267757ec5f2464b8d5e903f69102ca991c4034939d02d871d014463a8e29815d1294edc7fa3a1c4b679c5e42fdc1a19b2a1c1654ed1f382f779a213375 diff --git a/dev-lua/luaexpat/luaexpat-1.4.0.ebuild b/dev-lua/luaexpat/luaexpat-1.4.0.ebuild new file mode 100644 index 000000000000..b0c2791bf0e6 --- /dev/null +++ b/dev-lua/luaexpat/luaexpat-1.4.0.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2022 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 SAX XML parser based on the Expat library" +HOMEPAGE="https://github.com/lunarmodules/luaexpat" +SRC_URI="https://github.com/lunarmodules/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +REQUIRED_USE="${LUA_REQUIRED_USE}" + +RDEPEND=" + dev-libs/expat + ${LUA_DEPS} +" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +HTML_DOCS=( "docs/." ) + +src_prepare() { + default + + # Respect users CFLAGS + sed -e 's/-O2//g' -i Makefile || die + + lua_copy_sources +} + +lua_src_compile() { + pushd "${BUILD_DIR}" || die + + local myemakeargs=( + "CC=$(tc-getCC)" + "LUA_INC=$(lua_get_CFLAGS)" + ) + + emake "${myemakeargs[@]}" + + popd +} + +src_compile() { + lua_foreach_impl lua_src_compile +} + +lua_src_install() { + pushd "${BUILD_DIR}" || die + + local myemakeargs=( + "DESTDIR=${ED}" + "LUA_CDIR=$(lua_get_cmod_dir)" + "LUA_INC=$(lua_get_include_dir)" + "LUA_LDIR=$(lua_get_lmod_dir)" + ) + + emake "${myemakeargs[@]}" install + + popd +} + +src_install() { + lua_foreach_impl lua_src_install + + einstalldocs +} diff --git a/dev-lua/luaexpat/metadata.xml b/dev-lua/luaexpat/metadata.xml index a9d447e11be2..7ec4c4086c74 100644 --- a/dev-lua/luaexpat/metadata.xml +++ b/dev-lua/luaexpat/metadata.xml @@ -13,4 +13,8 @@ conikost@gentoo.org Conrad Kostecki + + https://github.com/lunarmodules/luaexpat/issues + luaexpat/issues +