Gentoo Archives: gentoo-commits

From: Leonardo Hernandez <leohdz172@×××××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-mail/hydroxide/
Date: Tue, 02 Aug 2022 19:50:41
Message-Id: 1659465821.dfbb83fdea1884810c809f3ca0a7f5ed135032cd.leohdz172@gentoo
1 commit: dfbb83fdea1884810c809f3ca0a7f5ed135032cd
2 Author: Leonardo Hernández Hernández <leohdz172 <AT> outlook <DOT> com>
3 AuthorDate: Tue Aug 2 18:40:56 2022 +0000
4 Commit: Leonardo Hernandez <leohdz172 <AT> outlook <DOT> com>
5 CommitDate: Tue Aug 2 18:43:41 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=dfbb83fd
7
8 net-mail/hydroxide: new package, add 0.2.23, 9999
9
10 Signed-off-by: Leonardo Hernández Hernández <leohdz172 <AT> outlook.com>
11
12 net-mail/hydroxide/Manifest | 3 ++
13 net-mail/hydroxide/hydroxide-0.2.23.ebuild | 56 ++++++++++++++++++++++++++++++
14 net-mail/hydroxide/hydroxide-9999.ebuild | 56 ++++++++++++++++++++++++++++++
15 net-mail/hydroxide/metadata.xml | 12 +++++++
16 4 files changed, 127 insertions(+)
17
18 diff --git a/net-mail/hydroxide/Manifest b/net-mail/hydroxide/Manifest
19 new file mode 100644
20 index 000000000..6ccab93da
21 --- /dev/null
22 +++ b/net-mail/hydroxide/Manifest
23 @@ -0,0 +1,3 @@
24 +DIST hydroxide-0.2.23-deps.tar.xz 24543788 BLAKE2B 589d9a1f9c65ea192817f76bb00cce56d9d1bfa4c496dd392fbab65edaee34ac850fcc55d05d8ec944c49d98a7432bf4e2b4271e7acbc870d9bf115c4f0a8002 SHA512 ab1dfbc65677caac4d51e6e6301328046811e0359c45552e702da5605e990152040cdc6eec2920d7dd914cbdaf15d8179ae41a9a51d5e0b507c442d875516caf
25 +DIST hydroxide-0.2.23.tar.gz 43602 BLAKE2B d238758a67475620325ac7b267aa714a84871d45762f22547798dddc0562419988c382cb79a314d7239dd5fa9eafd407ae1cc20a491391a14ef872af36ad3495 SHA512 9f2c9b59cb7c1dfcfec9cc626767f340b1d5caea4db69e81de6b87c4bcf26840d14cd6568a0d3aad36d8e31184e2f1827a5e27745338bc2f38265ce64fe2d4a4
26 +DIST hydroxide-0.2.23.tar.gz.sig 566 BLAKE2B f8ba4f03ea9dd41f79cade5acdf19ef29ed40cb456465240ea60ba7bdfed86e5c842a9b74d78e4c49629de86d8d0630bd54b23923d50df926df2203fc0a5d543 SHA512 e2f87ec14412720479cdfc854268bd2422080bdf528491cf3d004f9e46e86fa5872f853b4085513c28f2a929a8f799a4f30538e66496f93aebc81a06a0ff584e
27
28 diff --git a/net-mail/hydroxide/hydroxide-0.2.23.ebuild b/net-mail/hydroxide/hydroxide-0.2.23.ebuild
29 new file mode 100644
30 index 000000000..e41adf553
31 --- /dev/null
32 +++ b/net-mail/hydroxide/hydroxide-0.2.23.ebuild
33 @@ -0,0 +1,56 @@
34 +# Copyright 2022 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=8
38 +
39 +inherit go-module
40 +
41 +if [[ "${PV}" == "9999" ]]; then
42 + inherit git-r3
43 + EGIT_REPO_URI="https://github.com/emersion/hydroxide.git"
44 +else
45 + inherit verify-sig
46 + SRC_URI="https://github.com/emersion/${PN}/releases/download/v${PV}/${P}.tar.gz
47 + verify-sig? ( https://github.com/emersion/${PN}/releases/download/v${PV}/${P}.tar.gz.sig )
48 + https://gitlab.com/sevz17/go-deps/-/raw/main/${P}-deps.tar.xz
49 + "
50 + VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}/usr/share/openpgp-keys/emersion.asc"
51 + BDEPEND+="verify-sig? ( sec-keys/opengpg-keys-emersion )"
52 + KEYWORDS="~amd64"
53 +fi
54 +
55 +DESCRIPTION="A third-party, open-source ProtonMail CardDAV, IMAP and SMTP bridge"
56 +HOMEPAGE="https://github.com/emersion/hydroxide"
57 +
58 +LICENSE="MIT BSD"
59 +SLOT="0"
60 +
61 +src_unpack() {
62 + if [[ "${PV}" == *9999* ]]; then
63 + git-r3_src_unpack
64 + go-module_live_vendor
65 + else
66 + if use verify-sig; then
67 + verify-sig_verify_detached "${DISTDIR}"/"${P}".tar.gz{,.sig}
68 + fi
69 + go-module_src_unpack
70 + fi
71 +}
72 +
73 +src_compile() {
74 + ego build -v ./cmd/hydroxide
75 +}
76 +
77 +src_install() {
78 + local DOCS=( "LICENSE" "README.md" )
79 + einstalldocs
80 +
81 + dobin "${PN}"
82 +}
83 +
84 +pkg_postinst() {
85 + elog ""
86 + elog "In order to use ${PN} you need to read"
87 + elog "https://github.com/emersion/hydroxide#installing"
88 + elog ""
89 +}
90
91 diff --git a/net-mail/hydroxide/hydroxide-9999.ebuild b/net-mail/hydroxide/hydroxide-9999.ebuild
92 new file mode 100644
93 index 000000000..ea47dd123
94 --- /dev/null
95 +++ b/net-mail/hydroxide/hydroxide-9999.ebuild
96 @@ -0,0 +1,56 @@
97 +# Copyright 2022 Gentoo Authors
98 +# Distributed under the terms of the GNU General Public License v2
99 +
100 +EAPI=8
101 +
102 +inherit go-module
103 +
104 +if [[ "${PV}" == "9999" ]]; then
105 + inherit git-r3
106 + EGIT_REPO_URI="https://github.com/emersion/hydroxide.git"
107 +else
108 + inherit verify-sig
109 + SRC_URI="https://github.com/emersion/${PN}/releases/download/v${PV}/${P}.tar.gz
110 + verify-sig? ( https://github.com/emersion/${PN}/releases/download/v${PV}/${P}.tar.gz.sig )
111 + https://gitlab.com/sevz17/go-deps/-/raw/main/${P}-deps.tar.xz
112 + "
113 + VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}/usr/share/openpgp-keys/emersion.asc"
114 + BDEPEND+="verify-sig? ( sec-keys/opengpg-keys-emersion )"
115 + KEYWORDS="~amd64"
116 +fi
117 +
118 +DESCRIPTION="A third-party, open-source ProtonMail CardDAV, IMAP and SMTP bridge"
119 +HOMEPAGE="https://github.com/emersion/hydroxide"
120 +
121 +LICENSE="MIT BSD"
122 +SLOT="0"
123 +
124 +src_unpack() {
125 + if [[ "${PV}" == "9999" ]]; then
126 + git-r3_src_unpack
127 + go-module_live_vendor
128 + else
129 + if use verify-sig; then
130 + verify-sig_verify_detached "${DISTDIR}"/"${P}".tar.gz{,.sig}
131 + fi
132 + go-module_src_unpack
133 + fi
134 +}
135 +
136 +src_compile() {
137 + ego build -v ./cmd/hydroxide
138 +}
139 +
140 +src_install() {
141 + local DOCS=( "LICENSE" "README.md" )
142 + einstalldocs
143 +
144 + dobin "${PN}"
145 +}
146 +
147 +pkg_postinst() {
148 + elog ""
149 + elog "In order to use ${PN} you need to read"
150 + elog "https://github.com/emersion/hydroxide#installing"
151 + elog ""
152 +}
153
154 diff --git a/net-mail/hydroxide/metadata.xml b/net-mail/hydroxide/metadata.xml
155 new file mode 100644
156 index 000000000..15a76dc83
157 --- /dev/null
158 +++ b/net-mail/hydroxide/metadata.xml
159 @@ -0,0 +1,12 @@
160 +<?xml version="1.0" encoding="UTF-8"?>
161 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
162 +<pkgmetadata>
163 + <maintainer type="person">
164 + <email>leohdz172@×××××××.com</email>
165 + <name>Leonardo Hernández Hernández</name>
166 + </maintainer>
167 + <upstream>
168 + <bugs-to>https://github.com/emersion/hydroxide/issues</bugs-to>
169 + <doc>https://github.com/emersion/hydroxide/blob/master/README.md</doc>
170 + </upstream>
171 +</pkgmetadata>