commit:     b30d8dc995b21af89081345439fe3d56213b1731
Author:     Zoltan Puskas <zoltan <AT> sinustrom <DOT> info>
AuthorDate: Sun May 25 06:54:04 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun May 25 08:21:27 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b30d8dc9

net-mail/getmail: add 6.19.08

Signed-off-by: Zoltan Puskas <zoltan <AT> 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 <AT> gentoo.org>

 net-mail/getmail/Manifest                          |  1 +
 .../getmail/files/getmail-revert-doc-path.patch    | 14 +++++++++
 net-mail/getmail/getmail-6.19.08.ebuild            | 33 ++++++++++++++++++++++
 3 files changed, 48 insertions(+)

diff --git a/net-mail/getmail/Manifest b/net-mail/getmail/Manifest
index 58f9c15c5f54..8651a89a5175 100644
--- a/net-mail/getmail/Manifest
+++ b/net-mail/getmail/Manifest
@@ -1 +1,2 @@
 DIST getmail-6.19.07.gh.tar.gz 217481 BLAKE2B 
ba0d164389bd32e8d7bff18003606369cd4369b967933335837ab0bff2e53d18a7bcb16b2c36c90d9b01f29ea2594b9a45de7270698bc8caeb863873bdb66868
 SHA512 
34153ac53cbb9698108eef70957d374d7c02fc5ffd72ba940461ad40bbc582f7992bf7c8060ac33128d01447728bb820536a32f1a3bd97a3ecbb523fb9a974bf
+DIST getmail-6.19.08.gh.tar.gz 220470 BLAKE2B 
bd0aba9174a6f00d0e39c000148e0bf2cc3484ef50446e4a0b1294bd807cd240357a822776156237bdc5e7332fcaf1181a4d586a6767ebcc330ce7aa092eea64
 SHA512 
23a9770bdc4ed6425c94df11d6ba62dc678105e4430b024c0f696d44c35893427b13c1b26b25629ad3157fcde32a41d11482a1dfc7ba4f4940e21de2c5022ea4

diff --git a/net-mail/getmail/files/getmail-revert-doc-path.patch 
b/net-mail/getmail/files/getmail-revert-doc-path.patch
new file mode 100644
index 000000000000..001c97cf6933
--- /dev/null
+++ b/net-mail/getmail/files/getmail-revert-doc-path.patch
@@ -0,0 +1,14 @@
+diff --git a/setup.py b/setup.py
+index e2bb639..9929dcf 100644
+--- a/setup.py
++++ b/setup.py
+@@ -36,7 +36,7 @@
+         # hack hack hack hack hack hack hack
+         datadir = args[pos + 1]
+ 
+-DOCDIR = os.path.join('share','doc','getmail')
++DOCDIR = os.path.join('share','doc','getmail-%s' % __version__)
+ GETMAILDOCDIR = os.path.join(datadir or prefix, DOCDIR)
+ 
+ MANDIR = os.path.join('share','man','man1')
+

diff --git a/net-mail/getmail/getmail-6.19.08.ebuild 
b/net-mail/getmail/getmail-6.19.08.ebuild
new file mode 100644
index 000000000000..8e83a63b46a3
--- /dev/null
+++ b/net-mail/getmail/getmail-6.19.08.ebuild
@@ -0,0 +1,33 @@
+# 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
+}

Reply via email to