diff options
Diffstat (limited to 'dev-libs/mxml')
-rw-r--r-- | dev-libs/mxml/Manifest | 3 | ||||
-rw-r--r-- | dev-libs/mxml/files/mxml-4.0.2-rename-man-page.patch | 20 | ||||
-rw-r--r-- | dev-libs/mxml/mxml-4.0.2.ebuild | 63 |
3 files changed, 86 insertions, 0 deletions
diff --git a/dev-libs/mxml/Manifest b/dev-libs/mxml/Manifest index 7c2cb20625c6..0070c3a26e85 100644 --- a/dev-libs/mxml/Manifest +++ b/dev-libs/mxml/Manifest @@ -1,3 +1,6 @@ +AUX mxml-4.0.2-rename-man-page.patch 812 BLAKE2B 1b87863000d0ff6323eab7d935c9a492d819a8201127bd8acc0f9c0734203721ad6ef045875874684b19de4c3c56a6677f7c5d005a10d58bfe121969d4e9e1eb SHA512 f842f2e531c10aa172c9bac60f34ff30003b5c954892f33528c85276cf8452c1ccd872c05e06c553e76c2af7d3cc01061f915ceb577ee6cc84b51a4c4ca57811 DIST mxml-3.3.1.tar.gz 1554784 BLAKE2B e0d599fd947dfef72edae40c1e70ea76c92105128dd46e772a7c71f9293cab3339c980396dffe105246cad64d0474935cc1939005ad9a2bffc8e8107f025a466 SHA512 43e6a92806d9c3f5db39fbf960c15ebfa6d92ef98274b7ce39b57724d6c26ad4362d6d8f3c1023efda92e6a815df068e5038a0cd479562b6be9dbdda8e827a41 +DIST mxml-4.0.2.tar.gz 1576722 BLAKE2B b5016adaf88801ec31852231ef31389d7d1d43b214d6b99e4e2b6bbfa47ba3c68fa9ac6b2ea332a61bf71688684c81e6863f1da38e30d4509cfa20f4ae943d19 SHA512 41fbd71bd390e63f0d44d006a3bcbdf95b7d3a09ea69a90d3dc86717d6f7edcd93875e6343b6d9f56ce8b2c3d34fdd4bcbb9992fb81c3392fb3deb5e3beb9482 EBUILD mxml-3.3.1-r1.ebuild 1494 BLAKE2B ab7d3ad378c98fffb924dedf724181ff267b43f73dd18747b15c55dfc8838c2f57d728c5862d4c92acf88b6b122d13194f60b453df54bc022f950b886a88f40f SHA512 785dcffc1909acbced83f29755983cfc07a9392f47f2908bd115230fa608c158651645659686efc0c36e937444c943b4985a5fb32cbae00d347ad65c15dca457 +EBUILD mxml-4.0.2.ebuild 1369 BLAKE2B 3a465556e30491848accaa0c068c1d18c51ccc8e366d46200e214e7d917448185da11e4e487cf9191a9eff9df72e6b8dcfdd2031bf69074148e5c9d555c26ebd SHA512 83706c46c85048c77d3ada08999d84ad205f0267219470da0e663730a8894973c2416b2e92b9e296a67d2135cfa71108004abb6e2eefd6a1a25f5cabf3d1236e MISC metadata.xml 1380 BLAKE2B ba169e7d7bf4572b56e2cc8923a48fce4b31af61107bd908d77f4a211aa096b4f0adfed9ae1d52cbad6b4309793f545cbd562a553e0c5aa1d0786b088f472cd7 SHA512 2895d86c62cb799302ba1515a3b638d52ca253f78e07bcc542bbb99338b84bc2079d48f42fb85a627e9252a545a853629943f9a904ead600aff161a24e1f1658 diff --git a/dev-libs/mxml/files/mxml-4.0.2-rename-man-page.patch b/dev-libs/mxml/files/mxml-4.0.2-rename-man-page.patch new file mode 100644 index 000000000000..a37a8fd56a90 --- /dev/null +++ b/dev-libs/mxml/files/mxml-4.0.2-rename-man-page.patch @@ -0,0 +1,20 @@ +--- a/Makefile.in ++++ b/Makefile.in +@@ -219,7 +219,7 @@ + $(INSTALL_DATA) mxml4.pc $(BUILDROOT)$(libdir)/pkgconfig/$(MXML_PC) + echo Installing man pages in $(BUILDROOT)$(mandir)... + $(INSTALL_DIR) $(BUILDROOT)$(mandir)/man3 +- $(INSTALL_MAN) doc/mxml.3 $(BUILDROOT)$(mandir)/man3/mxml.3 ++ $(INSTALL_MAN) doc/mxml.3 $(BUILDROOT)$(mandir)/man3/mxml4.3 + + install-libmxml.a: libmxml.a + echo Installing libmxml.a to $(BUILDROOT)$(libdir)... +@@ -276,7 +276,7 @@ + echo Uninstalling pkgconfig files from $(BUILDROOT)$(libdir)/pkgconfig... + $(RM) $(BUILDROOT)$(libdir)/pkgconfig/mxml.pc + echo Uninstalling man pages from $(BUILDROOT)$(mandir)... +- $(RM) $(BUILDROOT)$(mandir)/man3/mxml.3 ++ $(RM) $(BUILDROOT)$(mandir)/man3/mxml4.3 + + uninstall-libmxml.a: + echo Uninstalling libmxml.a from $(BUILDROOT)$(libdir)... diff --git a/dev-libs/mxml/mxml-4.0.2.ebuild b/dev-libs/mxml/mxml-4.0.2.ebuild new file mode 100644 index 000000000000..4725865ea65f --- /dev/null +++ b/dev-libs/mxml/mxml-4.0.2.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2024 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 ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="static-libs test threads" +RESTRICT="!test? ( test )" + +BDEPEND="virtual/pkgconfig" + +PATCHES=( "${FILESDIR}/${PN}-4.0.2-rename-man-page.patch" ) + +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 +} |