# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-nntp/slrn/slrn-0.9.9_p1.ebuild,v 1.1 2008/10/07 21:31:16 swegener Exp $ inherit eutils DESCRIPTION="a s-lang based newsreader" HOMEPAGE="http://slrn.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/slrn-pre1.0.0~18.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86" IUSE="nls ssl uudeview canlock" RDEPEND="virtual/mta app-arch/sharutils >=sys-libs/slang-2.1.3 ssl? ( dev-libs/openssl ) uudeview? ( dev-libs/uulib ) canlock? ( net-libs/canlock )" DEPEND="${RDEPEND} nls? ( sys-devel/gettext )" S="${WORKDIR}"/${PN} src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}"/${P}-dont-strip.patch } src_compile() { if use uudeview; then myconf="${myconf} --with-uu" fi econf \ --with-docdir=/usr/share/doc/${PF} \ --with-slrnpull \ $(use_enable nls) \ $(use_with ssl) \ $(use_with canlock) \ ${myconf} \ || die "econf failed" emake || die "emake failed." } src_install() { emake -j1 DESTDIR="${D}" install || die "emake install failed." prepalldocs }