# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/x11-libs/wxmozilla/wxmozilla-0.5.7_pre20070102.ebuild,v 1.7 2009/05/05 08:18:17 ssuominen Exp $ inherit eutils wxwidgets autotools # Currently force building against firefox. Seamonkey is supported but # crashes. Upstream will fix and release as 0.5.7. bug #130969 #IUSE="doc firefox python" IUSE="doc python" DESCRIPTION="Mozilla widget for wxWindows" SRC_URI="mirror://gentoo/${P}.tar.gz" HOMEPAGE="http://wxmozilla.sourceforge.net/" #DEPEND=" # =x11-libs/wxGTK-2.6* # firefox? ( =www-client/mozilla-firefox-2* ) # !firefox? ( =www-client/seamonkey-1* ) # python? ( dev-lang/python # >=dev-python/wxpython-2.6.3 )" RDEPEND="=x11-libs/wxGTK-2.6* =www-client/mozilla-firefox-2* python? ( dev-lang/python =dev-python/wxpython-2.6* )" DEPEND="${RDEPEND}" SLOT="0" LICENSE="wxWinLL-3" KEYWORDS="~x86" S="${WORKDIR}/wxMozilla" src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}"/${PN}-0.5.7-python-2.5.patch epatch "${FILESDIR}"/${PN}-0.5.7-wxversion.patch eautoconf } src_compile() { WX_GTK_VER="2.6" need-wxwidgets unicode #if use firefox; then # myconf="--enable-firefox --disable-seamonkey" #else # myconf="--disable-firefox --enable-seamonkey" #fi myconf="--enable-firefox --disable-seamonkey" econf \ $(use_enable python) \ --with-wx-config="${WX_CONFIG}" \ ${myconf} \ || die "configure failed" emake || die "make failed" } src_install() { emake DESTDIR="${D}" install || die "install failed" if use doc; then dodoc README Changelog NEWS newdoc demo/main.cpp example.cpp use python && dodoc wxPython/demo/*.py fi }