mail-client/aerc: sync live ebuild
authorGeorgy Yakovlev <gyakovlev@gentoo.org>
Wed, 20 May 2020 06:11:59 +0000 (23:11 -0700)
committerGeorgy Yakovlev <gyakovlev@gentoo.org>
Wed, 20 May 2020 06:13:19 +0000 (23:13 -0700)
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
mail-client/aerc/aerc-9999.ebuild

index 455ac923f0d773bd8c207a77384db754176df1d0..db3a9c7f1487dfc727f2b887878ac10b9f1ccf53 100644 (file)
@@ -3,24 +3,43 @@
 
 EAPI=7
 
-inherit git-r3 go-module
+inherit go-module
 
 DESCRIPTION="Email client for your terminal"
 HOMEPAGE="https://aerc-mail.org"
 
-EGIT_REPO_URI="https://git.sr.ht/~sircmpwn/aerc"
+if [[ ${PV} == *9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://git.sr.ht/~sircmpwn/aerc"
+else
+       EGO_SUM=(
+               # to be filled on bumps
+       )
+       go-module_set_globals
+       SRC_URI="https://git.sr.ht/~sircmpwn/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
+               ${EGO_SUM_SRC_URI}"
+       KEYWORDS="~amd64 ~ppc64"
+fi
 
 LICENSE="Apache-2.0 BSD BSD-2 MIT"
 SLOT="0"
 IUSE="notmuch"
 
-BDEPEND=">=app-text/scdoc-1.9.7"
+BDEPEND="
+       >=app-text/scdoc-1.9.7
+       >=dev-lang/go-1.13
+"
+
 DEPEND="notmuch? ( net-mail/notmuch:= )"
 RDEPEND="${DEPEND}"
 
 src_unpack() {
-       git-r3_src_unpack
-       go-module_live_vendor
+       if [[ ${PV} == *9999 ]]; then
+               git-r3_src_unpack
+               go-module_live_vendor
+       else
+               go-module_src_unpack
+       fi
 }
 
 src_compile() {