Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-client/s-nail/
Date: Mon, 28 Mar 2022 14:20:44
Message-Id: 1648477222.b9e17787f7097e32e683cb0f1ba0b58fd7d8b7c6.grknight@gentoo
1 commit: b9e17787f7097e32e683cb0f1ba0b58fd7d8b7c6
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 28 14:20:22 2022 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 28 14:20:22 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9e17787
7
8 mail-client/s-nail: Version bump for 14.9.24
9
10 Signed-off-by: Brian Evans <grknight <AT> gentoo.org>
11
12 mail-client/s-nail/Manifest | 1 +
13 mail-client/s-nail/s-nail-14.9.24.ebuild | 92 ++++++++++++++++++++++++++++++++
14 2 files changed, 93 insertions(+)
15
16 diff --git a/mail-client/s-nail/Manifest b/mail-client/s-nail/Manifest
17 index 15d4934233e9..fc9b751b8fd0 100644
18 --- a/mail-client/s-nail/Manifest
19 +++ b/mail-client/s-nail/Manifest
20 @@ -1 +1,2 @@
21 DIST s-nail-14.9.22.tar.xz 799296 BLAKE2B 4db1b74be9de38d8879b00852545840aa50022f44efc42bc338575111e391db527ba850033a9f25e6d0269f68673a13bbdcd2609c0e74fb88c409040be2d165b SHA512 016e3403fbb3d9954c160690184545fdb4fc384ffb13b146ac8b60b40e43ad1b1a8967f4660904d40a99071eb1addf2b1dd98b06c6033a1a886379c05fc0c9be
22 +DIST s-nail-14.9.24.tar.xz 803100 BLAKE2B 4d82c747ff082a1a13d8832eb2bf1e96f05d6b3cf61c77a67bc061b1971032b41d8f5fe5520b96b9b74bc4d0661a4a9ef0f8f93b5e7b9eef66906b78260cef2f SHA512 03f6a6f446391b6f91ed3c8875c3e7fdfac9d4e77ea1d52a7e98aa84cfd0edae137d5b9afba3bdc9a31ab67cee5237930b74b42ae3acb54aee4758553a4f1df2
23
24 diff --git a/mail-client/s-nail/s-nail-14.9.24.ebuild b/mail-client/s-nail/s-nail-14.9.24.ebuild
25 new file mode 100644
26 index 000000000000..cb69cd6aa3f3
27 --- /dev/null
28 +++ b/mail-client/s-nail/s-nail-14.9.24.ebuild
29 @@ -0,0 +1,92 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +inherit toolchain-funcs
36 +
37 +HOMEPAGE="https://www.sdaoden.eu/code.html"
38 +DESCRIPTION="Enhanced mailx-compatible mail client based on Heirloom mailx (nail)"
39 +LICENSE="BSD BSD-4 ISC RSA"
40 +
41 +SRC_URI="https://ftp.sdaoden.eu/${P}.tar.xz"
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
44 +IUSE="idn kerberos net ssl"
45 +
46 +RDEPEND="
47 + sys-libs/ncurses:0=
48 + virtual/libiconv
49 + idn? ( net-dns/libidn2 )
50 + net? (
51 + ssl? ( dev-libs/openssl:0= )
52 + kerberos? ( virtual/krb5 )
53 + )
54 + !mail-client/mailx
55 + !net-mail/mailutils
56 + !mail-client/nail
57 +"
58 +DEPEND="${RDEPEND}"
59 +BDEPEND="
60 + app-arch/xz-utils[extra-filters(-)]
61 + virtual/awk
62 +"
63 +
64 +src_configure() {
65 + local confopts=(
66 + CC="$(tc-getCC)"
67 + EXTRA_CFLAGS=-std=c99
68 + strip=/bin/true
69 + OPT_AUTOCC=no
70 + VAL_PREFIX="${EPREFIX}"/usr
71 + VAL_SYSCONFDIR="${EPREFIX}"/etc
72 + VAL_MTA="${EPREFIX}/usr/sbin/sendmail"
73 + VAL_MAIL='/var/spool/mail'
74 + VAL_PAGER=less
75 + $(usex idn VAL_IDNA=idn2 OPT_IDNA=no)
76 + VERBOSE=1
77 + )
78 +
79 + if use net; then
80 + confopts+=( OPT_TLS=$(usex ssl require no)
81 + OPT_GSSAPI=$(usex kerberos require no)
82 + )
83 + else
84 + confopts+=( OPT_NET=no )
85 + fi
86 +
87 + tc-is-cross-compiler && confopts+=( OPT_CROSS_BUILD=yes )
88 +
89 + emake "${confopts[@]}" config
90 +}
91 +
92 +src_compile() {
93 + emake build
94 +}
95 +
96 +src_install() {
97 + # Use /usr/sbin/sendmail by default and provide an example
98 + cat <<- EOSMTP >> nail.rc
99 +
100 + # Use the local sendmail (/usr/sbin/sendmail) binary by default.
101 + # (Uncomment the following line to use a SMTP server)
102 + #set smtp=localhost
103 +
104 + # Ask for CC: list too.
105 + set askcc
106 + EOSMTP
107 +
108 + emake DESTDIR="${D}" install
109 +
110 + dodoc INSTALL NEWS README THANKS
111 +
112 + dodir /bin
113 + dosym ../usr/bin/mailx /bin/mail
114 + dosym s-nail /usr/bin/mailx
115 + dosym mailx /usr/bin/mail
116 + dosym mailx /usr/bin/Mail
117 +
118 + dosym s-nail.1 /usr/share/man/man1/mailx.1
119 + dosym mailx.1 /usr/share/man/man1/mail.1
120 + dosym mailx.1 /usr/share/man/man1/Mail.1
121 +}