diff options
author | 2017-10-18 04:40:43 -0400 | |
---|---|---|
committer | 2017-10-18 04:42:45 -0400 | |
commit | ea905e49c90535186113a740193bcbc6eb8ce415 (patch) | |
tree | 7638b493b78af52526e28bf5813ac1076e75976f /mail-client/nmh/nmh-1.6.ebuild | |
parent | net-mail/dovecot: bump to 2.2.33.1 (diff) | |
download | gentoo-ea905e49c90535186113a740193bcbc6eb8ce415.tar.gz gentoo-ea905e49c90535186113a740193bcbc6eb8ce415.tar.bz2 gentoo-ea905e49c90535186113a740193bcbc6eb8ce415.zip |
mail-client/nmh: version bump to 1.6
Closes: https://bugs.gentoo.org/423681
Closes: https://bugs.gentoo.org/555550
Closes: https://bugs.gentoo.org/631662
Diffstat (limited to 'mail-client/nmh/nmh-1.6.ebuild')
-rw-r--r-- | mail-client/nmh/nmh-1.6.ebuild | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/mail-client/nmh/nmh-1.6.ebuild b/mail-client/nmh/nmh-1.6.ebuild new file mode 100644 index 000000000000..c64883e3515f --- /dev/null +++ b/mail-client/nmh/nmh-1.6.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="New MH mail reader" +HOMEPAGE="http://www.nongnu.org/nmh/" +SRC_URI="https://savannah.nongnu.org/download/nmh/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux" +IUSE="gdbm readline sasl ssl" + +# bug 295996: media-gfx/pixie also uses show +# bug 631662: sys-apps/pick also uses pick +# bug 555550: sci-mathematics/snns also uses scan +DEPEND="gdbm? ( sys-libs/gdbm ) + !gdbm? ( sys-libs/db:= ) + >=sys-libs/ncurses-5.2:0= + net-libs/liblockfile + readline? ( sys-libs/readline:0= ) + sasl? ( dev-libs/cyrus-sasl ) + ssl? ( dev-libs/openssl:0= ) + !!media-gfx/pixie + !!sys-apps/pick + !!sci-mathematics/snns +" +RDEPEND="${DEPEND} + virtual/editor + virtual/pager +" + +DOCS=( ChangeLog DATE MACHINES README ) + +PATCHES=( + # bug #57886 + "${FILESDIR}"/${P}-m_getfld.patch + # bug #319937 + "${FILESDIR}"/${PN}-1.3-db5.patch +) + +src_configure() { + # Bug 348816 & Bug 341741: The previous ebuild default of + # /usr/bin caused unnecessary conflicts with other + # packages. However, the default nmh libdir location causes + # problems with cross-compiling, so we use, eg., /usr/lib64. + # Users may use /usr/lib/nmh in scripts needing these support + # programs in normal environments. + local myconf=( + --prefix="${EPREFIX}"/usr + --libdir="${EPREFIX}"/usr/$(get_libdir)/nmh + --mandir="${EPREFIX}"/usr/share/man + --sysconfdir="${EPREFIX}"/etc/nmh + $(use_with sasl cyrus-sasl) + $(use_with ssl tls) + $(use_with readline) + ) + + # have gdbm use flag actually control which version of db in use + if use gdbm; then + myconf+=( --with-ndbmheader=gdbm/ndbm.h --with-ndbm=gdbm_compat ) + else + if has_version ">=sys-libs/db-2"; then + myconf+=( --with-ndbmheader=db.h --with-ndbm=db ) + else + myconf+=( --with-ndbmheader=db1/ndbm.h --with-ndbm=db1 ) + fi + fi + + econf "${myconf[@]}" +} |