commit: e762956b0a523a0f882ace72b88aa465b8631d9d Author: William Hubbs <williamh <AT> gentoo <DOT> org> AuthorDate: Tue Jan 28 00:33:41 2025 +0000 Commit: William Hubbs <williamh <AT> gentoo <DOT> org> CommitDate: Tue Jan 28 00:33:41 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e762956b
mail-client/aerc: add 0.20.1 Signed-off-by: William Hubbs <williamh <AT> gentoo.org> mail-client/aerc/Manifest | 2 ++ mail-client/aerc/aerc-0.20.1.ebuild | 72 +++++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/mail-client/aerc/Manifest b/mail-client/aerc/Manifest index 9e910592daae..fab87e33eee8 100644 --- a/mail-client/aerc/Manifest +++ b/mail-client/aerc/Manifest @@ -1,2 +1,4 @@ DIST aerc-0.18.2-deps.tar.xz 19518064 BLAKE2B efc0b54852e96f1a4eaa3c6d0846df022f36670167d1b0042ae443a1216a8b42ae11624eabbac56956c5fa164fe4494942dd9dbabd37d8b4fde1823162b0ea34 SHA512 f2b3204912c7a81fe5e533fe22e293c59f28192cf05f517a4205b0e92337994157f7f9f031fc33c5a8ace67003afc44606b6faca0c9c26b13d9639934ab39ee3 DIST aerc-0.18.2.tar.gz 447348 BLAKE2B e5979dfe6a0d5c9335eae758c085dc0fd9d45298a537a41e6e3999407395e3ad936e9917c2140d47fcd295cbfc4e8233c4621830b399d70fab0a0c3fa8878315 SHA512 accce8bf2d5e90bffa615e58c68cb187e2eb0ede64bbebe69735c1367c51f286d2dfa505f6b0c67a5958f32afacb9903b1c12e397e64e49403807b78d3bad25c +DIST aerc-0.20.1-deps.tar.xz 19015028 BLAKE2B 7202471091eed2ac76b8c20b55397dbb7c7ffcd321c45448de5c1ae43fdbd2a633e23a8cd30aabe1256d33ba0200f729eb1c5f074177547e0148382eed5cae12 SHA512 05ad9b250e2f58a6790adbbb7a7eb3a823c302ddcec4227c7bad74f62f9a75d76d7f224108b4d8c24f44018f62c0eb66e2090ffaa0fa61948cb1301b25bb22ab +DIST aerc-0.20.1.tar.gz 474975 BLAKE2B bfe91f5b6f3ba2c0599193cf38a1a9c97466442b9d97ff5868f6ad7f16aaab4247e167e1b02f86b0a44121ebb21b98a55da999a43b5556fd56384977a62f0996 SHA512 7221217b7f0e6f92b589864b2e214b3edad3a2f702ab1d6b83f11eba6bb443bf334e76dbb61a67a13a9673e5e5106428ea3ba0ade940dc7f2cf488076783f4a5 diff --git a/mail-client/aerc/aerc-0.20.1.ebuild b/mail-client/aerc/aerc-0.20.1.ebuild new file mode 100644 index 000000000000..f831710a5855 --- /dev/null +++ b/mail-client/aerc/aerc-0.20.1.ebuild @@ -0,0 +1,72 @@ +# Copyright 2019-2025 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" + +COMMON_DEPEND="notmuch? ( net-mail/notmuch:= )" +DEPEND="${COMMON_DEPEND}" +RDEPEND="${COMMON_DEPEND}" +BDEPEND=">=app-text/scdoc-1.11.3" + +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 +} + +src_test() { + emake tests +} + +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 +}