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