git: 4285f68d404a - main - devel/svn2git: Unflavorize

From: Zsolt Udvari <uzsolt_at_FreeBSD.org>
Date: Fri, 02 May 2025 05:58:52 UTC
The branch main has been updated by uzsolt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4285f68d404a33ce2f4c1d5dbe7f32e2b120d12d

commit 4285f68d404a33ce2f4c1d5dbe7f32e2b120d12d
Author:     Zsolt Udvari <uzsolt@FreeBSD.org>
AuthorDate: 2025-05-02 05:55:58 +0000
Commit:     Zsolt Udvari <uzsolt@FreeBSD.org>
CommitDate: 2025-05-02 05:58:28 +0000

    devel/svn2git: Unflavorize
    
    The p5-subversion doesn't have flavor support and works with
    WITH_SUBVERSION_VER so should use this variable in this port too.
---
 devel/svn2git/Makefile | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/devel/svn2git/Makefile b/devel/svn2git/Makefile
index 52d87cc83dc5..5ebf54091988 100644
--- a/devel/svn2git/Makefile
+++ b/devel/svn2git/Makefile
@@ -11,14 +11,15 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 LIB_DEPENDS=	libapr-1.so:devel/apr1
 RUN_DEPENDS=	git:devel/git \
-		p5-subversion>=0:devel/p5-subversion \
 		p5-Term-ReadKey>=0:devel/p5-Term-ReadKey
 
-FLAVORS=		default lts
-FLAVOR?=		${FLAVORS:[1]}
-default_LIB_DEPENDS=	libsvn_client-1.so:devel/subversion
-lts_PKGNAMESUFFIX=	lts
-lts_LIB_DEPENDS=	libsvn_client-1.so:devel/subversion-lts
+.if ${WITH_SUBVERSION_VER:U} == LTS
+LIB_DEPENDS=	libsvn_client-1.so:devel/subversion-lts
+RUN_DEPENDS=	p5-subversion-lts>=0:devel/p5-subversion
+.else
+LIB_DEPENDS+=	libsvn_client-1.so:devel/subversion
+RUN_DEPENDS=	p5-subversion>=0:devel/p5-subversion
+.endif
 
 USES=		compiler:c++11-lang qmake qt:5
 USE_GITHUB=	yes