# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit flag-o-matic eutils debug wxwidgets DESCRIPTION="otrproxy is a localhost proxy that should be usable with almost any AIM/ICQ client" HOMEPAGE="http://www.cypherpunks.ca/otr/" SRC_URI="http://www.cypherpunks.ca/otr/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="gtk gtk2 unicode" DEPEND=">=net-libs/libotr-2.0.1 >=dev-libs/libgpg-error-1.0 >=dev-libs/libgcrypt-1.2.0 >=x11-libs/wxGTK-2.5" src_compile() { strip-flags replace-flags -O? -O2 export WX_GTK_VER="2.5" if ! use gtk2; then need-wxwidgets gtk || die "Emerge wxGTK with -no_wxgtk1 in USE" elif use unicode; then need-wxwidgets unicode || die "Emerge wxGTK with unicode in USE" else need-wxwidgets gtk2 || die "Emerge wxGTK with gtk2 in USE" fi econf --with-wx-config=${WX_CONFIG} #--with-wx-prefix=/usr/lib/wx/include/${WX_CONFIG_NAME} emake || MAKEOPTS="${MAKEOPTS} -j1" emake || die "Make failed" } src_install() { make install DESTDIR=${D} || die "Install failed" dodoc AUTHORS ChangeLog COPYING INSTALL NEWS README } src_unpack() { unpack ${A} || die "Failed to unpack ${A}" cd ${S} || die "Failed to cd ${S}" epatch ${FILESDIR}/${P}-configure.patch }