# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/mail-client/nmh/nmh-1.1-r1.ebuild,v 1.5 2005/11/23 00:36:48 metalgod Exp $ ECVS_MODULE="nmh" [ -z "$ECVS_SERVER" ] && ECVS_SERVER="cvs.savannah.nongnu.org:/sources/nmh" [ -z "$ECVS_TOP_DIR" ] && ECVS_TOP_DIR="$DISTDIR/cvs-src/nmh" inherit cvs eutils flag-o-matic autotools DESCRIPTION="New MH mail reader" #SRC_URI="http://savannah.nongnu.org/download/nmh/${P}.tar.gz" HOMEPAGE="http://www.nongnu.org/nmh/" SLOT="0" LICENSE="as-is" KEYWORDS="~amd64 ppc sparc x86" IUSE="gdbm berkdb" DEPEND="virtual/libc gdbm? ( sys-libs/gdbm ) berkdb? (=sys-libs/db-1.85*) >=sys-libs/ncurses-5.2" #S=${WORKDIR}/${PN} src_compile() { cd nmh [ -z "${EDITOR}" ] && export EDITOR="prompter" [ -z "${PAGER}" ] && export PAGER="/usr/bin/more" # Patches from bug #22173. epatch ${FILESDIR}/${P}-inc-login.patch || die "epatch failed" # Redifining libdir to be bindir so the support binaries get installed # correctly. Since no libraries are installed with nmh, this does not # pose a problem at this time. eautoreconf cat VERSION | tr '\n' '-' > V mv V VERSION echo -n CVS >> VERSION date '+%Y-%m-%d' >> VERSION ./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() { cd nmh 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 }