1 |
commit: 09ff218d3b4d95818de1e519fea0ffa721931bcd |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 3 16:19:10 2022 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 3 16:19:22 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09ff218d |
7 |
|
8 |
mail-client/aerc: add 0.9.0 |
9 |
|
10 |
Signed-off-by: William Hubbs <williamh <AT> gentoo.org> |
11 |
|
12 |
mail-client/aerc/Manifest | 2 ++ |
13 |
mail-client/aerc/aerc-0.9.0.ebuild | 67 ++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 69 insertions(+) |
15 |
|
16 |
diff --git a/mail-client/aerc/Manifest b/mail-client/aerc/Manifest |
17 |
index 762633d6ddaf..e38567bdae83 100644 |
18 |
--- a/mail-client/aerc/Manifest |
19 |
+++ b/mail-client/aerc/Manifest |
20 |
@@ -1,2 +1,4 @@ |
21 |
DIST aerc-0.8.2-deps.tar.xz 104907184 BLAKE2B d62d64bc58fab72b45db6a557ac23fb61b335a469755f4beb9510c89c17c717147dbc713f86e0c407a95de70b9426ae1aaf9edda1b90814aa596a154b258695a SHA512 2b9b7638012bb212b2bd40ce0f27db54097e9ac714c9724aa59c31c70acc888a01405f2d8180a22973901690e3743042c8d04cd8f75d3b37d95af9ffbd802a33 |
22 |
DIST aerc-0.8.2.tar.gz 173468 BLAKE2B f45ae8a7a56ceaa7a0ecf21edb17d1c613d2dd505d5f3029fc0519c51d7deb4f7ccf3cfa656aff8f7609d109395adc6edc8be7f388c82ad214c182ed6a64b7db SHA512 287f628cce4eee9a308c11319d77396ff43f31b9c608dfeb1f8200935329f03c89bdba03259d22857aea6e80c4c664362006c0aee630586ed168e3049e4dfbaf |
23 |
+DIST aerc-0.9.0-deps.tar.xz 117828944 BLAKE2B 9d5e8561ecc4cae5568655cfb8491b970a0ff8640d35f0d1ae6493ed1d59fc03051556526c2699afea5b27ddb8f25c948fdd5115695935977e5e09fffb1df02a SHA512 7f66ad4124d4da9a295aa096105e4bef2487c393e7b0299fc0da3aacb8dc87cab2b34057419a9ae4f18c3e1385725fc31bae640325b99957782f0aa3eef51e12 |
24 |
+DIST aerc-0.9.0.tar.gz 184022 BLAKE2B 5555523228d08361434690c6c565746408ac50061ee12fc9983c0831beac8d4badc6196a5f3186f3a7c5e63b3eaae51f9af230804e093dd87f425412c5877541 SHA512 5821a35bc9c893ac800532b24cce0dcee5113fe41cce057e3ce952c7d7e9add680cbb11b4700cc8896d852817534d979df44f1cb82d93ae5438ebed826bab7bb |
25 |
|
26 |
diff --git a/mail-client/aerc/aerc-0.9.0.ebuild b/mail-client/aerc/aerc-0.9.0.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..f09b2cc25fa8 |
29 |
--- /dev/null |
30 |
+++ b/mail-client/aerc/aerc-0.9.0.ebuild |
31 |
@@ -0,0 +1,67 @@ |
32 |
+# Copyright 2019-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+inherit go-module xdg |
37 |
+ |
38 |
+DESCRIPTION="Email client for your terminal" |
39 |
+HOMEPAGE="https://aerc-mail.org" |
40 |
+ |
41 |
+if [[ ${PV} == *9999 ]]; then |
42 |
+ inherit git-r3 |
43 |
+ EGIT_REPO_URI="https://git.sr.ht/~rjarry/aerc" |
44 |
+else |
45 |
+ SRC_URI="https://git.sr.ht/~rjarry/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
46 |
+ SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz" |
47 |
+ KEYWORDS="~amd64 ~ppc64" |
48 |
+fi |
49 |
+ |
50 |
+LICENSE="Apache-2.0 BSD BSD-2 MIT" |
51 |
+SLOT="0" |
52 |
+IUSE="notmuch" |
53 |
+ |
54 |
+DEPEND="notmuch? ( net-mail/notmuch:= )" |
55 |
+RDEPEND="${DEPEND}" |
56 |
+BDEPEND=" |
57 |
+ >=app-text/scdoc-1.9.7 |
58 |
+ >=dev-lang/go-1.13 |
59 |
+" |
60 |
+ |
61 |
+src_unpack() { |
62 |
+ if [[ ${PV} == *9999 ]]; then |
63 |
+ git-r3_src_unpack |
64 |
+ go-module_live_vendor |
65 |
+ else |
66 |
+ go-module_src_unpack |
67 |
+ fi |
68 |
+} |
69 |
+ |
70 |
+src_compile() { |
71 |
+ unset LDFLAGS |
72 |
+ emake GOFLAGS="$(usex notmuch "-tags=notmuch" "")" \ |
73 |
+ PREFIX="${EPREFIX}/usr" VERSION=${PV} all |
74 |
+} |
75 |
+ |
76 |
+src_install() { |
77 |
+ emake PREFIX="${EPREFIX}/usr" DESTDIR="${ED}" install |
78 |
+ einstalldocs |
79 |
+} |
80 |
+ |
81 |
+pkg_postinst() { |
82 |
+ if [[ -z ${REPLACING_VERSIONS} ]]; then |
83 |
+ elog "If you want to allow your users to activate html email" |
84 |
+ elog "processing via w3m as shown in the tutorial, make sure you" |
85 |
+ elog "emerge net-proxy/dante and www-client/w3m" |
86 |
+ fi |
87 |
+ |
88 |
+ local v |
89 |
+ for v in ${REPLACING_VERSIONS}; do |
90 |
+ if ver_test $v -lt 0.3.0-r1; then |
91 |
+ elog "The dependencies on net-proxy/dante and www-client/w3m" |
92 |
+ elog "have been removed since they are optional." |
93 |
+ elog "Please emerge them before the next --depclean if you" |
94 |
+ elog "need to use them." |
95 |
+ fi |
96 |
+ done |
97 |
+ xdg_pkg_postinst |
98 |
+} |