# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/net-mail/nmh/nmh-1.0.4-r2.ebuild,v 1.7 2003/02/13 14:34:59 vapier Exp $ MY_P=${PN}-1.1-RC3 S=${WORKDIR}/nmh DESCRIPTION="New MH mail reader" SRC_URI="http://savannah.nongnu.org/download/nmh/${MY_P}.tar.gz" HOMEPAGE="http://www.mhost.com/nmh/" SLOT="0" LICENSE="as-is" KEYWORDS="x86 sparc sparc64" DEPEND="virtual/glibc =sys-libs/db-1.85* >=sys-libs/ncurses-5.2" src_unpack() { cd ${WORKDIR} unpack ${MY_P}.tar.gz cd ${S} epatch ${FILESDIR}/nmh-inc-login.diff epatch ${FILESDIR}/nmh-configure-vitest.patch epatch ${FILESDIR}/nmh-install.patch } src_compile() { # Make sure EDITOR is set if [ -z ${EDITOR} ]; then einfo "EDITOR unset, using /bin/nano" export EDITOR="/bin/nano" fi ./configure --prefix=/usr \ --mandir=/usr/share/man \ --with-editor=${EDITOR} \ --with-pager=${PAGER} \ --enable-nmh-pop \ --sysconfdir=/etc/nmh \ --libdir=/usr/bin || die make || die } src_install() { make prefix=${D}/usr \ mandir=${D}/usr/share/man \ libdir=${D}/usr/bin \ etcdir=${D}/etc/nmh install || die dodoc COMPLETION-TCSH COMPLETION-ZSH TODO FAQ DIFFERENCES \ MAIL.FILTERING Changelog* COPYRIGHT }