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