# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils wxwidgets DESCRIPTION="Highly customizable powerful mail client" SRC_URI="mirror://sourceforge/mahogany/${P}.tar.bz2" HOMEPAGE="http://mahogany.sourceforge.net" KEYWORDS="~amd64" SLOT="0" LICENSE="Mahogany Artistic License" IUSE="python ssl nls static debug doc" DEPEND=">=x11-libs/wxGTK-2.6.3 python? ( dev-lang/python ) ssl? ( dev-libs/openssl ) doc? ( dev-tex/latex2html )" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/010-cvs20060903.patch epatch ${FILESDIR}/020-utf8warn.patch epatch ${FILESDIR}/030-buildfix.patch } src_compile() { local myconf export WX_GTK_VER="2.6" need-wxwidgets gtk2 myconf="--with-wx-config=${WX_CONFIG}" if use python; then use static && myconf="${myconf} --with-python=static" else myconf="${myconf} --with-python=none" fi use ssl || myconf="${myconf} --without-ssl" use nls || myconf="${myconf} --disable-nls" use static && myconf="${myconf} --with-modules=static" use debug && myconf="${myconf} --enable-debug" econf ${myconf} || die emake || die } src_install() { make DESTDIR=${D}/usr install_bin || die if use nls; then make DESTDIR=${D}/usr install_locale fi if use doc; then make DESTDIR=${D}/usr install_doc || die fi dodir /etc cp extra/install/M.conf ${D}/etc dodoc COPYING CREDITS CHANGES INSTALL README if use doc; then cd ${D}/usr/share/mahogany/doc dodoc Pdf/* dohtml -r Manual rm -rf COPYING CREDITS CHANGES INSTALL README Pdf Manual Manual.html \ Manual.chm fi }