View | Details | Raw Unified | Return to bug 254239
Collapse All | Expand All

(-)ports-mgmt/porttools/Makefile (-6 / +9 lines)
Lines 11-19 Link Here
11
LICENSE=	BSD2CLAUSE
11
LICENSE=	BSD2CLAUSE
12
12
13
RUN_DEPENDS=	portlint:ports-mgmt/portlint \
13
RUN_DEPENDS=	portlint:ports-mgmt/portlint \
14
		ydiff:textproc/ydiff \
15
		sudo:security/sudo \
14
		sudo:security/sudo \
16
		svn:devel/subversion
15
		ydiff:textproc/ydiff
17
16
18
USE_GITHUB=	yes
17
USE_GITHUB=	yes
19
GH_ACCOUNT=	skreuzer
18
GH_ACCOUNT=	skreuzer
Lines 20-29 Link Here
20
19
21
# Make the version information of porttools itself
20
# Make the version information of porttools itself
22
# available for inclusion in the PRs generated by it.
21
# available for inclusion in the PRs generated by it.
23
MAKE_ENV+=	DATADIR="${DATADIR}" DOCSDIR="${DOCSDIR}" PORTVERSION="${PORTVERSION}"
22
MAKE_ENV+=	DATADIR="${DATADIR}" \
23
		DOCSDIR="${DOCSDIR}" \
24
		PORTVERSION="${PORTVERSION}"
24
25
25
OPTIONS_DEFINE=		DOCS
26
OPTIONS_DEFINE=			DOCS SVNLITE
27
SVNLITE_DESC=			Use svnlite(1) as subversion command
28
DOCS_INSTALL_TARGET=		install install-docs
29
SVNLITE_RUN_DEPENDS_OFF=	svn:devel/subversion
30
SVNLITE_EXTRA_PATCHES=		${PATCHDIR}/extra-patch-uses-svnlite
26
31
27
DOCS_INSTALL_TARGET=	 install install-docs
28
29
.include <bsd.port.mk>
32
.include <bsd.port.mk>
(-)ports-mgmt/porttools/files/extra-patch-uses-svnlite (+107 lines)
Line 0 Link Here
1
From 6522da77723f593ef854adfe077a486136b103d7 Mon Sep 17 00:00:00 2001
2
From: Yasuhiro Kimura <yasu@utahime.org>
3
Date: Fri, 12 Mar 2021 23:38:32 +0900
4
Subject: [PATCH] Use svnlite(1) as subversion command
5
6
---
7
 scripts/cmd_commit.in |  6 +++---
8
 scripts/cmd_submit.in |  2 +-
9
 scripts/util_diff.in  | 10 +++++-----
10
 3 files changed, 9 insertions(+), 9 deletions(-)
11
12
diff --git scripts/cmd_commit.in scripts/cmd_commit.in
13
index 41e5e55..e68f16e 100644
14
--- scripts/cmd_commit.in
15
+++ scripts/cmd_commit.in
16
@@ -56,7 +56,7 @@ echo "===> Your username on freefall: ${FREEFALL_USERNAME}"
17
 
18
 # Determine if this is a new port
19
 MODE="update"
20
-svn status Makefile 2>&1 1>/dev/null | grep -qs 'svn: warning: W155007:'
21
+svnlite status Makefile 2>&1 1>/dev/null | grep -qs 'svn: warning: W155007:'
22
 if [ $? -eq 0 ]
23
 then
24
 	MODE="new"
25
@@ -92,7 +92,7 @@ then
26
 else
27
 	# Make sure we are working with up-to-date version
28
 	echo "===> Pre-commit SVN update"
29
-	svn update
30
+	svnlite update
31
 
32
 	if [ -e ${MSG} ]
33
 	then
34
@@ -111,7 +111,7 @@ else
35
 	fi
36
 	# Commit the port update
37
 	echo "===> Committing port update"
38
-	svn commit ${FLAGS}
39
+	svnlite commit ${FLAGS}
40
 
41
 fi
42
 # Remove SVN message file only if commit was successful
43
diff --git scripts/cmd_submit.in scripts/cmd_submit.in
44
index 2f3538b..64b1d06 100644
45
--- scripts/cmd_submit.in
46
+++ scripts/cmd_submit.in
47
@@ -131,7 +131,7 @@ done
48
 # Determine if this is a new port
49
 if [ "${MODE}" = "" ]
50
 then
51
-	svn status Makefile 2>&1 1>/dev/null | grep -qs 'svn: warning: W155007:'
52
+	svnlite status Makefile 2>&1 1>/dev/null | grep -qs 'svn: warning: W155007:'
53
 	[ $? -eq 0 ] || [ "`grep '\$FreeBSD: ' Makefile`" ] || MODE="new"
54
 fi
55
 
56
diff --git scripts/util_diff.in scripts/util_diff.in
57
index e522218..1dee186 100644
58
--- scripts/util_diff.in
59
+++ scripts/util_diff.in
60
@@ -11,7 +11,7 @@ fi
61
 # Determine if this is a new port
62
 if [ "${MODE}" = "" ]
63
 then
64
-	svn status Makefile 2>&1 1>/dev/null | grep -qs 'svn: warning: W155007:'
65
+	svnlite status Makefile 2>&1 1>/dev/null | grep -qs 'svn: warning: W155007:'
66
 	[ $? -eq 0 ] || [ "`grep '\$FreeBSD: ' Makefile`" ] || MODE="new"
67
 fi
68
 
69
@@ -68,7 +68,7 @@ else
70
 	# Determine the default diff mode
71
 	if [ "${DIFF_MODE}" = "" ]
72
 	then
73
-		svn info > /dev/null 2>&1
74
+		svnlite info > /dev/null 2>&1
75
 		status=$?
76
 		if [ $status -eq 0 ];
77
 		then
78
@@ -88,7 +88,7 @@ else
79
 	then
80
 		# If `pwd` is not a svn working copy
81
 		# fallback to diffing against ${PORTSDIR} tree
82
-		svn info > /dev/null 2>&1
83
+		svnlite info > /dev/null 2>&1
84
 		status=$?
85
 		if [ $status -ne 0 ]
86
 		then
87
@@ -139,7 +139,7 @@ else
88
 
89
 		# Run 'svn update' first
90
 		echo "===> Updating from SVN"
91
-		svn update
92
+		svnlite update
93
 		status=$?
94
 		if [ $status -ne 0 ]
95
 		then
96
@@ -147,7 +147,7 @@ else
97
 			cleanup
98
 			exit 1
99
 		fi
100
-		DIFF_CMD="svn diff"
101
+		DIFF_CMD="svnlite diff"
102
 	elif [ "${DIFF_MODE}" = "GIT" ]
103
 	then
104
 		DIFF_TYPE=${DIFF_MODE}
105
-- 
106
2.30.2
107

Return to bug 254239