commit:     78b2ee203f7db638a5cccceb88585b13989c9c51
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Sat Jan  6 18:37:42 2024 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Sat Jan  6 18:37:42 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=78b2ee20

mail-filter/postfix-mta-sts-resolver: move deps to optfeatures

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 mail-filter/postfix-mta-sts-resolver/metadata.xml  |  5 +++
 .../postfix-mta-sts-resolver-1.4.0.ebuild          | 40 +++++++++-------------
 2 files changed, 21 insertions(+), 24 deletions(-)

diff --git a/mail-filter/postfix-mta-sts-resolver/metadata.xml 
b/mail-filter/postfix-mta-sts-resolver/metadata.xml
new file mode 100644
index 0000000000..f830caa955
--- /dev/null
+++ b/mail-filter/postfix-mta-sts-resolver/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+               <!-- maintainer-needed -->
+</pkgmetadata>

diff --git 
a/mail-filter/postfix-mta-sts-resolver/postfix-mta-sts-resolver-1.4.0.ebuild 
b/mail-filter/postfix-mta-sts-resolver/postfix-mta-sts-resolver-1.4.0.ebuild
index bb1a563408..5078107935 100644
--- a/mail-filter/postfix-mta-sts-resolver/postfix-mta-sts-resolver-1.4.0.ebuild
+++ b/mail-filter/postfix-mta-sts-resolver/postfix-mta-sts-resolver-1.4.0.ebuild
@@ -3,48 +3,40 @@
 
 EAPI=8
 PYTHON_COMPAT=( python3_{10..12} )
-PYPI_NO_NORMALIZE=1
 DISTUTILS_USE_PEP517=setuptools
-inherit distutils-r1 pypi
+inherit distutils-r1 optfeature pypi
 
-DESCRIPTION="Daemon which provides TLS client policy for Postfix via 
socketmap, according to domain MTA-STS policy"
-HOMEPAGE="https://github.com/Snawoot/postfix-mta-sts-resolver 
https://pypi.org/project/postfix-mta-sts-resolver/";
-SRC_URI="https://github.com/Snawoot/postfix-mta-sts-resolver/releases/download/v${PV}/${P}.tar.gz";
+DESCRIPTION="Daemon which provides TLS client policy for Postfix via socketmap"
+HOMEPAGE="
+       https://github.com/Snawoot/postfix-mta-sts-resolver
+       https://pypi.org/project/postfix-mta-sts-resolver/
+"
+SRC_URI="https://github.com/Snawoot/${PN}/releases/download/v${PV}/${P}.tar.gz";
 
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~amd64"
-IUSE="uvloop sqlite redis postgres"
-
-DOCS="README.md"
 
 RDEPEND="
-       ${PYTHON_DEPS}
        dev-python/aiodns[${PYTHON_USEDEP}]
        dev-python/aiohttp[${PYTHON_USEDEP}]
        dev-python/pyyaml[${PYTHON_USEDEP}]
-       postgres? (
-               dev-python/asyncpg[${PYTHON_USEDEP}]
-       )
-       sqlite? (
-               dev-python/aiosqlite[${PYTHON_USEDEP}]
-       )
-       redis? (
-               dev-python/redis[${PYTHON_USEDEP}]
-       )
-       uvloop? (
-               dev-python/uvloop[${PYTHON_USEDEP}]
-       )
 "
-DEPEND="${RDEPEND}"
 
 distutils_enable_tests pytest
 
-python_install() {
-       distutils-r1_python_install
+src_install() {
+       distutils-r1_src_install
 
        newinitd "${FILESDIR}"/mtasts-initd mta-sts
        newconfd "${FILESDIR}"/mtasts-confd mta-sts
        insinto /etc/
        newins "${FILESDIR}"/mtasts-config mta-sts-daemon.yml
 }
+
+pkg_postinst() {
+       optfeature "PostgreSQL support" dev-python/asyncpg
+       optfeature "Redis support" dev-python/redis
+       optfeature "SQLite support" dev-python/aiosqlite
+       optfeature "uvloop support" dev-python/uvloop
+}

Reply via email to