# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/mail-client/nmh/nmh-1.3-r1.ebuild,v 1.2 2009/09/23 17:54:29 patrick Exp $ inherit eutils 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="" DEPEND="|| ( sys-libs/gdbm =sys-libs/db-1.85* ) >=sys-libs/ncurses-5.2 net-libs/liblockfile app-editors/gentoo-editor" RDEPEND="${DEPEND}" src_unpack() { unpack ${A} cd "${S}" # Patches from bug #22173. epatch "${FILESDIR}"/${P}-inc-login.patch epatch "${FILESDIR}"/${P}-install.patch # bug #57886 epatch "${FILESDIR}"/${P}-m_getfld.patch # bug #319937 epatch "${FILESDIR}"/${P}-db5.patch } src_compile() { [ -z "${EDITOR}" ] && export EDITOR="prompter" [ -z "${PAGER}" ] && export PAGER="/usr/bin/more" # Redefining 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. # quote ${PAGER} to properly handle options (Bug #262150) # use gentoo-editor to avoid implicit dependencies (Bug #294762) econf \ --prefix=/usr \ --mandir=/usr/share/man \ --with-editor=/usr/libexec/gentoo-editor \ --with-pager="${PAGER}" \ --enable-nmh-pop \ --sysconfdir=/etc/nmh \ --libdir=/usr/bin \ || die emake -j1 || die } src_install() { emake -j1 prefix="${D}"/usr \ mandir="${D}"/usr/share/man \ libdir="${D}"/usr/bin \ etcdir="${D}"/etc/nmh install || die dodoc ChangeLog DATE MACHINES README }