git: 98f8a6e069f5 - main - databases/py-bsddb3: Mark DEPRECATED

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 26 Feb 2022 05:16:27 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=98f8a6e069f59e388c365377ae77307909f076f9

commit 98f8a6e069f59e388c365377ae77307909f076f9
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2022-02-26 05:13:51 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2022-02-26 05:13:51 +0000

    databases/py-bsddb3: Mark DEPRECATED
    
    - Limit to use with db5 only [1]
    - Limit to use with python 3.6-3.9 only
    - Set EXPIRATION_DATE on 2022-06-30 which is the same as db5
    - Pet portclippy
    
    PR:             262136 [1]
    Reported by:    yasu [1]
---
 databases/py-bsddb3/Makefile | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/databases/py-bsddb3/Makefile b/databases/py-bsddb3/Makefile
index e17fa00b1a9f..342d3f1c2067 100644
--- a/databases/py-bsddb3/Makefile
+++ b/databases/py-bsddb3/Makefile
@@ -12,16 +12,22 @@ COMMENT=	Python extension module for BerkeleyDB 4.7, 4.8, 5.1, 5.3, 6.1 and 6.2
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
-USES=		bdb python:3.6+
-USE_PYTHON=	distutils autoplist
+DEPRECATED=	Requires upstream EOLd db5. Use py-berkeleydb
+EXPIRATION_DATE=	2022-06-30
 
-PYDISTUTILS_CONFIGUREARGS=--libs="-l${BDB_LIB_NAME}" --berkeley-db=${LOCALBASE}
+USES=		bdb:5 python:3.6-3.9
+USE_PYTHON=	autoplist distutils
+
+PYDISTUTILS_CONFIGUREARGS=	--libs="-l${BDB_LIB_NAME}" \
+				--berkeley-db=${LOCALBASE}
 PYDISTUTILS_BUILDARGS=	--libs="-l${BDB_LIB_NAME}" --berkeley-db=${LOCALBASE}
-PYDISTUTILS_INSTALLARGS=-c -O1 --prefix=${PREFIX} --berkeley-db=${LOCALBASE}
+PYDISTUTILS_INSTALLARGS=	-c -O1 --prefix=${PREFIX} \
+				--berkeley-db=${LOCALBASE}
 
-PORTDOCS=	*
 DOCSDIR=	${PREFIX}/share/doc/${PYTHON_PKGNAMEPREFIX}${PORTNAME}
 
+PORTDOCS=	*
+
 OPTIONS_DEFINE=	DOCS
 
 post-patch: