diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-07-25 20:57:05 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-07-25 20:57:05 +0100 |
commit | 26262b314fa723a2e86f4a9b8b344a72eb9c0393 (patch) | |
tree | 38c75311fb4f334d6369b07cc6094e809f910dba /dev-libs/mxml/mxml-3.3.1.ebuild | |
parent | 22899eb46c1c332d9a8a995c0be0b965fb1bcfc3 (diff) |
gentoo auto-resync : 25:07:2022 - 20:57:05
Diffstat (limited to 'dev-libs/mxml/mxml-3.3.1.ebuild')
-rw-r--r-- | dev-libs/mxml/mxml-3.3.1.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/dev-libs/mxml/mxml-3.3.1.ebuild b/dev-libs/mxml/mxml-3.3.1.ebuild new file mode 100644 index 000000000000..e7c70782ab52 --- /dev/null +++ b/dev-libs/mxml/mxml-3.3.1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +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="0" +KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86" +IUSE="static-libs threads" + +BDEPEND="virtual/pkgconfig" + +src_prepare() { + default + + # Don't run always tests + # Enable verbose compiling + sed -e '/ALLTARGETS/s/testmxml//g' -e '/.SILENT:/d' -i Makefile.in || die + + # Build only static-libs, when requested by user, also build docs without static-libs in that case + if ! use static-libs; then + local mysedopts=( + -e '/^install:/s/install-libmxml.a//g' + -e '/^mxml.xml:/s/-static//g' + -e '/^mxml.epub:/s/-static//g' + -e '/^valgrind/s/-static//g' + -e 's/.\/mxmldoc-static/LD_LIBRARY_PATH="." .\/mxmldoc/g' + ) + sed "${mysedopts[@]}" -i Makefile.in || die + fi + + eautoconf +} + +src_configure() { + local myeconfargs=( + $(use_enable threads) + --with-docdir=/usr/share/doc/"${PF}" + ) + + econf "${myeconfargs[@]}" +} + +src_test() { + emake testmxml +} + +src_install() { + emake DSTROOT="${ED}" install +} |