Skip to content

Commit

Permalink
devel/git: Disable SVN and create flavor
Browse files Browse the repository at this point in the history
Ports tree moved to git.  Disable SVN option by default on main port to
reduce dependencies and create a new flavor "svn" that looks exactly how
main port was before this change

PR:		254719
Reported by:	grembo
Sponsored by:	Rubicon Communications, LLC ("Netgate")
  • Loading branch information
rbgarga committed Apr 6, 2021
1 parent 8f023b6 commit 64d5a3b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
19 changes: 13 additions & 6 deletions devel/git/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

PORTNAME= git
DISTVERSION= 2.31.1
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= KERNEL_ORG/software/scm/git
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
Expand All @@ -16,22 +17,26 @@ COMMENT= Distributed source code management tool ${COMMENT_${FLAVOR}}
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING

FLAVORS= default gui lite tiny
default_CONFLICTS_INSTALL= git-gui git-lite git-tiny
gui_CONFLICTS_INSTALL= git git-lite git-tiny
FLAVORS= default gui lite svn tiny
default_CONFLICTS_INSTALL= git-gui git-lite git-svn git-tiny
gui_CONFLICTS_INSTALL= git git-lite git-svn git-tiny
gui_DESCR= ${.CURDIR}/pkg-descr-gui
gui_PKGNAMESUFFIX= -gui
lite_CONFLICTS_INSTALL= git git-gui git-tiny
lite_CONFLICTS_INSTALL= git git-gui git-svn git-tiny
lite_DESCR= ${.CURDIR}/pkg-descr-lite
lite_PKGNAMESUFFIX= -lite
tiny_CONFLICTS_INSTALL= git git-gui git-lite
svn_CONFLICTS_INSTALL= git git-gui git-lite git-tiny
svn_DESCR= ${.CURDIR}/pkg-descr-svn
svn_PKGNAMESUFFIX= -svn
tiny_CONFLICTS_INSTALL= git git-gui git-svn git-lite
tiny_DESCR= ${.CURDIR}/pkg-descr-tiny
tiny_PKGNAMESUFFIX= -tiny

USES= autoreconf gmake iconv shebangfix ssl tar:xz

COMMENT_gui= (GUI enabled flavor)
COMMENT_lite= (lite flavor)
COMMENT_svn= (SVN enabled flavor)
COMMENT_tiny= (tiny flavor)

USERS= git_daemon
Expand Down Expand Up @@ -66,11 +71,13 @@ CONFIGURE_ARGS= --enable-pthreads=-pthread ac_cv_header_libcharset_h=no
OPTIONS_DEFINE= CONTRIB CURL CVS GITWEB GUI HTMLDOCS ICONV NLS P4 PCRE2 PERL \
SEND_EMAIL SUBTREE SVN
OPTIONS_DEFAULT=CONTRIB CURL CVS GITWEB ICONV P4 PCRE2 PERL SEND_EMAIL \
SUBTREE SVN
SUBTREE
.if ${FLAVOR:U} == gui
OPTIONS_SLAVE+= GUI
.elif ${FLAVOR:U} == lite
OPTIONS_EXCLUDE= GUI SVN GITWEB CONTRIB P4 CVS PERL
.elif ${FLAVOR:U} == svn
OPTIONS_SLAVE+= SVN
.elif ${FLAVOR:U} == tiny
OPTIONS_EXCLUDE:= ${OPTIONS_DEFINE:NCURL}
OPTIONS_SLAVE= CURL
Expand Down
6 changes: 6 additions & 0 deletions devel/git/pkg-descr-svn
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Git is a free and open source distributed version control system designed to
handle everything from small to very large projects with speed and efficiency.

This version provides a package with SVN option enabled.

WWW: https://git-scm.com/

0 comments on commit 64d5a3b

Please sign in to comment.