gentoo-ebuilds/net-mail/getmail/getmail-6.19.08.ebuild
Zoltan Puskas b30d8dc995
net-mail/getmail: add 6.19.08
Signed-off-by: Zoltan Puskas <zoltan@sinustrom.info>
Part-of: https://github.com/gentoo/gentoo/pull/42246
Closes: https://github.com/gentoo/gentoo/pull/42246
Signed-off-by: Sam James <sam@gentoo.org>
2025-05-25 09:21:27 +01:00

33 lines
946 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_SINGLE_IMPL=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..13} )
PYTHON_REQ_USE="ssl"
inherit distutils-r1
DESCRIPTION="A mail retriever with reliable Maildir and mbox delivery"
HOMEPAGE="https://www.getmail6.org/ https://github.com/getmail6/getmail6"
SRC_URI="https://github.com/getmail6/getmail6/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
S="${WORKDIR}/getmail6-${PV}"
# getmail is under GPLv2
# getmail-gmail-xoauth-tokens is under Apache 2.0
LICENSE="GPL-2 Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
PATCHES=(
"${FILESDIR}/${PN}-revert-doc-path.patch"
)
python_prepare_all() {
# Use gentoo version number (including revision) for doc dir and remove COPYING file
sed -i -e "s,'getmail-%s' % __version__,'${PF}'," \
-e "/docs\/COPYING/d" "${S}"/setup.py || die
distutils-r1_python_prepare_all
}