Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-client/alpine/
Date: Thu, 26 May 2022 12:58:18
Message-Id: 1653569883.515cc76f5260325a86ce3048565185c7ebf8b385.juippis@gentoo
1 commit: 515cc76f5260325a86ce3048565185c7ebf8b385
2 Author: Robert Siebeck <gentoo.2019 <AT> r123 <DOT> de>
3 AuthorDate: Mon May 16 06:55:18 2022 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Thu May 26 12:58:03 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=515cc76f
7
8 mail-client/alpine: update Chappa patch to the latest version
9
10 Bug: https://bugs.gentoo.org/844052
11 Signed-off-by: Robert Siebeck <gentoo.2019 <AT> r123.de>
12 Closes: https://github.com/gentoo/gentoo/pull/25522
13 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
14
15 mail-client/alpine/Manifest | 1 +
16 mail-client/alpine/alpine-2.25-r2.ebuild | 89 ++++++++++++++++++++++++++++++++
17 2 files changed, 90 insertions(+)
18
19 diff --git a/mail-client/alpine/Manifest b/mail-client/alpine/Manifest
20 index fe1c60aab398..c0e22786c7d9 100644
21 --- a/mail-client/alpine/Manifest
22 +++ b/mail-client/alpine/Manifest
23 @@ -1,3 +1,4 @@
24 +DIST alpine-2.25-chappa-11.patch.gz 172996 BLAKE2B b6fe190d8f95ffa9d851d4760517c25262645e1b52bcdeee75f36fc16f4ae6da862e60b144a9a037a9544e4910ce2cba39ff6f311a7a7254de18fd604453ef3d SHA512 c99c511bae13fe991fddeddedce13a0f538f7422eccf7f326db8f7d1a5558023c9995c595ec1b83f188f218894b16011ea0990797c0ab056ed7d5da600e9c518
25 DIST alpine-2.25-chappa.patch.gz 172963 BLAKE2B 5e306325beb46fd2f716620794894f563b93e116693a1af050ea5f61c203350d2aa72b67d7f66acc748caea6a73bdef85f45324eb01edf8a6035b07f8a50e2bb SHA512 b88ca58e42a72b2b92cf28e4cae492a5ee75d534821046645fcc358833e87287fc707d5bec5c3508942a0ef1ecffe64916f00f1a01e430048384838e5ca40358
26 DIST alpine-2.25-ssl.patch 5431 BLAKE2B 0cf2fcb682fbee41aa988ff089c16b75ebd9bee321c1c130d0b5136e5ca521bded7e9a97cd3ade1c86b17e72136264d4405cc36427a347c9bee84ee8a64548d4 SHA512 698d2a3c3b7b588fe3fcfe0291f0aab05c42b5ea80de1f210c1985082651329b80447de4e8057bc7e962fe8ed5175ea8132bad413c02fb1f0cc67c84e9420642
27 DIST alpine-2.25.tar.xz 7495372 BLAKE2B ce2587a309c87ba527d51c360ee0d9627453cce6585631f569eb26db04aa6c5cddb7c9599478092447a040c43e9234e78a942fef4b1186d07c608163f96236be SHA512 76c214cf66f4ac7af3de40357ad3a592ff2a119e327e5f6c256125b7865d46b09197435fe6ac8077ab7a498e4821925939f3f902431ca77baa786e149466a193
28
29 diff --git a/mail-client/alpine/alpine-2.25-r2.ebuild b/mail-client/alpine/alpine-2.25-r2.ebuild
30 new file mode 100644
31 index 000000000000..482680e82344
32 --- /dev/null
33 +++ b/mail-client/alpine/alpine-2.25-r2.ebuild
34 @@ -0,0 +1,89 @@
35 +# Copyright 1999-2022 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=8
39 +
40 +inherit autotools toolchain-funcs
41 +
42 +DESCRIPTION="An easy to use text-based based mail and news client"
43 +HOMEPAGE="http://alpine.x10host.com/alpine/ https://repo.or.cz/alpine.git/"
44 +CHAPPA_PATCH_NAME="${P}-chappa-11.patch"
45 +SRC_URI="http://alpine.x10host.com/alpine/release/src/${P}.tar.xz
46 + https://repo.or.cz/alpine.git/patch/fb2217ac67706e4cbef69bea41041e2fb8b910e9 -> ${P}-ssl.patch
47 + chappa? ( http://alpine.x10host.com/alpine/patches/${P}/all.patch.gz -> ${CHAPPA_PATCH_NAME}.gz ) "
48 +
49 +LICENSE="Apache-2.0"
50 +SLOT="0"
51 +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
52 +IUSE="+chappa ipv6 kerberos ldap nls onlyalpine passfile smime spell ssl threads"
53 +
54 +# alpine-2.25-ssl.patch can only be applied when not using the chappa patches.
55 +REQUIRED_USE="chappa? ( ssl )"
56 +
57 +DEPEND="sys-libs/ncurses:=
58 + virtual/libcrypt:=
59 + kerberos? ( app-crypt/mit-krb5 )
60 + ldap? ( net-nds/openldap:= )
61 + spell? ( app-text/aspell )
62 + ssl? ( dev-libs/openssl:0= )
63 +"
64 +RDEPEND="${DEPEND}
65 + app-misc/mime-types
66 +"
67 +
68 +src_prepare() {
69 + default
70 + if use !ssl; then
71 + eapply "${DISTDIR}/${P}-ssl.patch"
72 + fi
73 + use chappa && eapply "${WORKDIR}/${CHAPPA_PATCH_NAME}"
74 + eautoreconf
75 + tc-export CC RANLIB AR
76 + export CC_FOR_BUILD="$(tc-getBUILD_CC)"
77 +}
78 +
79 +src_configure() {
80 + myconf=(
81 + --without-tcl
82 + --with-system-pinerc="${EPREFIX}"/etc/pine.conf
83 + --with-system-fixed-pinerc="${EPREFIX}"/etc/pine.conf.fixed
84 + $(use_with ldap)
85 + $(use_with ssl)
86 + $(use_with passfile passfile .pinepwd)
87 + $(use_with kerberos krb5)
88 + $(use_with threads pthread)
89 + $(use_with spell interactive-spellcheck /usr/bin/aspell)
90 + $(use_enable nls)
91 + $(use_with ipv6)
92 + $(use_with smime)
93 + )
94 +
95 + if use ssl; then
96 + myconf+=(
97 + --with-ssl-include-dir="${EPREFIX}"/usr/include/openssl
98 + --with-ssl-lib-dir="${EPREFIX}"/usr/$(get_libdir)
99 + --with-ssl-certs-dir="${EPREFIX}"/etc/ssl/certs
100 + )
101 + fi
102 + econf "${myconf[@]}"
103 +}
104 +
105 +src_compile() {
106 + emake -j1 AR="$(tc-getAR)"
107 +}
108 +
109 +src_install() {
110 + if use onlyalpine ; then
111 + dobin alpine/alpine
112 + doman doc/man1/alpine.1
113 + else
114 + emake -j1 DESTDIR="${D}" install
115 + doman doc/man1/*.1
116 + fi
117 + dodoc NOTICE README*
118 + dodoc doc/brochure.txt
119 + dodoc -r doc/tech-notes/
120 + newdoc "${S}/doc/mailcap.unx" mailcap.unx.sample
121 + newdoc "${S}/doc/mime.types" mime.types.sample
122 + docompress -x /usr/share/doc/${PF}/mailcap.unx.sample /usr/share/doc/${PF}/mime.types.sample
123 +}