summaryrefslogtreecommitdiff
path: root/dev-lua/luaexpat
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lua/luaexpat')
-rw-r--r--dev-lua/luaexpat/Manifest1
-rw-r--r--dev-lua/luaexpat/luaexpat-1.5.2.ebuild73
-rw-r--r--dev-lua/luaexpat/metadata.xml12
3 files changed, 86 insertions, 0 deletions
diff --git a/dev-lua/luaexpat/Manifest b/dev-lua/luaexpat/Manifest
new file mode 100644
index 000000000000..2dd5a32613c9
--- /dev/null
+++ b/dev-lua/luaexpat/Manifest
@@ -0,0 +1 @@
+DIST luaexpat-1.5.2.tar.gz 54072 BLAKE2B 7d7a9dbbb28e4fff7adfffaf910546065b3f781934004318566ec13838007ee135247c75555e9b34f530e2f72f65156310454af73dfa6ac48aad50d4e0679efc SHA512 a2a04b2bb76a10a8a0da077b53d22b6e84460f416486a4b006d3df4991cff011dc91a225ab25f994a2713632d562b13d4341530bbc7ede4fd660a6fce24eed3c
diff --git a/dev-lua/luaexpat/luaexpat-1.5.2.ebuild b/dev-lua/luaexpat/luaexpat-1.5.2.ebuild
new file mode 100644
index 000000000000..821355f38a0a
--- /dev/null
+++ b/dev-lua/luaexpat/luaexpat-1.5.2.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LUA_COMPAT=( lua5-{1,3,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 ~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
new file mode 100644
index 000000000000..ca32d13b5567
--- /dev/null
+++ b/dev-lua/luaexpat/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>conikost@gentoo.org</email>
+ <name>Conrad Kostecki</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://github.com/lunarmodules/luaexpat/issues</bugs-to>
+ </upstream>
+ <origin>baldeagleos-repo</origin>
+</pkgmetadata>