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 0E7B0139083 for ; Thu, 10 Aug 2017 04:59:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E0EE1E0D35; Thu, 10 Aug 2017 04:59:02 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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 81694E0CCA for ; Thu, 10 Aug 2017 04:59:02 +0000 (UTC) Received: from rubberducky.suse.de (p54BC8185.dip0.t-ipconnect.de [84.188.129.133]) (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 1174D341820 for ; Thu, 10 Aug 2017 04:59:00 +0000 (UTC) Date: Thu, 10 Aug 2017 06:58:57 +0200 From: Nicolas Bock To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] New package neomutt Message-ID: <20170810045857.e6qrvnimteopxgev@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="d5hrw44diksiiclh" Content-Disposition: inline In-Reply-To: <20170731071119.jccco5q4kd3fs4xs@rubberducky.suse.de> User-Agent: NeoMutt/20170714 (1.8.3) X-Archives-Salt: 53496bc5-acef-49be-8db8-d7d312a15bd9 X-Archives-Hash: a80a2e9781d96a2c8936bfe958acbbb8 --d5hrw44diksiiclh 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. Thanks for all of the great suggestions and feedback! This is round two. I have update the ebuild with all your=20 suggestions. I have also added support for eselecting between mutt=20 and neomutt. Before the eselect ebuild can land though, we need to=20 rename the mutt binary so that the managed link can be called=20 mutt. # Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=3D6 inherit autotools eutils flag-o-matic if [[ ${PV} =3D=3D 99999999 ]] ; then # live ebuild inherit git-r3 EGIT_REPO_URI=3D"https://github.com/neomutt/neomutt.git" EGIT_CHECKOUT_DIR=3D"${WORKDIR}/neomutt-${P}" KEYWORDS=3D"" else SRC_URI=3D"https://github.com/${PN}/${PN}/archive/${P}.tar.gz" KEYWORDS=3D"~amd64 ~x86" fi DESCRIPTION=3D"Teaching an Old Dog New Tricks" HOMEPAGE=3D"https://www.neomutt.org/" LICENSE=3D"GPL-2" SLOT=3D"0" IUSE=3D"berkdb crypt debug doc gdbm gnutls gpg idn kerberos libressl mbox nls notmuch qdbm sasl selinux slang smime ssl tokyocabinet kyotocabinet lmdb" CDEPEND=3D" app-eselect/eselect-mutt app-misc/mime-types nls? ( virtual/libintl ) tokyocabinet? ( dev-db/tokyocabinet ) qdbm? ( dev-db/qdbm ) gdbm? ( sys-libs/gdbm ) berkdb? ( >=3Dsys-libs/db-4:=3D ) kyotocabinet? ( dev-db/kyotocabinet ) lmdb? ( dev-db/lmdb ) 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 "${FILESDIR}/0001-Rename-mutt-to-neomutt.patch" eapply_user AT_M4DIR=3D"m4" 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)" "$(use_with sasl)" "$(use_with tokyocabinet)" "$(use_with kyotocabinet)" "$(use_with qdbm)" "$(use_with gdbm)" "$(use_with berkdb bdb)" "$(use_with lmdb)" "--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 # 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 if use mbox; then myconf+=3D( "--with-mailpath=3D${EPREFIX}/var/spool/mail" ) else myconf+=3D( "--with-homespool=3DMaildir" ) fi econf "${myconf[@]}" } src_install() { emake DESTDIR=3D"${D}" install if use mbox; then insinto /etc/${PN} newins "${FILESDIR}"/Muttrc.mbox Muttrc else insinto /etc/${PN} doins "${FILESDIR}"/Muttrc fi # A newer file is provided by app-misc/mime-types. So we link it. rm "${ED}"/etc/${PN}/mime.types || die 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 # make the fake slightly better, bug #413405 sed -e 's#@docdir@/manual.txt#http://www.mutt.org/doc/manual/#' \ -e 's#in @docdir@,#at http://www.mutt.org/,#' \ -e "s#@sysconfdir@#${EPREFIX}/etc/${PN}#" \ -e "s#@bindir@#${EPREFIX}/usr/bin#" \ doc/mutt.man > neomutt.1 || die cp doc/muttrc.man neomuttrc.5 || die doman neomutt.1 neomuttrc.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* OPS* README* } --=20 Nicolas Bock --d5hrw44diksiiclh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQKTBAABCgB9FiEEU2lNM4ZQY0eES+u+HcDb5tcV6qcFAlmL6BFfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDUz Njk0RDMzODY1MDYzNDc4NDRCRUJCRTFEQzBEQkU2RDcxNUVBQTcACgkQHcDb5tcV 6qdSQA/9E7etsg7mKfiubP5QUhXd55Wy1tZoIuQA4KFk8X2XUtidVNPzbD2KJxaY MJSsMjjK2Dnfv0IxU1AHWKDqwdsXeDHv87BLi4VXQY6kz5LYhv4MnG6fBosUoAI+ Yjr0vmjrNs4VcN/KRovIsnqal5g5B9qO8VAMVL+wgIujt+TvQf1H63AIfwQkS5Rk 982rXUaNbr+BF95Ebe30mAb8FUJi1RH2nbSSdODnq7V6041yJJlxVF/fibScCAhM Sn6kLJl9jxzqFk5wzZ9Eui9M+fp4Q6vJzD9mc5oY0of9emeQ0cc36fnv0VvYmZfN NPvwco4LnQ+XKXInjBcHEHsdO2vRPhiyGu4lsweq/qMJWdrcmFVnlgUrzsdamOh4 TwExnvC/nqisM7I3qdKenXpdk9fRzLgr1adjLX0bw6VuwRPvlqkE8T5ObQ+lU3t/ FcLRWFRrj1RetprYJwRSccaxwaDz6clo7ODqaOwf9o4dMT8o5/IubzNRnImESHPR DiESOHdcRpVaZv6D8SjeYENv64mvZTWTdiaBnKZHQKtg10LGlHe/mWhz+L5TwT5s 94NqcxtpUlgd58vlv0AXZ1O8F1Pel1nupD0w5Qi9U1S/cE7VdnjvvBiS2lw9o7NF 9yiVAVXuI9zq9xDmqKsDwPPloEaFm9mYczxdhWHTHv1LHulkHFU= =P83l -----END PGP SIGNATURE----- --d5hrw44diksiiclh--