# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils wxwidgets DESCRIPTION="wxWidgets wrapper classes for libxml2." HOMEPAGE="http://wxcode.sourceforge.net/components/wxxml2/" SRC_URI="mirror://sourceforge/wxcode/${PN}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~x86" IUSE="debug unicode" DEPEND=">=x11-libs/wxGTK-2.6.0 virtual/libiconv dev-libs/libxml2" S="${WORKDIR}/${PN}" src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}/${P}-makefile.patch" } pkg_setup() { export WX_GTK_VER="2.6" if use unicode; then need-wxwidgets unicode else need-wxwidgets gtk2 fi } src_compile() { econf --with-wx-config=${WX_CONFIG} \ `use_enable debug` \ `use_enable unicode` \ || die emake || die } src_install() { emake DESTDIR="${D}" install || die dodoc ReadMe.txt }