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