# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-nntp/slrn/slrn-0.9.8.0-r1.ebuild,v 1.1 2005/01/17 20:11:08 swegener Exp $ inherit eutils # Upstream patches from http://slrn.sourceforge.net/patches/ # ${FILESDIR}/${PV}/${P}-.diff SLRN_PATCHES="mime post ranges ranges2" DESCRIPTION="s-lang Newsreader" HOMEPAGE="http://slrn.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" SLOT="0" LICENSE="GPL-2" #KEYWORDS="~ppc ~ia64" KEYWORDS="x86 ~amd64 alpha sparc ppc" IUSE="ssl nls uudeview" RDEPEND="virtual/mta >=app-arch/sharutils-4.2.1 >=sys-libs/slang-1.4.4 ssl? ( >=dev-libs/openssl-0.9.6 )" DEPEND="${RDEPEND} uudeview? ( dev-libs/uulib ) nls? ( sys-devel/gettext )" src_unpack() { unpack ${A} cd ${S} for i in ${SLRN_PATCHES} do epatch ${FILESDIR}/${PV}/${P}-${i}.diff done } src_compile() { econf \ --with-docdir=/usr/share/doc/${PF} \ --with-slrnpull \ $(use_enable nls) \ $(use_with ssl) \ $(use_with uudeview) \ || die "econf failed" emake || die "emake failed" } src_install () { make DESTDIR=${D} install || die "make install failed" }