aboutsummaryrefslogtreecommitdiff
path: root/devel/git
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2020-10-12 16:03:44 +0000
committerRenato Botelho <garga@FreeBSD.org>2020-10-12 16:03:44 +0000
commit1f535ce0557a05aef373c5b49de36c9b8303ed7c (patch)
treee5330dc7aaa34ea1a3a14338014aa208f560189a /devel/git
parentde291228c5d6f56e2d21975e6d9d9d4d2f26352b (diff)
Notes
Diffstat (limited to 'devel/git')
-rw-r--r--devel/git/Makefile25
-rw-r--r--devel/git/pkg-descr-gui6
-rw-r--r--devel/git/pkg-descr-lite6
3 files changed, 34 insertions, 3 deletions
diff --git a/devel/git/Makefile b/devel/git/Makefile
index 721e603297dc..e6c248f9ffa4 100644
--- a/devel/git/Makefile
+++ b/devel/git/Makefile
@@ -12,14 +12,27 @@ EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} \
${PORTNAME}-manpages-${DISTVERSION}${EXTRACT_SUFX}
MAINTAINER= garga@FreeBSD.org
-COMMENT?= Distributed source code management tool
+.if ${FLAVOR:U} == default
+COMMENT= Distributed source code management tool
+.elif ${FLAVOR:U} == gui
+COMMENT= Distributed source code management tool (GUI enabled flavor)
+.elif ${FLAVOR:U} == lite
+COMMENT= Distributed source code management tool (lite flavor)
+.endif
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
-USES= autoreconf gmake iconv shebangfix ssl tar:xz
+FLAVORS= default gui lite
+default_CONFLICTS_INSTALL= git-gui git-lite
+gui_CONFLICTS_INSTALL= git git-lite
+gui_DESCR= ${.CURDIR}/pkg-descr-gui
+gui_PKGNAMESUFFIX= -gui
+lite_CONFLISTS_INSTALL= git git-gui
+lite_DESCR= ${.CURDIR}/pkg-descr-lite
+lite_PKGNAMESUFFIX= -lite
-CONFLICTS_INSTALL?= git-gui-[0-9]* git-lite-[0-9]*
+USES= autoreconf gmake iconv shebangfix ssl tar:xz
USERS= git_daemon
GROUPS= git_daemon
@@ -57,6 +70,12 @@ OPTIONS_DEFINE= GUI SVN GITWEB CONTRIB P4 CVS HTMLDOCS PERL ICONV CURL \
SEND_EMAIL NLS SUBTREE
OPTIONS_DEFAULT= CONTRIB P4 CVS PERL GITWEB ICONV CURL SEND_EMAIL PCRE \
SUBTREE SVN
+.if ${FLAVOR:U} == gui
+OPTIONS_DEFAULT+= GUI
+.elif ${FLAVOR:U} == lite
+OPTIONS_EXCLUDE= GUI SVN GITWEB CONTRIB P4 CVS PERL
+.endif
+
OPTIONS_SUB= yes
CONTRIB_DESC= Install contributed scripts
diff --git a/devel/git/pkg-descr-gui b/devel/git/pkg-descr-gui
new file mode 100644
index 000000000000..e35e69cca957
--- /dev/null
+++ b/devel/git/pkg-descr-gui
@@ -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 GUI option enabled.
+
+WWW: https://git-scm.com/
diff --git a/devel/git/pkg-descr-lite b/devel/git/pkg-descr-lite
new file mode 100644
index 000000000000..dbb113dc5246
--- /dev/null
+++ b/devel/git/pkg-descr-lite
@@ -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 the bare minimum git experience without any bindings.
+
+WWW: https://git-scm.com/