blob: edd30168f4312f32d3c4a1c128daaf47f6337e3d [file] [log] [blame]
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libwbxml/libwbxml-0.9.2.ebuild,v 1.8 2008/06/04 15:40:03 flameeyes Exp $
inherit eutils autotools
IUSE=""
MY_P="wbxml2-${PV}"
DESCRIPTION="Library and tools to parse, encode and handle WBXML documents."
HOMEPAGE="http://libwbxml.aymerick.com/"
SRC_URI="mirror://sourceforge/wbxmllib/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86"
RDEPEND=">=dev-libs/expat-1.95.8"
DEPEND="${RDEPEND}
>=sys-apps/sed-4.1.4"
S="${WORKDIR}/${MY_P}"
src_unpack()
{
unpack ${A}
cd "${S}"
# Remove doc stuff from Makefile.am, otherwise make install complains
epatch "${FILESDIR}/${MY_P}.make_install.patch"
# Don't rewrite use CFLAGS, pass everything as AM_CFLAGS instead.
sed -i \
-e '/-\(O3\|g\)/d' \
-e '/-Wall/s:\\::' \
-e 's:CFLAGS:AM_CFLAGS:' \
{src,tools}/Makefile.am
eautoreconf
}
src_install()
{
einstall || die "Installation failed"
dodoc AUTHORS BUGS ChangeLog NEWS README References THANKS TODO
}