commit:     a2a14d3c719cec92c88932a3dbec1daddfac0ed0
Author:     Conrad Kostecki <conrad <AT> kostecki <DOT> com>
AuthorDate: Tue Aug  7 17:13:45 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug  7 17:17:32 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2a14d3c

dev-libs/mini-xml: bump to version 2.11

Closes: https://bugs.gentoo.org/661102
Closes: https://github.com/gentoo/gentoo/pull/9220
Package-Manager: Portage-2.3.44, Repoman-2.3.10

 dev-libs/mini-xml/Manifest                        |  1 +
 dev-libs/mini-xml/files/respect-users-flags.patch | 30 +++++++++++++
 dev-libs/mini-xml/metadata.xml                    | 27 +++++++++++-
 dev-libs/mini-xml/mini-xml-2.11.ebuild            | 54 +++++++++++++++++++++++
 4 files changed, 111 insertions(+), 1 deletion(-)

diff --git a/dev-libs/mini-xml/Manifest b/dev-libs/mini-xml/Manifest
index 9e7f958442f..7bc51d65a52 100644
--- a/dev-libs/mini-xml/Manifest
+++ b/dev-libs/mini-xml/Manifest
@@ -1 +1,2 @@
 DIST mxml-2.10.tar.gz 265398 BLAKE2B 
eb3edec5615d727dec9285e2b74f4c877e8332be8f8183483e85a91d92ca1f48e5fc6d06afa3650c133c9762998abfdc8e846a9961ce55251d0c5bbcba0a970f
 SHA512 
c3838611979c4228df476166e4e987fc1ff8f9b8bd30139066b475dcd99e25be81ecc5171235bc80b1c2291c9d78c9ceae9a1dfc928272a983740d6a67372f5c
+DIST mxml-2.11.tar.gz 9164003 BLAKE2B 
d124b7d779e7ea9609a91b823fe7f6b45ab4049e79eb72729ca2ffec93a83479d5fed1ef21efc76881a11de58be71b1f3de79fc3e4f07c26f35d3f68e25c017b
 SHA512 
046421f91eea16f0ca99fbf611891c367ea9c3c54d04080d08acf108d7749ad9bbf2f4b3ef234a5130f00f77618196e2c5a245f32230daf645c1f775e961d378

diff --git a/dev-libs/mini-xml/files/respect-users-flags.patch 
b/dev-libs/mini-xml/files/respect-users-flags.patch
new file mode 100644
index 00000000000..90e49cf2198
--- /dev/null
+++ b/dev-libs/mini-xml/files/respect-users-flags.patch
@@ -0,0 +1,30 @@
+--- a/configure.ac     2017-10-28 18:23:11.000000000 +0200
++++ b/configure.ac     2018-07-13 23:29:39.710622168 +0200
+@@ -255,7 +255,7 @@
+       CFLAGS="-Wall -D_GNU_SOURCE $CFLAGS"
+ 
+       if test "x$OPTIM" = x; then
+-              OPTIM="-Os -g"
++              OPTIM=""
+       fi
+ 
+       if test "x$use_ansi" = xyes; then
+--- a/Makefile.in      2017-10-28 18:23:11.000000000 +0200
++++ b/Makefile.in      2018-07-13 23:27:51.101622582 +0200
+@@ -67,7 +67,6 @@
+ # Rules...
+ #
+ 
+-.SILENT:
+ .SUFFIXES:    .c .man .o
+ .c.o:
+       echo Compiling $<
+@@ -271,7 +270,7 @@
+ 
+ libmxml.so.1.6:       $(LIBOBJS)
+       echo Creating $@...
+-      $(DSO) $(DSOFLAGS) -o libmxml.so.1.6 $(LIBOBJS)
++      $(DSO) $(DSOFLAGS) $(LDFLAGS) -o libmxml.so.1.6 $(LIBOBJS)
+       $(RM) libmxml.so libmxml.so.1
+       $(LN) libmxml.so.1.6 libmxml.so
+       $(LN) libmxml.so.1.6 libmxml.so.1

diff --git a/dev-libs/mini-xml/metadata.xml b/dev-libs/mini-xml/metadata.xml
index 7a38bb90096..a4af87ab4c4 100644
--- a/dev-libs/mini-xml/metadata.xml
+++ b/dev-libs/mini-xml/metadata.xml
@@ -1,5 +1,30 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
 <pkgmetadata>
-       <!-- maintainer-needed -->
+       <maintainer type="person">
+               <email>ck+gen...@bl4ckb0x.de</email>
+               <name>Conrad Kostecki</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>proxy-ma...@gentoo.org</email>
+               <name>Proxy Maintainers</name>
+       </maintainer>
+       <longdescription>
+               Mini-XML is a small XML parsing library that you can use to 
read XML data files or strings
+               in your application without requiring large non-standard 
libraries.
+               Mini-XML provides the following functionality:
+               - Reading of UTF-8 and UTF-16 and writing of UTF-8 encoded XML 
files and strings.
+               - Data is stored in a linked-list tree structure, preserving 
the XML data hierarchy.
+               - SAX (streamed) reading of XML files and strings to minimize 
memory usage.
+               - Supports arbitrary element names, attributes, and attribute 
values with no preset limits, just available memory.
+               - Supports integer, real, opaque ("cdata"), and text data types 
in "leaf" nodes.
+               - Functions for creating and managing trees of data.
+               - Find" and "walk" functions for easily locating and navigating 
trees of data.
+               Mini-XML doesn't do validation or other types of processing on 
the data based
+               upon schema files or other sources of definition information.
+       </longdescription>
+       <upstream>
+               <bugs-to>https://github.com/michaelrsweet/mxml/issues</bugs-to>
+               <remote-id type="github">michaelrsweet/mxml</remote-id>
+       </upstream>
 </pkgmetadata>

diff --git a/dev-libs/mini-xml/mini-xml-2.11.ebuild 
b/dev-libs/mini-xml/mini-xml-2.11.ebuild
new file mode 100644
index 00000000000..6a29195944d
--- /dev/null
+++ b/dev-libs/mini-xml/mini-xml-2.11.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+MY_P="${P/mini-xml/mxml}"
+
+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/mxml/releases/download/v${PV}/${MY_P}.tar.gz";
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+LICENSE="Mini-XML"
+SLOT="0"
+IUSE="static-libs test threads"
+
+DEPEND="virtual/pkgconfig"
+
+S="${WORKDIR}"
+
+PATCHES=( "${FILESDIR}"/respect-users-flags.patch )
+
+src_prepare() {
+       default
+
+       eautoconf
+}
+
+src_configure() {
+       local myeconfopts=(
+               $(use_enable threads)
+       )
+
+       econf "${myeconfopts[@]}"
+}
+
+src_compile() {
+       emake libmxml.so.1.6 doc/mxml.man mxmldoc
+}
+
+src_test() {
+       emake testmxml
+}
+
+src_install() {
+       emake DSTROOT="${ED}" install
+
+       if ! use static-libs; then
+               rm "${ED%/}"/usr/$(get_libdir)/libmxml.a || die
+       fi
+}

Reply via email to