commit:     2a55f22ba9999670e2ec0ff93f721d1270026ae9
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Thu Apr  7 09:12:17 2016 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Thu Apr  7 09:13:00 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a55f22b

dev-libs/mini-xml: Bump to version 2.9

Package-Manager: portage-2.2.28
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 dev-libs/mini-xml/Manifest            |  1 +
 dev-libs/mini-xml/mini-xml-2.9.ebuild | 63 +++++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+)

diff --git a/dev-libs/mini-xml/Manifest b/dev-libs/mini-xml/Manifest
index c9dd5a1..3a748f2 100644
--- a/dev-libs/mini-xml/Manifest
+++ b/dev-libs/mini-xml/Manifest
@@ -1,2 +1,3 @@
 DIST mxml-2.7.tar.gz 262027 SHA256 
a77200ee4c1e1cf2eb531595ec17ce31805760699d260915496c39d3388eb803 SHA512 
9fac34975c35d0ff9686a20a882824040b0b96b38ab9f1f5b1ef24a323668974860d4d977bb07c90a3e2b3410a2d8358eec1682b2c7ff2cda7f36f630ff97007
 WHIRLPOOL 
1c899377e69f2763e9502d60e957aa0318710f45b57ebc2099090e8439d27f7024bdeaa59042edf202aa1579f81d3e6296f7718dd7bc34faf346967ad6b05d64
 DIST mxml-2.8.tar.gz 264044 SHA256 
0c9369f91a718d82e32cb007c0bd41b6642822c9a0ffe1d10eccbdea9a3011d5 SHA512 
f6ecb9edfe9917137b47b41be941b22c1054b38e7f2e16977a0e9dfa554f2e62886fc65ac404e4445f10fba7c6dbb30a235525cccba75c9daf3da4ba251cf3bd
 WHIRLPOOL 
ab3c058f63820d19dfe6a359552a61ad5c18a73aa9f8fb728a2524e8ddde5dcc9843cd8aab2c07ba1649e3ca92a705856c11d4dabfb6f345360cf086f924e2d1
+DIST mxml-2.9.tar.gz 264379 SHA256 
cded54653c584b24c4a78a7fa1b3b4377d49ac4f451ddf170ebbc8161d85ff92 SHA512 
819c506ea43198de07a90d7473f29c9edc7f638638b5a1b215d88ac635b4f4f37441d8a760ce356f7d4bfb14a4f504c304d0e33345f69ecd145db50350e50ad7
 WHIRLPOOL 
29a3abf7a37fdd98bb4a10393fcb2006b4a4b04dad6263a5c20b5c17879aee7cab0bf9304d3dc1be6cd6283b212f56f6ee9b1b82873e160c5222c97ad091de60

diff --git a/dev-libs/mini-xml/mini-xml-2.9.ebuild 
b/dev-libs/mini-xml/mini-xml-2.9.ebuild
new file mode 100644
index 0000000..fb8473a
--- /dev/null
+++ b/dev-libs/mini-xml/mini-xml-2.9.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit autotools
+
+MY_P="${P/mini-xml/mxml}"
+
+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/${MY_P}.tar.gz";
+
+LICENSE="Mini-XML"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
+IUSE="threads static-libs"
+
+DEPEND="virtual/pkgconfig"
+RDEPEND=""
+
+S="${WORKDIR}/${MY_P}"
+
+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.in || die
+       rm configure || die
+       mv configure.{in,ac} || 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
+}

Reply via email to