summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2022-09-19 23:04:06 -0500
committerWilliam Hubbs <williamh@gentoo.org>2022-09-19 23:06:26 -0500
commit5dabe985439ca22a82850d7132f191cf88e70d74 (patch)
treedaa62e5c7ae129649226d7889c57a2e8b6bfdd8b /mail-client/aerc
parentapp-backup/mkstage4: add 0.3.1 (diff)
downloadgentoo-5dabe985439ca22a82850d7132f191cf88e70d74.tar.gz
gentoo-5dabe985439ca22a82850d7132f191cf88e70d74.tar.bz2
gentoo-5dabe985439ca22a82850d7132f191cf88e70d74.zip
mail-client/aerc: revbump to fix notmuch support
Closes: https://bugs.gentoo.org/871090 Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'mail-client/aerc')
-rw-r--r--mail-client/aerc/aerc-0.12.0-r1.ebuild69
-rw-r--r--mail-client/aerc/aerc-9999.ebuild10
2 files changed, 75 insertions, 4 deletions
diff --git a/mail-client/aerc/aerc-0.12.0-r1.ebuild b/mail-client/aerc/aerc-0.12.0-r1.ebuild
new file mode 100644
index 000000000000..b83c27212713
--- /dev/null
+++ b/mail-client/aerc/aerc-0.12.0-r1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 2019-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit go-module xdg
+
+DESCRIPTION="Email client for your terminal"
+HOMEPAGE="https://aerc-mail.org"
+
+if [[ ${PV} == *9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://git.sr.ht/~rjarry/aerc"
+else
+ SRC_URI="https://git.sr.ht/~rjarry/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz"
+ KEYWORDS="~amd64 ~ppc64"
+fi
+
+LICENSE="Apache-2.0 BSD BSD-2 MIT"
+SLOT="0"
+IUSE="notmuch"
+
+DEPEND="notmuch? ( net-mail/notmuch:= )"
+RDEPEND="${DEPEND}"
+BDEPEND="
+ >=app-text/scdoc-1.9.7
+ >=dev-lang/go-1.13
+"
+
+src_unpack() {
+ if [[ ${PV} == *9999 ]]; then
+ git-r3_src_unpack
+ go-module_live_vendor
+ else
+ go-module_src_unpack
+ fi
+}
+
+src_compile() {
+ unset LDFLAGS
+ emake GOFLAGS="$(usex notmuch "-tags=notmuch" "")" \
+ PREFIX="${EPREFIX}/usr" VERSION=${PV} all
+}
+
+src_install() {
+ emake GOFLAGS="$(usex notmuch "-tags=notmuch" "")" \
+ DESTDIR="${ED}" PREFIX="${EPREFIX}/usr" VERSION="${PV}" install
+ einstalldocs
+dodoc CHANGELOG.md
+}
+
+pkg_postinst() {
+ if [[ -z ${REPLACING_VERSIONS} ]]; then
+ elog "If you want to allow your users to activate html email"
+ elog "processing via w3m as shown in the tutorial, make sure you"
+ elog "emerge net-proxy/dante and www-client/w3m"
+ fi
+
+ local v
+ for v in ${REPLACING_VERSIONS}; do
+ if ver_test $v -lt 0.3.0-r1; then
+ elog "The dependencies on net-proxy/dante and www-client/w3m"
+ elog "have been removed since they are optional."
+ elog "Please emerge them before the next --depclean if you"
+ elog "need to use them."
+ fi
+ done
+ xdg_pkg_postinst
+}
diff --git a/mail-client/aerc/aerc-9999.ebuild b/mail-client/aerc/aerc-9999.ebuild
index 6b95381472cd..b83c27212713 100644
--- a/mail-client/aerc/aerc-9999.ebuild
+++ b/mail-client/aerc/aerc-9999.ebuild
@@ -12,7 +12,7 @@ if [[ ${PV} == *9999 ]]; then
EGIT_REPO_URI="https://git.sr.ht/~rjarry/aerc"
else
SRC_URI="https://git.sr.ht/~rjarry/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
- SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.gz"
+ SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz"
KEYWORDS="~amd64 ~ppc64"
fi
@@ -37,14 +37,16 @@ src_unpack() {
}
src_compile() {
- LDFLAGS= \
- emake GOFLAGS="-mod=vendor $(usex notmuch "-tags=notmuch" "")" \
+ unset LDFLAGS
+ emake GOFLAGS="$(usex notmuch "-tags=notmuch" "")" \
PREFIX="${EPREFIX}/usr" VERSION=${PV} all
}
src_install() {
- emake PREFIX="${EPREFIX}/usr" DESTDIR="${ED}" install
+ emake GOFLAGS="$(usex notmuch "-tags=notmuch" "")" \
+ DESTDIR="${ED}" PREFIX="${EPREFIX}/usr" VERSION="${PV}" install
einstalldocs
+dodoc CHANGELOG.md
}
pkg_postinst() {