diff options
Diffstat (limited to 'dev-libs/mini-xml/mini-xml-2.2.1.ebuild')
-rw-r--r-- | dev-libs/mini-xml/mini-xml-2.2.1.ebuild | 36 |
1 files changed, 26 insertions, 10 deletions
diff --git a/dev-libs/mini-xml/mini-xml-2.2.1.ebuild b/dev-libs/mini-xml/mini-xml-2.2.1.ebuild index 303a6c04b24c..3c324b07ba2b 100644 --- a/dev-libs/mini-xml/mini-xml-2.2.1.ebuild +++ b/dev-libs/mini-xml/mini-xml-2.2.1.ebuild @@ -1,30 +1,46 @@ # Copyright 1999-2012 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.2.1.ebuild,v 1.3 2012/04/23 17:39:12 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/mini-xml/mini-xml-2.2.1.ebuild,v 1.4 2012/07/18 11:09:42 jlec Exp $ -IUSE="" +EAPI=4 -inherit libtool flag-o-matic +inherit eutils multilib MY_P=${P/mini-xml/mxml} -DESCRIPTION="Mini-XML is a small XML parsing library that you can use to read XML and XML-like data files in your application without requiring large non-standard libraries." +DESCRIPTION="Small XML parsing library to read XML and XML-like data files" HOMEPAGE="http://www.easysw.com/~mike/mxml" SRC_URI="mirror://easysw/mxml/${PV}/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 ppc x86" +IUSE="debug doc static-libs" -DEPEND="" +S="${WORKDIR}/${MY_P}" -S=${WORKDIR}/${MY_P} +src_prepare() { + epatch "${FILESDIR}"/${P}-nostrip-flags.patch +} + +src_configure() { + econf \ + --enable-shared \ + --libdir="/usr/$(get_libdir)" \ + --with-docdir="${EPREFIX}"/usr/share/doc/${PF} \ + $(use_enable debug) +} -src_unpack() { - unpack ${A} +src_test() { + emake testmxml } src_install() { - make DSTROOT="${D}" install || die "install failed" - dodoc ANNOUNCEMENT CHANGES README + emake DSTROOT="${D}" install + + if ! use static-libs; then + rm -vf "${ED}"/usr/$(get_libdir)/libmxml.a || die + fi + + use doc && dohtml doc/* } |