commit:     7864d0488085ee3f852e77094ac0f7a6bf499e9f
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 19 22:38:26 2025 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Sun Jan 19 22:38:26 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7864d048

dev-libs/mxml: add 4.0.4

Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 dev-libs/mxml/Manifest          |  1 +
 dev-libs/mxml/mxml-4.0.4.ebuild | 61 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 62 insertions(+)

diff --git a/dev-libs/mxml/Manifest b/dev-libs/mxml/Manifest
index f48bdf977e33..440afe91147e 100644
--- a/dev-libs/mxml/Manifest
+++ b/dev-libs/mxml/Manifest
@@ -1,2 +1,3 @@
 DIST mxml-3.3.1.tar.gz 1554784 BLAKE2B 
e0d599fd947dfef72edae40c1e70ea76c92105128dd46e772a7c71f9293cab3339c980396dffe105246cad64d0474935cc1939005ad9a2bffc8e8107f025a466
 SHA512 
43e6a92806d9c3f5db39fbf960c15ebfa6d92ef98274b7ce39b57724d6c26ad4362d6d8f3c1023efda92e6a815df068e5038a0cd479562b6be9dbdda8e827a41
 DIST mxml-4.0.3.tar.gz 1576958 BLAKE2B 
fe65513190bc8c03b8a66fb6711f9dcc846c19cdf67c17908fd5795408fead3e6ae2c11c8d4ca1c10be7b68d54ab87c602ab6ca3e5386d26ff75753d4dbe6476
 SHA512 
5855ea90c32a250ca0943389c768f1b9d9a231762d9b678d56bcb55c12d90a51b28c66940355e945b3d315bd764001e05ede576de976132768eb1eecb2667bba
+DIST mxml-4.0.4.tar.gz 1576163 BLAKE2B 
dd7cbaf3c918589afd6c452cf8c279f6efa563a32214478f5bf0896cbe3b11a5b626e7670d17cd7e83f4c20487c40d5717fbfdd62b1ce6ef120780f28903bfb8
 SHA512 
11ef51b7e8abe8f5b1728ee072217605456e11e56bd0abc5375820c1a0e30ea1a6f0a306e65a40c1cdda3394486b51e2d67cc9081113dbc570b6d9d835f5890f

diff --git a/dev-libs/mxml/mxml-4.0.4.ebuild b/dev-libs/mxml/mxml-4.0.4.ebuild
new file mode 100644
index 000000000000..437234e08b84
--- /dev/null
+++ b/dev-libs/mxml/mxml-4.0.4.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools toolchain-funcs
+
+DESCRIPTION="A small XML parsing library that you can use to read XML data 
files or strings"
+HOMEPAGE="
+       https://github.com/michaelrsweet/mxml
+       https://www.msweet.org/mxml/
+"
+SRC_URI="https://github.com/michaelrsweet/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="Mini-XML"
+SLOT="4"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="static-libs test threads"
+RESTRICT="!test? ( test )"
+
+BDEPEND="virtual/pkgconfig"
+
+src_prepare() {
+       default
+
+       # Don't hardcode FORTIFY_SOURCE
+       sed -e 's/-D_FORTIFY_SOURCE=3//g' -i configure || die
+       sed -e 's/-D_FORTIFY_SOURCE=3//g' -i configure.ac || die
+
+       # Don't run always tests
+       # Enable verbose compiling
+       sed -e '/ALLTARGETS/s/testmxml//g' -e '/.SILENT:/d' -i Makefile.in || 
die
+       eautoconf
+}
+
+src_configure() {
+       local myeconfargs=(
+               AR="$(tc-getAR)"
+               $(use_enable static-libs static)
+               $(use_enable threads)
+               --with-docdir=/usr/share/doc/"${PF}"
+               --with-dsoflags="${LDFLAGS}"
+               --with-ldflags="${LDFLAGS}"
+
+       )
+
+       econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+       default
+       use test && emake testmxml
+}
+
+src_test() {
+       emake test
+}
+
+src_install() {
+       emake DSTROOT="${ED}" install
+}

Reply via email to