1 |
commit: edc6326daec401769f323417268d1567c8817609 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 7 11:58:52 2021 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 7 12:37:07 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=edc6326d |
7 |
|
8 |
dev-libs/mxml: bump to version 3.3 |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
12 |
|
13 |
dev-libs/mxml/Manifest | 1 + |
14 |
dev-libs/mxml/mxml-3.3.ebuild | 59 +++++++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 60 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/mxml/Manifest b/dev-libs/mxml/Manifest |
18 |
index 6a17f8cd6e2..5e6f1890a14 100644 |
19 |
--- a/dev-libs/mxml/Manifest |
20 |
+++ b/dev-libs/mxml/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST mxml-3.2.tar.gz 9267930 BLAKE2B f244dab599233b8a26aba5a11526979bf2f4d20b5fce67858f7759abc5bd2f3e2aac19d512c887248839d130cf1314065687cd1ccf91edbf5533ae2d342f286b SHA512 ed3f2b361394ef225a708b0032976a3d191d5eaea3022e190b29e0ee140e8f998f1d65c64e4898872b169516cee44f4f5f18401c6410c3b5aa1e9680b23e8675 |
23 |
+DIST mxml-3.3.tar.gz 1550358 BLAKE2B 2b815cd8c2031099e2767caad93cc389962ec547fadade92b0a7fb48a2352fd0940c9e434c2081b7419e0cfb489266d7116dacefd6fb9d7ce40d6de0f49cb2a6 SHA512 5a8453bec17e46afc9b100df03dba2219353a076152f34a5dc41b7f042fa570723effc3472680a4380674c412c3ab31e017f6704b1e8308227a4d9b3f13cb197 |
24 |
|
25 |
diff --git a/dev-libs/mxml/mxml-3.3.ebuild b/dev-libs/mxml/mxml-3.3.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..a0e3cdb5191 |
28 |
--- /dev/null |
29 |
+++ b/dev-libs/mxml/mxml-3.3.ebuild |
30 |
@@ -0,0 +1,59 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
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 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
48 |
+IUSE="static-libs threads" |
49 |
+ |
50 |
+BDEPEND="virtual/pkgconfig" |
51 |
+ |
52 |
+src_prepare() { |
53 |
+ default |
54 |
+ |
55 |
+ # Don't run always tests |
56 |
+ # Enable verbose compiling |
57 |
+ sed -e '/ALLTARGETS/s/testmxml//g' -e '/.SILENT:/d' -i Makefile.in || die |
58 |
+ |
59 |
+ # Build only static-libs, when requested by user, also build docs without static-libs in that case |
60 |
+ if ! use static-libs; then |
61 |
+ local mysedopts=( |
62 |
+ -e '/^install:/s/install-libmxml.a//g' |
63 |
+ -e '/^mxml.xml:/s/-static//g' |
64 |
+ -e '/^mxml.epub:/s/-static//g' |
65 |
+ -e '/^valgrind/s/-static//g' |
66 |
+ -e 's/.\/mxmldoc-static/LD_LIBRARY_PATH="." .\/mxmldoc/g' |
67 |
+ ) |
68 |
+ sed "${mysedopts[@]}" -i Makefile.in || die |
69 |
+ fi |
70 |
+ |
71 |
+ eautoconf |
72 |
+} |
73 |
+ |
74 |
+src_configure() { |
75 |
+ local myeconfargs=( |
76 |
+ $(use_enable threads) |
77 |
+ --with-docdir=/usr/share/doc/"${PF}" |
78 |
+ ) |
79 |
+ |
80 |
+ econf "${myeconfargs[@]}" |
81 |
+} |
82 |
+ |
83 |
+src_test() { |
84 |
+ emake testmxml |
85 |
+} |
86 |
+ |
87 |
+src_install() { |
88 |
+ emake DSTROOT="${ED}" install |
89 |
+} |