Gentoo Archives: gentoo-dev

From: Nicolas Bock <nicolasbock@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] New package neomutt
Date: Tue, 03 Oct 2017 20:33:18
Message-Id: 20171003203306.a7om2durehp5zoyv@rubberducky
In Reply to: Re: [gentoo-dev] New package neomutt by "Marty E. Plummer"
1 On Tue, Oct 03, 2017 at 08:09:25PM +0000, Marty E. Plummer wrote:
2 >On Tue, Oct 03, 2017 at 12:36:11PM +0000, Nicolas Bock wrote:
3 >> On Mon, Sep 18, 2017 at 06:08:05AM -0600, Nicolas Bock wrote:
4 >> > On Mon, Jul 31, 2017 at 09:11:19AM +0200, Nicolas Bock wrote:
5 >> > > Hi,
6 >> > >
7 >> > > I would like to add neomutt to the tree. This new package is meant
8 >> > > as an alternative and not a replacement of the existing mutt
9 >> > > package.
10 >> >
11 >> > This is the third edition. Please have another look. Thanks!
12 >> >
13 >>
14 >> Hi,
15 >>
16 >> I have pushed the neomutt ebuild to tree.
17 >>
18 >> Thanks for all of the great feedback!
19 >>
20 >> Nick
21 >>
22 >> >
23 >> > # Copyright 1999-2017 Gentoo Foundation
24 >> > # Distributed under the terms of the GNU General Public License v2
25 >> >
26 >> > EAPI=6
27 >> >
28 >> > inherit autotools eutils flag-o-matic
29 >> >
30 >> > SRC_URI="https://github.com/${PN}/${PN}/archive/${P}.tar.gz"
31 >> > KEYWORDS="~amd64 ~x86"
32 >> >
33 >> > DESCRIPTION="A small but very powerful text-based mail client"
34 >> > HOMEPAGE="https://www.neomutt.org/"
35 >> >
36 >> > LICENSE="GPL-2"
37 >> > SLOT="0"
38 >> > IUSE="berkdb crypt debug doc gdbm gnutls gpg idn kerberos kyotocabinet
39 >> > libressl lmdb nls notmuch qdbm sasl selinux slang smime ssl +symlink
40 >> > tokyocabinet"
41 >> >
42 >> > CDEPEND="
43 >> > app-misc/mime-types
44 >> > berkdb? ( >=sys-libs/db-4:= )
45 >> > gdbm? ( sys-libs/gdbm )
46 >> > kyotocabinet? ( dev-db/kyotocabinet )
47 >> > lmdb? ( dev-db/lmdb )
48 >> > nls? ( virtual/libintl )
49 >> > qdbm? ( dev-db/qdbm )
50 >> > tokyocabinet? ( dev-db/tokyocabinet )
51 >> > gnutls? ( >=net-libs/gnutls-1.0.17 )
52 >> > gpg? ( >=app-crypt/gpgme-0.9.0 )
53 >> > idn? ( net-dns/libidn )
54 >> > kerberos? ( virtual/krb5 )
55 >> > notmuch? ( net-mail/notmuch )
56 >> > sasl? ( >=dev-libs/cyrus-sasl-2 )
57 >> > !slang? ( sys-libs/ncurses:0 )
58 >> > slang? ( sys-libs/slang )
59 >> > ssl? (
60 >> > !libressl? ( >=dev-libs/openssl-0.9.6:0 )
61 >> > libressl? ( dev-libs/libressl )
62 >> > )
63 >> > "
64 >> > DEPEND="${CDEPEND}
65 >> > net-mail/mailbase
66 >> > doc? (
67 >> > dev-libs/libxml2
68 >> > dev-libs/libxslt
69 >> > app-text/docbook-xsl-stylesheets
70 >> > || ( www-client/lynx www-client/w3m www-client/elinks )
71 >> > )"
72 >> > RDEPEND="${CDEPEND}
73 >> > selinux? ( sec-policy/selinux-mutt )
74 >> > "
75 >> >
76 >> > S="${WORKDIR}/${PN}-${P}"
77 >> >
78 >> > src_prepare() {
79 >> > eapply "${FILESDIR}/0001-Rename-mutt-to-neomutt.patch"
80 >> > eapply_user
81 >> > AT_M4DIR="m4" eautoreconf
82 >> > }
83 >> >
84 >PATCHES=(
85 > "${FILESDIR}/0001-Rename-mutt-to-neomutt.patch"
86 >)
87 >src_prepare() {
88 > default
89 > AT_M4DIR="m4" eautoreconf
90 >}
91
92 Thanks!
93
94 >> > src_configure() {
95 >> > local myconf=(
96 >> > "$(use_enable crypt pgp)"
97 >> > "$(use_enable debug)"
98 >> > "$(use_enable doc)"
99 >> > "$(use_enable gpg gpgme)"
100 >> > "$(use_enable nls)"
101 >> > "$(use_enable smime)"
102 >> > "$(use_enable notmuch)"
103 >> > "$(use_with idn)"
104 >> > "$(use_with kerberos gss)"
105 >> > "$(use_with sasl)"
106 >> > "$(use_with tokyocabinet)"
107 >> > "$(use_with kyotocabinet)"
108 >> > "$(use_with qdbm)"
109 >> > "$(use_with gdbm)"
110 >> > "$(use_with berkdb bdb)"
111 >> > "$(use_with lmdb)"
112 >> > "--with-$(usex slang slang curses)"
113 >> > "--sysconfdir=${EPREFIX}/etc/${PN}"
114 >> > "--with-docdir=${EPREFIX}/usr/share/doc/${PF}"
115 >> > )
116 >> >
117 >> > if [[ ${CHOST} == *-solaris* ]] ; then
118 >> > # arrows in index view do not show when using wchar_t
119 >> > myconf+=( "--without-wc-funcs" )
120 >> > fi
121 >> >
122 >> > if use gnutls; then
123 >> > myconf+=( "--with-gnutls" )
124 >> > elif use ssl; then
125 >> > myconf+=( "--with-ssl" )
126 >> > fi
127 >> >
128 >> > econf "${myconf[@]}"
129 >> > }
130 >> >
131 >> > src_install() {
132 >> > emake DESTDIR="${D}" install
133 >> >
134 >> > # A newer file is provided by app-misc/mime-types. So we link it.
135 >> > rm "${ED}"/etc/${PN}/mime.types || die
136 >> > dosym "${EPREFIX}/etc/mime.types" /etc/${PN}/mime.types
137 >> >
138 >> > ## A man-page is always handy, so fake one
139 >> > if use !doc; then
140 >> > emake -C doc muttrc.man
141 >> > # make the fake slightly better, bug #413405
142 >> > sed -e 's#@docdir@/manual.txt#http://www.neomutt.org/guide#' \
143 >> > -e 's#in @docdir@,#at http://www.neomutt.org/,#' \
144 >> > -e "s#@sysconfdir@#${EPREFIX}/etc/${PN}#" \
145 >> > -e "s#@bindir@#${EPREFIX}/usr/bin#" \
146 >> > doc/mutt.man > neomutt.1 || die
147 >> > cp doc/muttrc.man neomuttrc.5 || die
148 >> > doman neomutt.1 neomuttrc.5
149 >> > fi
150 >> >
151 >> > dodoc COPYRIGHT ChangeLog* OPS* README*
152 >> > }
153 >> >
154 >> > --
155 >> > Nicolas Bock <nicolasbock@g.o>
156 >>
157 >>
158 >>
159 >> --
160 >> Nicolas Bock <nicolasbock@g.o>
161 >
162 >
163 >
164
165 --
166 Nicolas Bock <nicolasbock@g.o>

Attachments

File name MIME type
signature.asc application/pgp-signature