summaryrefslogtreecommitdiff
path: root/dev-libs/mxml
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-10-27 12:48:57 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-10-27 12:48:57 +0100
commit70b82ae359a5538711e103b0e8dfb92654296644 (patch)
tree8412b84ff9ce02a22be5251052b00feefe1d5b70 /dev-libs/mxml
parent64e107b9b6058580ff0432107eb37cefb0b2a7d8 (diff)
gentoo resync : 27.10.2018
Diffstat (limited to 'dev-libs/mxml')
-rw-r--r--dev-libs/mxml/Manifest8
-rw-r--r--dev-libs/mxml/files/respect-users-flags.patch30
-rw-r--r--dev-libs/mxml/metadata.xml30
-rw-r--r--dev-libs/mxml/mxml-2.10.ebuild57
-rw-r--r--dev-libs/mxml/mxml-2.11.ebuild52
-rw-r--r--dev-libs/mxml/mxml-2.12.ebuild60
6 files changed, 237 insertions, 0 deletions
diff --git a/dev-libs/mxml/Manifest b/dev-libs/mxml/Manifest
new file mode 100644
index 000000000000..b4906eef35b8
--- /dev/null
+++ b/dev-libs/mxml/Manifest
@@ -0,0 +1,8 @@
+AUX respect-users-flags.patch 762 BLAKE2B ccce0e60b4f3edc18b5fb58215f6f0cd677a91db470a48e67a996f1ce6ba622f2cddb8e84e7ee756c3cab9da167b3fba6cc4e46be874d06887028bb778c07004 SHA512 31cae98c5802e2802df7e6a90275b28a14c1c0c453e456a40ddfb66ce418c34eae8a32eafb3579d4dc7622670f12381232e2ac1eedd1a0509198e691c18e0349
+DIST mxml-2.10.tar.gz 265398 BLAKE2B eb3edec5615d727dec9285e2b74f4c877e8332be8f8183483e85a91d92ca1f48e5fc6d06afa3650c133c9762998abfdc8e846a9961ce55251d0c5bbcba0a970f SHA512 c3838611979c4228df476166e4e987fc1ff8f9b8bd30139066b475dcd99e25be81ecc5171235bc80b1c2291c9d78c9ceae9a1dfc928272a983740d6a67372f5c
+DIST mxml-2.11.tar.gz 9164003 BLAKE2B d124b7d779e7ea9609a91b823fe7f6b45ab4049e79eb72729ca2ffec93a83479d5fed1ef21efc76881a11de58be71b1f3de79fc3e4f07c26f35d3f68e25c017b SHA512 046421f91eea16f0ca99fbf611891c367ea9c3c54d04080d08acf108d7749ad9bbf2f4b3ef234a5130f00f77618196e2c5a245f32230daf645c1f775e961d378
+DIST mxml-2.12.tar.gz 9112072 BLAKE2B 29e63abdd567c76209ca41adf608bd752863cdb2911d5bda482a2c6ac50ccdae2179941a3899d7e58480bab8903fee8a6c431619072d2861acd01f18d0eeb9e5 SHA512 49233a0087f3ef73a01ef71bb79511af36bb72027e3d9f6df919385e9ff0b03a489a3ccc590941bc4af1f558f82b2ed9bf8ff641863300a7791ce6dddfd56e77
+EBUILD mxml-2.10.ebuild 1284 BLAKE2B 9f29bdc742076d837d79c979298c8ca50c760c6680333ec7abb31e8be92429b0c4434c1169ad0c2a2886aeafd6efae4ff9abff26c6ec1be1d1f5470efee96b73 SHA512 2dbf597eec60cb1226b374335b9ee372d82f5823aec2e973c30f300b12449f8798bce538b2623db367e9d264e2de8823abcda3192171b762c65267efa18f4230
+EBUILD mxml-2.11.ebuild 980 BLAKE2B f0ef58bc339a064dee07e6d2ccade2932d48cbec80c2e61d5a53ef04dc972734986a16f9e549a05d511b23d5c0125d16c1d03a846d7cc4e11022aba523a3fc99 SHA512 40d366403f141c5c83b59303767bf4c248440080bc3fc7121dc9196998dc1c8585220792aeb1cba7b4d6dfa151b97cd82a83df3dcf6f53d2ff1a04cb6a513717
+EBUILD mxml-2.12.ebuild 1403 BLAKE2B cf322daef45ead5791235a5f3e12924c3650aa6f585720804ab042260448c03c90a1b194ae3d3e2418a10ee06bcbea6bab18d88d9b5f54c8f11328e4784ae16d SHA512 7576e7e5b3b55b517766e4ef7fed4606c52168fd552b527325fcc93072a1217994be86c150122817e9e9abeb6d5fd139fc014f88f2310a8d774a73c06f5da11e
+MISC metadata.xml 1498 BLAKE2B b0ff99450cec828ef5614c2b3819d02cc97e402b60ce7b9bca20962166c47a9e3053e2457eb7b29210886aa7b0297e97340b55cf74a0aabc20ecb4c451d576c6 SHA512 5ead3d76daa42879139a96cceb0a12a84a23df8372a8e2e9e9d1e38ede0266b480ca404f03047f4e66ed7d989171d37333051e2a111dfa0900b9cbba703b22d6
diff --git a/dev-libs/mxml/files/respect-users-flags.patch b/dev-libs/mxml/files/respect-users-flags.patch
new file mode 100644
index 000000000000..90e49cf2198e
--- /dev/null
+++ b/dev-libs/mxml/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/mxml/metadata.xml b/dev-libs/mxml/metadata.xml
new file mode 100644
index 000000000000..a4af87ab4c46
--- /dev/null
+++ b/dev-libs/mxml/metadata.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>ck+gentoo@bl4ckb0x.de</email>
+ <name>Conrad Kostecki</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@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/mxml/mxml-2.10.ebuild b/dev-libs/mxml/mxml-2.10.ebuild
new file mode 100644
index 000000000000..2406db40c704
--- /dev/null
+++ b/dev-libs/mxml/mxml-2.10.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="Small XML parsing library to read XML and XML-like data files"
+HOMEPAGE="http://www.minixml.org/"
+SRC_URI="http://www.msweet.org/files/project3/${P}.tar.gz"
+
+LICENSE="Mini-XML"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ppc ~ppc64 ~sparc x86"
+IUSE="threads static-libs"
+
+DEPEND="virtual/pkgconfig"
+RDEPEND=""
+
+src_prepare() {
+ default
+ sed -e "s:755 -s:755:" \
+ -e "/^TARGETS/s: testmxml::" \
+ -e 's:$(DSO) $(DSOFLAGS) -o libmxml.so.1.5 $(LIBOBJS):$(DSO) $(DSOFLAGS) $(LDFLAGS) -o libmxml.so.1.5 $(LIBOBJS):' \
+ -i Makefile.in || die
+ sed -i -e 's:OPTIM="-Os -g":OPTIM="":' configure.ac || die
+ rm configure || die
+ #eautoreconf
+ eautoconf
+}
+
+src_configure() {
+ econf \
+ --enable-shared \
+ --libdir="/usr/$(get_libdir)" \
+ --with-docdir="/usr/share/doc/${PF}/html" \
+ $(use_enable threads)
+}
+
+src_compile() {
+ emake libmxml.so.1.5 mxmldoc doc/mxml.man
+}
+
+src_install() {
+ emake DSTROOT="${ED}" install
+
+ if ! use static-libs; then
+ rm "${ED}"/usr/$(get_libdir)/libmxml.a || die
+ fi
+
+ dodoc ANNOUNCEMENT CHANGES README
+ rm "${ED}/usr/share/doc/${PF}/html/"{CHANGES,COPYING,README} || die
+}
+
+src_test() {
+ emake testmxml
+}
diff --git a/dev-libs/mxml/mxml-2.11.ebuild b/dev-libs/mxml/mxml-2.11.ebuild
new file mode 100644
index 000000000000..6a58f55a52bd
--- /dev/null
+++ b/dev-libs/mxml/mxml-2.11.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+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/mxml/releases/download/v${PV}/${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
+}
diff --git a/dev-libs/mxml/mxml-2.12.ebuild b/dev-libs/mxml/mxml-2.12.ebuild
new file mode 100644
index 000000000000..7a98fc553860
--- /dev/null
+++ b/dev-libs/mxml/mxml-2.12.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+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"
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+LICENSE="Mini-XML"
+SLOT="0"
+IUSE="static-libs threads"
+
+BDEPEND="virtual/pkgconfig"
+
+src_prepare() {
+ default
+
+ # Respect users CFLAGS
+ sed -e 's/-Os -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
+
+ # 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 myeconfopts=(
+ $(use_enable threads)
+ --with-docdir=/usr/share/doc/${PF}
+ )
+
+ econf "${myeconfopts[@]}"
+}
+
+src_test() {
+ emake testmxml
+}
+
+src_install() {
+ emake DSTROOT="${ED}" install
+}