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: Tue, 05 May 2020 08:47:04
Message-Id: 1588668388.9040e7378ba1261c2a43ccfee68e69effc647395.juippis@gentoo
1 commit: 9040e7378ba1261c2a43ccfee68e69effc647395
2 Author: Robert Siebeck <gentoo.2019 <AT> r123 <DOT> de>
3 AuthorDate: Fri Apr 24 20:51:52 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Tue May 5 08:46:28 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9040e737
7
8 mail-client/alpine: bring back chappa patches
9
10 Signed-off-by: Robert Siebeck <gentoo.2019 <AT> r123.de>
11 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
12
13 mail-client/alpine/Manifest | 1 +
14 mail-client/alpine/alpine-2.22-r1.ebuild | 93 ++++++++++++++++++++++++++++++++
15 mail-client/alpine/metadata.xml | 2 +
16 3 files changed, 96 insertions(+)
17
18 diff --git a/mail-client/alpine/Manifest b/mail-client/alpine/Manifest
19 index e972ef49612..3330c0fc2c0 100644
20 --- a/mail-client/alpine/Manifest
21 +++ b/mail-client/alpine/Manifest
22 @@ -1,2 +1,3 @@
23 +DIST alpine-2.22-chappa.patch.gz 173232 BLAKE2B ac2cfc22119c9e60fdc053212447fb5df8cc59781c049329560d21e19e67d700fe45a07649352747583b500a605499eeb61dfd83ba150c3bd58f4033486e2581 SHA512 9db36ebb4fb2efaee975ed33d44cf95780c56075cbc0ad39056268248db38109e1bb04e279b40cdd085b3dfec89d0f9c69aa4ddf5a64b5708437909661288e23
24 DIST alpine-2.22.tar.xz 6336604 BLAKE2B 65cab2000b6c606c002efcca6e731d2c87329b4685dec81d202e95598b4302175137ea84f079af1f766a6ef99d0b2cb51132e12539bea7f4d24954bb48af7bea SHA512 7737dce02ac94170948df7fccb61380c6cb101190e37f5b3ba281d573f54df1db24569d177b460f49bfff381a922be2e4b0f3a0f1a213d88a64d361aedc3c4f1
25 DIST alpine-843b2f1.tar.gz 7490140 BLAKE2B 13ac5ef43dd729a7cf21b44dcd6feace3e1813672aec537fd05d5ff90b67bec145ceef71cfcf35b0cb7e250bb307556f5dcf8ebb024bc6366fd0ace0a7c41161 SHA512 106caa7bfe86fd5e82554ba68b9ee579cd8495bcd0dfbf82d9d75da2df3bd292d42d67af8ec737091f2a820b2555c25bbf0058c9c7bb5de5f950b570ffc25c4d
26
27 diff --git a/mail-client/alpine/alpine-2.22-r1.ebuild b/mail-client/alpine/alpine-2.22-r1.ebuild
28 new file mode 100644
29 index 00000000000..3bd3ad915a9
30 --- /dev/null
31 +++ b/mail-client/alpine/alpine-2.22-r1.ebuild
32 @@ -0,0 +1,93 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit autotools toolchain-funcs
39 +
40 +DESCRIPTION="An easy to use text-based based mail and news client"
41 +HOMEPAGE="http://alpine.x10host.com/alpine/ https://repo.or.cz/alpine.git/"
42 +CHAPPA_PATCH_NAME="${P}-chappa.patch"
43 +SRC_URI="http://alpine.x10host.com/alpine/release/src/${P}.tar.xz
44 + chappa? ( http://alpine.x10host.com/alpine/patches/${P}/all.patch.gz -> ${CHAPPA_PATCH_NAME}.gz ) "
45 +
46 +LICENSE="Apache-2.0"
47 +SLOT="0"
48 +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
49 +IUSE="doc ipv6 kerberos ldap libressl nls onlyalpine passfile smime spell ssl threads +chappa"
50 +
51 +DEPEND=">=sys-libs/ncurses-5.1:0=
52 + kerberos? ( app-crypt/mit-krb5 )
53 + ldap? ( net-nds/openldap )
54 + spell? ( app-text/aspell )
55 + ssl? (
56 + !libressl? ( dev-libs/openssl:0= )
57 + libressl? ( dev-libs/libressl:0= )
58 + )
59 +"
60 +RDEPEND="${DEPEND}
61 + app-misc/mime-types
62 +"
63 +
64 +PATCHES=(
65 + "${FILESDIR}/${P}-cc.patch"
66 +)
67 +
68 +src_prepare() {
69 + default
70 + use chappa && eapply "${WORKDIR}/${CHAPPA_PATCH_NAME}"
71 + eautoreconf
72 + tc-export CC RANLIB AR
73 + export CC_FOR_BUILD=$(tc-getBUILD_CC)
74 +}
75 +
76 +src_configure() {
77 + myconf=(
78 + --without-tcl
79 + --with-system-pinerc="${EPREFIX}"/etc/pine.conf
80 + --with-system-fixed-pinerc="${EPREFIX}"/etc/pine.conf.fixed
81 + $(use_with ldap)
82 + $(use_with ssl)
83 + $(use_with passfile passfile .pinepwd)
84 + $(use_with kerberos krb5)
85 + $(use_with threads pthread)
86 + $(use_with spell interactive-spellcheck /usr/bin/aspell)
87 + $(use_enable nls)
88 + $(use_with ipv6)
89 + $(use_with smime)
90 + )
91 +
92 + if use ssl; then
93 + myconf+=(
94 + --with-ssl-include-dir="${EPREFIX}"/usr/include/openssl
95 + --with-ssl-lib-dir="${EPREFIX}"/usr/$(get_libdir)
96 + --with-ssl-certs-dir="${EPREFIX}"/etc/ssl/certs
97 + )
98 + fi
99 + econf "${myconf[@]}"
100 +}
101 +
102 +src_compile() {
103 + emake -j1 AR=$(tc-getAR)
104 +}
105 +
106 +src_install() {
107 + if use onlyalpine ; then
108 + dobin alpine/alpine
109 + doman doc/man1/alpine.1
110 + else
111 + emake -j1 DESTDIR="${D}" install
112 + doman doc/man1/*.1
113 + fi
114 +
115 + dodoc NOTICE README*
116 +
117 + if use doc ; then
118 + dodoc doc/brochure.txt
119 +
120 + dodoc -r doc/tech-notes/
121 + newdoc "${S}/doc/mailcap.unx" mailcap.unx.sample
122 + newdoc "${S}/doc/mime.types" mime.types.sample
123 + docompress -x /usr/share/doc/${PF}/mailcap.unx.sample /usr/share/doc/${PF}/mime.types.sample
124 + fi
125 +}
126
127 diff --git a/mail-client/alpine/metadata.xml b/mail-client/alpine/metadata.xml
128 index 155fe030ffa..f37867c6e47 100644
129 --- a/mail-client/alpine/metadata.xml
130 +++ b/mail-client/alpine/metadata.xml
131 @@ -10,6 +10,8 @@
132 <name>Proxy Maintainers</name>
133 </maintainer>
134 <use>
135 + <flag name="chappa">enhance Alpine by applying Eduardo Chappa's
136 + patches</flag>
137 <flag name="onlyalpine">installs only the alpine binary, so it does
138 not collied with pico and/or pine</flag>
139 <flag name="passfile">Adds support for caching passwords into a file