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: Mon, 03 Jan 2022 07:35:23
Message-Id: 1641195308.76b70d1cca378bdaccc1e398a2f3674ebc9a3c5e.eras@gentoo
1 commit: 76b70d1cca378bdaccc1e398a2f3674ebc9a3c5e
2 Author: Eray Aslan <eras <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 3 07:35:08 2022 +0000
4 Commit: Eray Aslan <eras <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 3 07:35:08 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76b70d1c
7
8 net-mail/mailutils: bump to 3.14
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Eray Aslan <eras <AT> gentoo.org>
12
13 net-mail/mailutils/Manifest | 1 +
14 net-mail/mailutils/mailutils-3.14.ebuild | 141 +++++++++++++++++++++++++++++++
15 2 files changed, 142 insertions(+)
16
17 diff --git a/net-mail/mailutils/Manifest b/net-mail/mailutils/Manifest
18 index 91f34b18d840..6ca42c23d71b 100644
19 --- a/net-mail/mailutils/Manifest
20 +++ b/net-mail/mailutils/Manifest
21 @@ -1,2 +1,3 @@
22 DIST mailutils-3.12.tar.xz 3134484 BLAKE2B eac7934e9332482adffa3d4b1574d89a65949644ca8dd14e507e9c5f268d485b97f4d61deadf34b2ddcae1b91deee93372e9ebd53c88a0c0092346a0d83fd67e SHA512 a7d681bc7a763b7f09b704c8a536ea1c2444c52ca736eca321ca72fd32e2e62c0e14687ba79654d9162d45189d0621b1c75c639b81e04a79bbf3b3c09b9cebd2
23 DIST mailutils-3.13.tar.xz 3152892 BLAKE2B cd7d9ce0391d85482581eeb52f60fcc175647d21e433a4dacee3547aa4dcd710331ad780b6706c242d1a7501ec7fc50ff0c25f9b5f4ceeed84893c637ca366c1 SHA512 fd0b23aa535c6446af1ae633d68d41d1aa243d489b2623d346f6a0d6b543c43ab6c2b9bb1449d664abacbcd3ec3a0a5e7a0a5d56d2762e8a961544c77ccc592a
24 +DIST mailutils-3.14.tar.xz 3215944 BLAKE2B 64965c177065eacab9f5545fbeacd538492995f808dab731d02acbe7d63161f3bfb1528a0ca71e30c32ba12edc7e4f68642f2e5154b66d3bb48c479cae95c754 SHA512 9797deb8901d03a231c3503d75a758fbfb1220d1e064dd8be74735e6c88aa04c94533e802a60fdfbe12f1bd7daec4a39249cd957b103f09b89df364bd9a8869d
25
26 diff --git a/net-mail/mailutils/mailutils-3.14.ebuild b/net-mail/mailutils/mailutils-3.14.ebuild
27 new file mode 100644
28 index 000000000000..7ae1a24c20ad
29 --- /dev/null
30 +++ b/net-mail/mailutils/mailutils-3.14.ebuild
31 @@ -0,0 +1,141 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +PYTHON_COMPAT=( python3_{8..10} )
37 +
38 +inherit autotools elisp-common flag-o-matic python-single-r1 toolchain-funcs
39 +
40 +DESCRIPTION="A useful collection of mail servers, clients, and filters"
41 +HOMEPAGE="https://mailutils.org/"
42 +SRC_URI="mirror://gnu/mailutils/${P}.tar.xz"
43 +
44 +LICENSE="GPL-2 LGPL-2.1"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-macos ~x64-macos"
47 +IUSE="berkdb bidi +clients emacs gdbm sasl guile ipv6 kerberos kyotocabinet \
48 + ldap mysql nls pam postgres python servers split-usr ssl static-libs +threads tcpd \
49 + tokyocabinet"
50 +
51 +RDEPEND="
52 + !mail-filter/libsieve
53 + !mail-client/mailx
54 + sys-libs/ncurses:=
55 + sys-libs/readline:=
56 + dev-libs/libltdl:0
57 + virtual/libcrypt:=
58 + virtual/mta
59 + berkdb? ( sys-libs/db:= )
60 + bidi? ( dev-libs/fribidi )
61 + emacs? ( >=app-editors/emacs-23.1:* )
62 + gdbm? ( sys-libs/gdbm:= )
63 + guile? ( dev-scheme/guile:12/2.2-1 )
64 + kerberos? ( virtual/krb5 )
65 + kyotocabinet? ( dev-db/kyotocabinet )
66 + ldap? ( net-nds/openldap )
67 + mysql? ( dev-db/mysql-connector-c )
68 + nls? ( sys-devel/gettext )
69 + pam? ( sys-libs/pam:= )
70 + postgres? ( dev-db/postgresql:= )
71 + python? ( ${PYTHON_DEPS} )
72 + sasl? ( virtual/gsasl )
73 + servers? ( virtual/libiconv dev-libs/libunistring:= )
74 + ssl? ( net-libs/gnutls:= )
75 + tcpd? ( sys-apps/tcp-wrappers )
76 + tokyocabinet? ( dev-db/tokyocabinet )
77 + "
78 +
79 +DEPEND="${RDEPEND}"
80 +
81 +BDEPEND="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 \
109 + MU_DEFAULT_SCHEME=maildir \
110 + CURSES_LIBS="$($(tc-getPKG_CONFIG) --libs ncurses)" \
111 + $(use_with berkdb berkeley-db) \
112 + $(use_with bidi fribidi) \
113 + $(use_enable ipv6) \
114 + $(use_with gdbm) \
115 + $(use_with sasl gsasl) \
116 + $(use_with guile) \
117 + $(use_with kerberos gssapi) \
118 + $(use_with ldap) \
119 + $(use_with mysql) \
120 + $(use_enable nls) \
121 + $(use_enable pam) \
122 + $(use_with postgres) \
123 + $(use_enable python) \
124 + $(use_with ssl gnutls) \
125 + $(use_enable static-libs static) \
126 + $(use_enable threads pthread) \
127 + $(use_with tokyocabinet) \
128 + $(use_with kyotocabinet) \
129 + $(use_with tcpd tcp-wrappers) \
130 + $(use_enable servers build-servers) \
131 + $(use_with servers unistring ) \
132 + $(use_enable clients build-clients) \
133 + EMACS=$(usex emacs emacs no) \
134 + --with-lispdir="${EPREFIX}${SITELISP}/${PN}" \
135 + --with-mail-spool=/var/spool/mail \
136 + --with-readline \
137 + --enable-sendmail \
138 + --disable-debug
139 +}
140 +
141 +src_install() {
142 + default
143 +
144 + insinto /etc
145 + # bug 613112
146 + newins "${FILESDIR}/mailutils.rc" mailutils.conf
147 + keepdir /etc/mailutils.d/
148 + insinto /etc/mailutils.d
149 + doins "${FILESDIR}/mail"
150 +
151 + if use python; then
152 + python_optimize
153 + if use static-libs; then
154 + rm -r "${D}$(python_get_sitedir)/mailutils"/*.{a,la} || die
155 + fi
156 + fi
157 +
158 + if use servers; then
159 + newinitd "${FILESDIR}"/imap4d.initd imap4d
160 + newinitd "${FILESDIR}"/pop3d.initd pop3d
161 + newinitd "${FILESDIR}"/comsatd.initd comsatd
162 + fi
163 +
164 + # compatibility link
165 + if use clients && use split-usr; then
166 + dosym ../usr/bin/mail /bin/mail
167 + fi
168 +
169 + if ! use static-libs; then
170 + find "${D}" -name "*.la" -delete || die
171 + fi
172 +}