Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/mxml/
Date: Sat, 10 Oct 2020 16:16:20
Message-Id: 1602346568.198fbc1358474f003a47dd46bd389970262a2621.conikost@gentoo
1 commit: 198fbc1358474f003a47dd46bd389970262a2621
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 10 16:15:37 2020 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 10 16:16:08 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=198fbc13
7
8 dev-libs/mxml: bump to version 3.2
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.1
11 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
12
13 dev-libs/mxml/Manifest | 1 +
14 dev-libs/mxml/mxml-3.2.ebuild | 62 +++++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 63 insertions(+)
16
17 diff --git a/dev-libs/mxml/Manifest b/dev-libs/mxml/Manifest
18 index 1558e0e6048..ff44384f5f2 100644
19 --- a/dev-libs/mxml/Manifest
20 +++ b/dev-libs/mxml/Manifest
21 @@ -1 +1,2 @@
22 DIST mxml-3.1.tar.gz 9267206 BLAKE2B d5cee24804978b474bf5b58c7a5932b50d7197a35e65da20c2517ce7db01d22027449348d6b15ddf0d186219ac81993055deaa4af9f48439273f8d2d74b27edd SHA512 8f8923b394093db5c471c52c17185916bc3c91f66c97de66919bfef2a09f271879a52f285e5fc4ded03484a3f83ba8fdb588d985b06e0c25ee001f1a80ffa586
23 +DIST mxml-3.2.tar.gz 9267930 BLAKE2B f244dab599233b8a26aba5a11526979bf2f4d20b5fce67858f7759abc5bd2f3e2aac19d512c887248839d130cf1314065687cd1ccf91edbf5533ae2d342f286b SHA512 ed3f2b361394ef225a708b0032976a3d191d5eaea3022e190b29e0ee140e8f998f1d65c64e4898872b169516cee44f4f5f18401c6410c3b5aa1e9680b23e8675
24
25 diff --git a/dev-libs/mxml/mxml-3.2.ebuild b/dev-libs/mxml/mxml-3.2.ebuild
26 new file mode 100644
27 index 00000000000..e4fccf7d1f7
28 --- /dev/null
29 +++ b/dev-libs/mxml/mxml-3.2.ebuild
30 @@ -0,0 +1,62 @@
31 +# Copyright 1999-2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit autotools
37 +
38 +DESCRIPTION="A small XML parsing library that you can use to read XML data files or strings"
39 +HOMEPAGE="
40 + https://github.com/michaelrsweet/mxml
41 + https://www.msweet.org/mxml/
42 +"
43 +SRC_URI="https://github.com/michaelrsweet/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="Mini-XML"
46 +SLOT="0"
47 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
48 +IUSE="static-libs threads"
49 +
50 +BDEPEND="virtual/pkgconfig"
51 +
52 +src_prepare() {
53 + default
54 +
55 + # Respect users CFLAGS
56 + sed -e 's/-Os -g//' -i configure.ac || die
57 +
58 + # Don't run always tests
59 + # Enable verbose compiling
60 + sed -e '/ALLTARGETS/s/testmxml//g' -e '/.SILENT:/d' -i Makefile.in || die
61 +
62 + # Build only static-libs, when requested by user, also build docs without static-libs in that case
63 + if ! use static-libs; then
64 + local mysedopts=(
65 + -e '/^install:/s/install-libmxml.a//g'
66 + -e '/^mxml.xml:/s/-static//g'
67 + -e '/^mxml.epub:/s/-static//g'
68 + -e '/^valgrind/s/-static//g'
69 + -e 's/.\/mxmldoc-static/LD_LIBRARY_PATH="." .\/mxmldoc/g'
70 + )
71 + sed "${mysedopts[@]}" -i Makefile.in || die
72 + fi
73 +
74 + eautoconf
75 +}
76 +
77 +src_configure() {
78 + local myeconfargs=(
79 + $(use_enable threads)
80 + --with-docdir=/usr/share/doc/"${PF}"
81 + )
82 +
83 + econf "${myeconfargs[@]}"
84 +}
85 +
86 +src_test() {
87 + emake testmxml
88 +}
89 +
90 +src_install() {
91 + emake DSTROOT="${ED}" install
92 +}