# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-nntp/pan/pan-9999.ebuild,v 1.2 2008/10/04 11:11:38 eva Exp $ # svn/git conversion courtesy Jack Cuyler, via Duncan # see http://permalink.gmane.org/gmane.comp.gnome.apps.pan.user/11063 inherit autotools git DESCRIPTION="A newsreader for the Gnome2 desktop" HOMEPAGE="http://pan.rebelbase.com/" EGIT_PROJECT="${PN}2" if use khaley ; then EGIT_REPO_URI="git://github.com/lostcoder/${EGIT_PROJECT}.git" if use khtestbranch ; then EGIT_BRANCH=testing else EGIT_BRANCH=master fi else EGIT_REPO_URI="git://git.gnome.org/${EGIT_PROJECT}" EGIT_BRANCH=master fi EGIT_COMMIT=$EGIT_BRANCH EGIT_BOOTSTRAP="autogen.sh" S="${WORKDIR}/${PN}2" LICENSE="GPL-2" SLOT="0" KEYWORDS="" IUSE="spell khaley khtestbranch" RDEPEND=">=dev-libs/glib-2.18.0 >=x11-libs/gtk+-2.16.0 khaley? ( =dev-libs/gmime-2.4* ) !khaley? ( =dev-libs/gmime-2.2* ) spell? ( >=app-text/gtkspell-2.0.7 )" #>=dev-libs/libpcre-5.0 # uses glib regex now # glib and gtk+ rdepends and intltool depend also updated from 0.133 DEPEND="${RDEPEND} >=dev-util/intltool-0.35.5 dev-util/pkgconfig gnome-base/gnome-common sys-devel/gettext" # The normal version tree ebuild we are based on (for patching) Pnorm="${PN}-0.133" src_unpack() { if use !khaley && use khtestbranch; then ewarn "USE=khtestbranch only valid with USE=khaley, using main branch." fi git_src_unpack cd "${S}" # bootstrap build system intltoolize --force || die "intltoolize failed" eautoreconf } src_compile() { econf $(use_with spell gtkspell) emake || die "emake failed" } src_install() { emake install DESTDIR="${D}" || die "make install failed" dodoc AUTHORS ChangeLog NEWS README TODO || die "dodoc failed" }