1 |
commit: 8523738d6da11143cf18c9f042440c2bf14259e8 |
2 |
Author: Robert Siebeck <gentoo.2019 <AT> r123 <DOT> de> |
3 |
AuthorDate: Sat Jun 11 12:33:48 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jun 25 04:31:10 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8523738d |
7 |
|
8 |
mail-client/alpine: add version 2.26 |
9 |
|
10 |
Co-authored-by: CFuga <cfuga <AT> cfuga.mx> |
11 |
Closes: https://bugs.gentoo.org/850781 |
12 |
Signed-off-by: Robert Siebeck <gentoo.2019 <AT> r123.de> |
13 |
Closes: https://github.com/gentoo/gentoo/pull/25856 |
14 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
15 |
|
16 |
mail-client/alpine/Manifest | 2 + |
17 |
mail-client/alpine/alpine-2.26.ebuild | 90 +++++++++++++++++++++++++++++++++++ |
18 |
2 files changed, 92 insertions(+) |
19 |
|
20 |
diff --git a/mail-client/alpine/Manifest b/mail-client/alpine/Manifest |
21 |
index c0e22786c7d9..d00d09f2c8bf 100644 |
22 |
--- a/mail-client/alpine/Manifest |
23 |
+++ b/mail-client/alpine/Manifest |
24 |
@@ -2,3 +2,5 @@ DIST alpine-2.25-chappa-11.patch.gz 172996 BLAKE2B b6fe190d8f95ffa9d851d4760517c |
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 |
+DIST alpine-2.26-chappa-5.patch.gz 173031 BLAKE2B 8719d37fde313e190608489e6191d4f0456f8a00ea267712e1c078ab1bbd3a8542bab3cf498faa1482fde386c24bf5335c54c39595ffb7fb019d13e975bf697a SHA512 aa979825367b309d5726055620c6f8f3effff954863e648de25f768ffbc175c3f91c8d1917e89116f35195a5ae266a9dcac51eb7f744f119ad848ddc0d10b8cc |
29 |
+DIST alpine-2.26.tar.xz 7517628 BLAKE2B fe156974462dd566ac3fbe25cc54a1b2a480b3af46c8356356a97426f3e42495853efdbfeedc6173537dc150d90592c3fd9109e7d37f16738922a4205fd2f9df SHA512 359b5cb30be78a341b76c0475a2d5268b643788f14c9b5b9457af6748034e1d2e70fd7ddf59e5c59ad596a36d8a10afa9c41cbd74241c780b8575d8186168fd2 |
30 |
|
31 |
diff --git a/mail-client/alpine/alpine-2.26.ebuild b/mail-client/alpine/alpine-2.26.ebuild |
32 |
new file mode 100644 |
33 |
index 000000000000..c06917b3931e |
34 |
--- /dev/null |
35 |
+++ b/mail-client/alpine/alpine-2.26.ebuild |
36 |
@@ -0,0 +1,90 @@ |
37 |
+# Copyright 1999-2022 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=8 |
41 |
+ |
42 |
+inherit autotools optfeature toolchain-funcs |
43 |
+ |
44 |
+DESCRIPTION="An easy to use text-based based mail and news client" |
45 |
+HOMEPAGE="https://alpineapp.email/ https://repo.or.cz/alpine.git/" |
46 |
+CHAPPA_PATCH_NAME="${P}-chappa-5.patch" |
47 |
+SRC_URI="https://alpineapp.email/alpine/release/src/${P}.tar.xz |
48 |
+ chappa? ( https://alpineapp.email/alpine/patches/${P}/all.patch.gz -> ${CHAPPA_PATCH_NAME}.gz ) " |
49 |
+ |
50 |
+LICENSE="Apache-2.0" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
53 |
+IUSE="+chappa ipv6 kerberos ldap nls onlyalpine passfile smime ssl threads" |
54 |
+ |
55 |
+DEPEND="sys-libs/ncurses:= |
56 |
+ virtual/libcrypt:= |
57 |
+ kerberos? ( app-crypt/mit-krb5 ) |
58 |
+ ldap? ( net-nds/openldap:= ) |
59 |
+ ssl? ( dev-libs/openssl:0= ) |
60 |
+" |
61 |
+RDEPEND="${DEPEND} |
62 |
+ app-misc/mime-types |
63 |
+" |
64 |
+ |
65 |
+src_prepare() { |
66 |
+ default |
67 |
+ use chappa && eapply "${WORKDIR}/${CHAPPA_PATCH_NAME}" |
68 |
+ eautoreconf |
69 |
+ tc-export CC RANLIB AR |
70 |
+ export CC_FOR_BUILD="$(tc-getBUILD_CC)" |
71 |
+} |
72 |
+ |
73 |
+src_configure() { |
74 |
+ myconf=( |
75 |
+ --without-tcl |
76 |
+ --with-system-pinerc="${EPREFIX}"/etc/pine.conf |
77 |
+ --with-system-fixed-pinerc="${EPREFIX}"/etc/pine.conf.fixed |
78 |
+ $(use_with ldap) |
79 |
+ $(use_with ssl) |
80 |
+ $(use_with passfile passfile .pinepwd) |
81 |
+ $(use_with kerberos krb5) |
82 |
+ $(use_with threads pthread) |
83 |
+ $(use_enable nls) |
84 |
+ $(use_with ipv6) |
85 |
+ $(use_with smime) |
86 |
+ ) |
87 |
+ |
88 |
+ if has_version "app-text/hunspell"; then |
89 |
+ myconf+=( --with-interactive-spellcheck=/usr/bin/hunspell ) |
90 |
+ elif has_version "app-text/aspell"; then |
91 |
+ myconf+=( --with-interactive-spellcheck=/usr/bin/aspell ) |
92 |
+ fi |
93 |
+ |
94 |
+ if use ssl; then |
95 |
+ myconf+=( |
96 |
+ --with-ssl-include-dir="${EPREFIX}"/usr/include/openssl |
97 |
+ --with-ssl-lib-dir="${EPREFIX}"/usr/$(get_libdir) |
98 |
+ --with-ssl-certs-dir="${EPREFIX}"/etc/ssl/certs |
99 |
+ ) |
100 |
+ fi |
101 |
+ econf "${myconf[@]}" |
102 |
+} |
103 |
+ |
104 |
+src_compile() { |
105 |
+ emake -j1 AR="$(tc-getAR)" |
106 |
+} |
107 |
+ |
108 |
+src_install() { |
109 |
+ if use onlyalpine ; then |
110 |
+ dobin alpine/alpine |
111 |
+ doman doc/man1/alpine.1 |
112 |
+ else |
113 |
+ emake -j1 DESTDIR="${D}" install |
114 |
+ doman doc/man1/*.1 |
115 |
+ fi |
116 |
+ dodoc NOTICE README* |
117 |
+ dodoc doc/brochure.txt |
118 |
+ dodoc -r doc/tech-notes/ |
119 |
+ newdoc "${S}/doc/mailcap.unx" mailcap.unx.sample |
120 |
+ newdoc "${S}/doc/mime.types" mime.types.sample |
121 |
+ docompress -x /usr/share/doc/${PF}/mailcap.unx.sample /usr/share/doc/${PF}/mime.types.sample |
122 |
+} |
123 |
+ |
124 |
+pkg_postinst() { |
125 |
+ optfeature "Spell checking" app-text/hunspell app-text/aspell |
126 |
+} |