Gentoo Archives: gentoo-commits

From: Eray Aslan <eras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/mailutils/
Date: Fri, 25 Dec 2020 07:38:48
Message-Id: 1608881890.a282aa8070f8c9951e927a87653d1d7662912926.eras@gentoo
1 commit: a282aa8070f8c9951e927a87653d1d7662912926
2 Author: Eray Aslan <eras <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 25 07:38:10 2020 +0000
4 Commit: Eray Aslan <eras <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 25 07:38:10 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a282aa80
7
8 net-mail/mailutils: bump to 3.11
9
10 Package-Manager: Portage-3.0.12, Repoman-3.0.2
11 Signed-off-by: Eray Aslan <eras <AT> gentoo.org>
12
13 net-mail/mailutils/Manifest | 1 +
14 net-mail/mailutils/mailutils-3.11.ebuild | 138 +++++++++++++++++++++++++++++++
15 2 files changed, 139 insertions(+)
16
17 diff --git a/net-mail/mailutils/Manifest b/net-mail/mailutils/Manifest
18 index f1f4bc73b87..fb044798f5f 100644
19 --- a/net-mail/mailutils/Manifest
20 +++ b/net-mail/mailutils/Manifest
21 @@ -1,3 +1,4 @@
22 DIST mailutils-3.10.tar.xz 3102328 BLAKE2B 49ea417f71816db2ca1e6a514e5f662d7ef66dc72ae93141ebb8ee006d78ad89587f4b09a96985fdb17335b5f58f8eb654cef23d64fc6d994948786e4a4b1410 SHA512 3a74c9a4bb197feecb2e2c4acfdfac6104c723722b1b2026183bc4cdb6872a45563034f82a56374fd3f51a79999b0f1d47e1169c971d1222fdc1f7b67e66550f
23 +DIST mailutils-3.11.tar.xz 3114388 BLAKE2B 69c648c412db8480366a27bdd654fcbac076e42417519eaaf4a30ea1bf87a8bc58ebbf8dd8499ea5fa81bcdbf844f6066644c8f7b0abf678fadfd8c8e6b3208d SHA512 98584c827780405c701afb1d75aab30a1a63be0456e51ff1ecff0f89422b993cad573d4d8559444de73ace738a7899fd491b6778294ecd0c96b279be833b5438
24 DIST mailutils-3.8.tar.xz 2998596 BLAKE2B 4d09c7b5113129b3d2f3b113808d4460d025d4f0eec00dd1209a95f23abe97683b5d50cfe5229f1e5db48ddd6ca66c73fa6b0c1bfe03b324dbf40b6a26ff76f5 SHA512 4d081ae492beb0f9c1945541d63b52f155f11ca172abaedbe465955ac11097037f440e1aaed8d512cd3aab65f7792b755a7e4b9428a90ad7a833de87b1c4f1f9
25 DIST mailutils-3.9.tar.xz 3075268 BLAKE2B 43ee5bf297951b3c894b467a46d3983dac3e115c02169da0ee2ccbc23f8b71d7439083093f4b0710f19c78f108df99dee3310f5f6adc5b7c1792a0a7be33aab6 SHA512 1eef9bebeeafbf974e54b87705444ee02b663a86e22442a9ec5db16ade38e6e9a3079ee8a8267393e97d6e9e477917617b2e1d57d3287ab19e4df73b66e5a8d4
26
27 diff --git a/net-mail/mailutils/mailutils-3.11.ebuild b/net-mail/mailutils/mailutils-3.11.ebuild
28 new file mode 100644
29 index 00000000000..38ebb719eb2
30 --- /dev/null
31 +++ b/net-mail/mailutils/mailutils-3.11.ebuild
32 @@ -0,0 +1,138 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +PYTHON_COMPAT=( python3_{7,8,9} )
38 +
39 +inherit autotools elisp-common eutils flag-o-matic python-single-r1 toolchain-funcs
40 +
41 +DESCRIPTION="A useful collection of mail servers, clients, and filters"
42 +HOMEPAGE="https://www.gnu.org/software/mailutils/mailutils.html"
43 +SRC_URI="mirror://gnu/mailutils/${P}.tar.xz"
44 +
45 +LICENSE="GPL-2 LGPL-2.1"
46 +SLOT="0"
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-macos ~x64-macos ~x86-macos"
48 +IUSE="berkdb bidi +clients emacs gdbm sasl guile ipv6 kerberos kyotocabinet \
49 + ldap mysql nls pam postgres python servers split-usr ssl static-libs +threads tcpd \
50 + tokyocabinet"
51 +
52 +RDEPEND="!mail-client/nmh
53 + !mail-filter/libsieve
54 + !mail-client/mailx
55 + !mail-client/nail
56 + sys-libs/ncurses:=
57 + sys-libs/readline:=
58 + dev-libs/libltdl:0
59 + virtual/mta
60 + berkdb? ( sys-libs/db:= )
61 + bidi? ( dev-libs/fribidi )
62 + emacs? ( >=app-editors/emacs-23.1:* )
63 + gdbm? ( sys-libs/gdbm:= )
64 + guile? ( dev-scheme/guile:12/2.2-1 )
65 + kerberos? ( virtual/krb5 )
66 + kyotocabinet? ( dev-db/kyotocabinet )
67 + ldap? ( net-nds/openldap )
68 + mysql? ( dev-db/mysql-connector-c )
69 + nls? ( sys-devel/gettext )
70 + pam? ( sys-libs/pam )
71 + postgres? ( dev-db/postgresql:= )
72 + python? ( ${PYTHON_DEPS} )
73 + sasl? ( virtual/gsasl )
74 + servers? ( virtual/libiconv dev-libs/libunistring )
75 + ssl? ( net-libs/gnutls:= )
76 + tcpd? ( sys-apps/tcp-wrappers )
77 + tokyocabinet? ( dev-db/tokyocabinet )"
78 +
79 +DEPEND="${RDEPEND}
80 + virtual/pkgconfig"
81 +
82 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )
83 + servers? ( tcpd ldap )"
84 +
85 +DOCS=( ABOUT-NLS AUTHORS COPYING COPYING.LESSER ChangeLog INSTALL NEWS README THANKS TODO )
86 +PATCHES=(
87 + "${FILESDIR}"/${PN}-3.5-add-include.patch
88 +)
89 +
90 +pkg_setup() {
91 + use python && python-single-r1_pkg_setup
92 +}
93 +
94 +src_prepare() {
95 + default
96 + if use mysql; then
97 + sed -i -e /^INCLUDES/"s:$:$(mysql_config --include):" \
98 + sql/Makefile.am || die
99 + fi
100 + eautoreconf
101 +}
102 +
103 +src_configure() {
104 + append-flags -fno-strict-aliasing
105 +
106 + # maildir is the Gentoo default
107 + econf MU_DEFAULT_SCHEME=maildir \
108 + CURSES_LIBS="$($(tc-getPKG_CONFIG) --libs ncurses)" \
109 + $(use_with berkdb berkeley-db) \
110 + $(use_with bidi fribidi) \
111 + $(use_enable ipv6) \
112 + $(use_with gdbm) \
113 + $(use_with sasl gsasl) \
114 + $(use_with guile) \
115 + $(use_with kerberos gssapi) \
116 + $(use_with ldap) \
117 + $(use_with mysql) \
118 + $(use_enable nls) \
119 + $(use_enable pam) \
120 + $(use_with postgres) \
121 + $(use_enable python) \
122 + $(use_with ssl gnutls) \
123 + $(use_enable static-libs static) \
124 + $(use_enable threads pthread) \
125 + $(use_with tokyocabinet) \
126 + $(use_with kyotocabinet) \
127 + $(use_with tcpd tcp-wrappers) \
128 + $(use_enable servers build-servers) \
129 + $(use_with servers unistring ) \
130 + $(use_enable clients build-clients) \
131 + EMACS=$(usex emacs emacs no) \
132 + --with-lispdir="${EPREFIX}${SITELISP}/${PN}" \
133 + --with-mail-spool=/var/spool/mail \
134 + --with-readline \
135 + --enable-sendmail \
136 + --disable-debug
137 +}
138 +
139 +src_install() {
140 + default
141 +
142 + insinto /etc
143 + # bug 613112
144 + newins "${FILESDIR}/mailutils.rc" mailutils.conf
145 + keepdir /etc/mailutils.d/
146 + insinto /etc/mailutils.d
147 + doins "${FILESDIR}/mail"
148 +
149 + if use python; then
150 + python_optimize
151 + if use static-libs; then
152 + rm -r "${D}$(python_get_sitedir)/mailutils"/*.{a,la} || die
153 + fi
154 + fi
155 +
156 + if use servers; then
157 + newinitd "${FILESDIR}"/imap4d.initd imap4d
158 + newinitd "${FILESDIR}"/pop3d.initd pop3d
159 + newinitd "${FILESDIR}"/comsatd.initd comsatd
160 + fi
161 +
162 + # compatibility link
163 + if use clients && use split-usr; then
164 + dosym ../usr/bin/mail /bin/mail
165 + fi
166 +
167 + if ! use static-libs; then
168 + find "${D}" -name "*.la" -delete || die
169 + fi
170 +}