From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BD8EA139694 for ; Mon, 31 Jul 2017 07:24:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8CDD5E0D29; Mon, 31 Jul 2017 07:23:57 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 35FC8E0D12 for ; Mon, 31 Jul 2017 07:23:56 +0000 (UTC) Received: from rubberducky.suse.de (p54BC81B8.dip0.t-ipconnect.de [84.188.129.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: nicolasbock) by smtp.gentoo.org (Postfix) with ESMTPSA id 13709341859 for ; Mon, 31 Jul 2017 07:23:54 +0000 (UTC) Date: Mon, 31 Jul 2017 09:23:51 +0200 From: Nicolas Bock To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] New package neomutt Message-ID: <20170731072351.xy6r4slccrpni67d@rubberducky.suse.de> References: <20170731071119.jccco5q4kd3fs4xs@rubberducky.suse.de> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="yyhwvlle3tuamejs" Content-Disposition: inline In-Reply-To: <20170731071119.jccco5q4kd3fs4xs@rubberducky.suse.de> User-Agent: NeoMutt/20170714 (1.8.3) X-Archives-Salt: 32264596-e0ab-4bbe-9ba2-e7a36a0dfb7a X-Archives-Hash: bbfe4fa47a24fc5a04ddf8032debd3d3 --yyhwvlle3tuamejs Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 31, 2017 at 09:11:19AM +0200, Nicolas Bock wrote: >Hi, > >I would like to add neomutt to the tree. This new package is meant as=20 >an alternative and not a replacement of the existing mutt package. I should have inlined the patch. Sorry. =46rom 63f5d569aec514d67645b1c2e891e51810bb7ab5 Mon Sep 17 00:00:00 2001 =46rom: Nicolas Bock Date: Mon, 31 Jul 2017 09:06:07 +0200 Subject: [PATCH] mail-client/neomutt: New package mail-client/neomutt-20170= 714 Package-Manager: Portage-2.3.6, Repoman-2.3.1 --- mail-client/neomutt/Manifest | 1 + mail-client/neomutt/metadata.xml | 24 +++++ mail-client/neomutt/neomutt-20170714.ebuild | 161 ++++++++++++++++++++++++= ++++ 3 files changed, 186 insertions(+) create mode 100644 mail-client/neomutt/Manifest create mode 100644 mail-client/neomutt/metadata.xml create mode 100644 mail-client/neomutt/neomutt-20170714.ebuild diff --git a/mail-client/neomutt/Manifest b/mail-client/neomutt/Manifest new file mode 100644 index 00000000000..2b38484e24d --- /dev/null +++ b/mail-client/neomutt/Manifest @@ -0,0 +1 @@ +DIST neomutt-20170714.tar.gz 2509160 SHA256 40d48920f95ca49ab96eb109b658f5= cf6e1c222320c58bdd03769c1355d7a383 SHA512 eb31d2f23b7211904cd66ba293c008f95= 3778b37f13fd09d4db571d013f1c8e6449fccd827872f3ad0a2c8e62555f92b3f9591a1f0f4= ac37ab362a4681abaaa0 WHIRLPOOL 455495501a2ab1989d5f3bfa75aa2370896956cdfd7d= 2e852e225c96aa23a1abdaf2dbb9d886d1d96486d19b2b38c225e8263f268ebafcef8cbd002= 4885189f3 diff --git a/mail-client/neomutt/metadata.xml b/mail-client/neomutt/metadat= a.xml new file mode 100644 index 00000000000..081f253b3a1 --- /dev/null +++ b/mail-client/neomutt/metadata.xml @@ -0,0 +1,24 @@ + + + + + nicolasbock@gentoo.org + Nicolas Bock + + + net-mail@gentoo.org + Net-Mail + + + Enable support for app-crypt/gpgme + Enable support for net-mail/notmuch + Enable support for S/MIME + Enable dev-db/tokyocabinet + database backend for header caching + + + + + neomutt/neomutt + + diff --git a/mail-client/neomutt/neomutt-20170714.ebuild b/mail-client/neom= utt/neomutt-20170714.ebuild new file mode 100644 index 00000000000..9bcf72e7479 --- /dev/null +++ b/mail-client/neomutt/neomutt-20170714.ebuild @@ -0,0 +1,161 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=3D6 + +inherit autotools eutils flag-o-matic + +DESCRIPTION=3D"A small but very powerful text-based mail client" +HOMEPAGE=3D"https://www.neomutt.org/" +SRC_URI=3D"https://github.com/${PN}/${PN}/archive/${P}.tar.gz" + +LICENSE=3D"GPL-2" +SLOT=3D"0" +KEYWORDS=3D"~amd64 ~x86" +IUSE=3D"berkdb crypt debug doc gdbm gnutls gpg idn kerberos libressl mbox = nls + notmuch qdbm sasl selinux slang smime ssl tokyocabinet vanilla" + +CDEPEND=3D" + !mail-client/mutt + app-misc/mime-types + nls? ( virtual/libintl ) + tokyocabinet? ( dev-db/tokyocabinet ) + !tokyocabinet? ( + qdbm? ( dev-db/qdbm ) + !qdbm? ( + gdbm? ( sys-libs/gdbm ) + !gdbm? ( berkdb? ( >=3Dsys-libs/db-4:=3D ) ) + ) + ) + gnutls? ( >=3Dnet-libs/gnutls-1.0.17 ) + !gnutls? ( + ssl? ( + !libressl? ( >=3Ddev-libs/openssl-0.9.6:0 ) + libressl? ( dev-libs/libressl ) + ) + ) + sasl? ( >=3Ddev-libs/cyrus-sasl-2 ) + kerberos? ( virtual/krb5 ) + idn? ( net-dns/libidn ) + gpg? ( >=3Dapp-crypt/gpgme-0.9.0 ) + smime? ( + !libressl? ( >=3Ddev-libs/openssl-0.9.6:0 ) + libressl? ( dev-libs/libressl ) + ) + notmuch? ( net-mail/notmuch ) + slang? ( sys-libs/slang ) + !slang? ( >=3Dsys-libs/ncurses-5.2:0 ) +" +DEPEND=3D"${CDEPEND} + net-mail/mailbase + doc? ( + dev-libs/libxml2 + dev-libs/libxslt + app-text/docbook-xsl-stylesheets + || ( www-client/lynx www-client/w3m www-client/elinks ) + )" +RDEPEND=3D"${CDEPEND} + selinux? ( sec-policy/selinux-mutt ) +" + +S=3D"${WORKDIR}/${PN}-${P}" + +src_prepare() { + eapply_user + eautoreconf +} + +src_configure() { + local myconf=3D( + "$(use_enable crypt pgp)" + "$(use_enable debug)" + "$(use_enable doc)" + "$(use_enable gpg gpgme)" + "$(use_enable nls)" + "$(use_enable smime)" + "$(use_enable notmuch)" + "$(use_with idn)" + "$(use_with kerberos gss)" + "--with-$(use slang && echo slang || echo curses)=3D${EPREFIX}/usr" + "--sysconfdir=3D${EPREFIX}/etc/${PN}" + "--with-docdir=3D${EPREFIX}/usr/share/doc/${PN}-${PVR}" + ) + + if [[ ${CHOST} =3D=3D *-solaris* ]] ; then + # arrows in index view do not show when using wchar_t + myconf+=3D( "--without-wc-funcs" ) + fi + + # mutt prioritizes gdbm over bdb, so we will too. + # hcache feature requires at least one database is in USE. + local hcaches=3D( + "tokyocabinet" + "qdbm" + "gdbm" + "berkdb:bdb" + ) + local ucache hcache lcache + for hcache in "${hcaches[@]}" ; do + if use ${hcache%%:*} ; then + ucache=3D${hcache} + break + fi + done + for hcache in "${hcaches[@]}" ; do + [[ ${hcache} =3D=3D ${ucache} ]] \ + && myconf+=3D( "--with-${hcache#*:}" ) \ + || myconf+=3D( "--without-${hcache#*:}" ) + done + + # there's no need for gnutls, ssl or sasl without socket support + if use gnutls; then + myconf+=3D( "--with-gnutls" ) + elif use ssl; then + myconf+=3D( "--with-ssl" ) + fi + # not sure if this should be mutually exclusive with the other two + myconf+=3D( "$(use_with sasl)" ) + + if use mbox; then + myconf+=3D( "--with-mailpath=3D${EPREFIX}/var/spool/mail" ) + else + myconf+=3D( "--with-homespool=3DMaildir" ) + fi + + econf "${myconf[@]}" || die "configure failed" +} + +src_install() { + emake DESTDIR=3D"${D}" install || die "install failed" + if use mbox; then + insinto /etc/neomutt + newins "${FILESDIR}"/Muttrc.mbox Muttrc + else + insinto /etc/neomutt + doins "${FILESDIR}"/Muttrc + fi + + # A newer file is provided by app-misc/mime-types. So we link it. + rm "${ED}"/etc/${PN}/mime.types + dosym /etc/mime.types /etc/${PN}/mime.types + + # A man-page is always handy, so fake one + if use !doc; then + emake -C doc DESTDIR=3D"${D}" muttrc.man || die + # make the fake slightly better, bug #413405 + sed -e 's#@docdir@/manual.txt#http://www.mutt.org/doc/devel/manual.html#= ' \ + -e 's#in @docdir@,#at http://www.mutt.org/,#' \ + -e "s#@sysconfdir@#${EPREFIX}/etc/${PN}#" \ + -e "s#@bindir@#${EPREFIX}/usr/bin#" \ + doc/mutt.man > mutt.1 + cp doc/muttrc.man muttrc.5 + doman mutt.1 muttrc.5 + else + # nuke manpages that should be provided by an MTA, bug #177605 + rm "${ED}"/usr/share/man/man5/{mbox,mmdf}.5 \ + || ewarn "failed to remove files, please file a bug" + fi + + dodoc COPYRIGHT ChangeLog.md OPS* README* +} --=20 2.13.0 --=20 Nicolas Bock --yyhwvlle3tuamejs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQKTBAABCgB9FiEEU2lNM4ZQY0eES+u+HcDb5tcV6qcFAll+2wdfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDUz Njk0RDMzODY1MDYzNDc4NDRCRUJCRTFEQzBEQkU2RDcxNUVBQTcACgkQHcDb5tcV 6qeQ5RAAhExbJvYRR4w8WdX+V1VGyDt9pNwPugKrD4h6xmmpk/btCWLSz48PHKtL Ph3YnLvEframJ91yN0skuJB1D4hcy3V2DtWwS8FWr5YTol++LaRU7Uv+sNWzahA+ FDiAChgsFoumIpDyP0yEG8Qq1c7JmNvDJVtot7LftRH72H/eUMZI5Rms3j9MxJIs pD6XGipnip9XseMvRne2bzvGmzBNU3mdZJtI2V8aHlLP4PFLe4z2sX6FYQA2Tdub mNiV8Mv+JsUCQySH2GfjZHmmbOS3rotlXCZQ7VvY2duxKe28AOphqXU7E1I93KVH dg+FiB2Hskiz1BeXJX9cN6VKIapkhsm68tZL1xDbhx14xQtRGQezwS17z9MYyJXT u/fl6b0kLjRYBQ/wHeNn4pA9dn/cuvzXJGa1U2I9DHLACTTHwauf0E5uxKT580sk EXGJU0mDdzGt/wo5hQKReLjQ2byXjr8yaq8Sfy5Crpxi+liqBdeTakIQPuDRsh6M +7HabDYwkshV/RqsulJxPdHFvsSOHmTwcQVVUR37/YyTjgnglRGvwCft4f4dW50K eLl3wjrd+vwTE+UVLiEPl1fztJwN4FhtGTpYvfJGye/Yyx6mZu0hZR+JJHmypQzB 8yYRqWM9mTqQLnXH17NNBjcMoY6RgcNbhLkWKeAI8QqnHlHI7L4= =OLNS -----END PGP SIGNATURE----- --yyhwvlle3tuamejs--