diff options
author | Markos Chandras <hwoarang@gentoo.org> | 2013-02-18 19:14:46 +0000 |
---|---|---|
committer | Markos Chandras <hwoarang@gentoo.org> | 2013-02-18 19:14:46 +0000 |
commit | 8449517ac4a373ce2ffa783f7052d20a74b3da2c (patch) | |
tree | a36cf1863cb601a127dd424dec584e61662462c1 /dev-libs/mini-xml | |
parent | Stable for x86, wrt bug #458122 (diff) | |
download | gentoo-2-8449517ac4a373ce2ffa783f7052d20a74b3da2c.tar.gz gentoo-2-8449517ac4a373ce2ffa783f7052d20a74b3da2c.tar.bz2 gentoo-2-8449517ac4a373ce2ffa783f7052d20a74b3da2c.zip |
Add static-libs useflag. Bug #457730. Thanks to Rüpel <ruepel@gmx.li>
(Portage version: 2.1.11.52/cvs/Linux x86_64, signed Manifest commit with key B4AFF2C2)
Diffstat (limited to 'dev-libs/mini-xml')
-rw-r--r-- | dev-libs/mini-xml/ChangeLog | 7 | ||||
-rw-r--r-- | dev-libs/mini-xml/mini-xml-2.7-r1.ebuild | 61 |
2 files changed, 67 insertions, 1 deletions
diff --git a/dev-libs/mini-xml/ChangeLog b/dev-libs/mini-xml/ChangeLog index 9410a2f1804b..ce64cdefbb6d 100644 --- a/dev-libs/mini-xml/ChangeLog +++ b/dev-libs/mini-xml/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-libs/mini-xml # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/mini-xml/ChangeLog,v 1.24 2013/02/15 19:05:45 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/mini-xml/ChangeLog,v 1.25 2013/02/18 19:14:46 hwoarang Exp $ + +*mini-xml-2.7-r1 (18 Feb 2013) + + 18 Feb 2013; Markos Chandras <hwoarang@gentoo.org> +mini-xml-2.7-r1.ebuild: + Add static-libs useflag. Bug #457730. Thanks to Rüpel <ruepel@gmx.li> 15 Feb 2013; Agostino Sarubbo <ago@gentoo.org> mini-xml-2.7.ebuild: Stable for x86, wrt bug #456548 diff --git a/dev-libs/mini-xml/mini-xml-2.7-r1.ebuild b/dev-libs/mini-xml/mini-xml-2.7-r1.ebuild new file mode 100644 index 000000000000..3c9eabb0d0b9 --- /dev/null +++ b/dev-libs/mini-xml/mini-xml-2.7-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/mini-xml/mini-xml-2.7-r1.ebuild,v 1.1 2013/02/18 19:14:46 hwoarang Exp $ + +EAPI=4 + +inherit autotools multilib + +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="mirror://easysw/mxml/${PV}/${MY_P}.tar.gz" + +LICENSE="Mini-XML" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="threads static-libs" + +DEPEND="virtual/pkgconfig" +RDEPEND="" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + sed -i -e "s:755 -s:755:" Makefile.in || die "sed failed" + sed -i "/^TARGETS/s: testmxml::" Makefile.in || die "sed failed" + sed -i -e 's:$(DSO) $(DSOFLAGS) -o libmxml.so.1.5 $(LIBOBJS):$(DSO) $(DSOFLAGS) $(LDFLAGS) -o libmxml.so.1.5 $(LIBOBJS):' \ + Makefile.in || die "sed failed" + sed -i -e 's:OPTIM="-Os -g":OPTIM="":' configure.in || die "sed failed" + rm configure +# 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 || die "make failed" +} + +src_install() { + emake DSTROOT="${D}" install || die "install failed" + + if ! use static-libs; then + rm -vf "${ED}"/usr/$(get_libdir)/libmxml.a || die + fi + + dodoc ANNOUNCEMENT CHANGES README + rm "${D}/usr/share/doc/${PF}/html/"{CHANGES,COPYING,README} +} + +src_test() { + emake testmxml || die "make testmxml failed" +} |