aboutsummaryrefslogtreecommitdiff
path: root/devel/magit/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/magit/Makefile')
-rw-r--r--devel/magit/Makefile40
1 files changed, 23 insertions, 17 deletions
diff --git a/devel/magit/Makefile b/devel/magit/Makefile
index 389bd15d7968..3f5dfe164ebb 100644
--- a/devel/magit/Makefile
+++ b/devel/magit/Makefile
@@ -1,8 +1,7 @@
# Created by: Jun Kuriyama <kuriyama@FreeBSD.org>
PORTNAME= magit
-PORTVERSION= 2.90.1
-PORTREVISION= 5
+PORTVERSION= 3.0.0
CATEGORIES= devel elisp
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/v${PORTVERSION}/
PKGNAMESUFFIX= ${EMACS_PKGNAMESUFFIX}
@@ -15,32 +14,39 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= dash.el${EMACS_PKGNAMESUFFIX}>=2.14.1:devel/dash.el@${EMACS_FLAVOR} \
ghub${EMACS_PKGNAMESUFFIX}>=3.0.0:devel/ghub@${EMACS_FLAVOR} \
- git:devel/git \
- magit-popup${EMACS_PKGNAMESUFFIX}>=2.12.4:devel/magit-popup@${EMACS_FLAVOR} \
+ transient${EMACS_PKGNAMESUFFIX}>=0:devel/transient@${EMACS_FLAVOR} \
with-editor${EMACS_PKGNAMESUFFIX}>=2.8.0:editors/with-editor@${EMACS_FLAVOR}
RUN_DEPENDS= dash.el${EMACS_PKGNAMESUFFIX}>=2.14.1:devel/dash.el@${EMACS_FLAVOR} \
ghub${EMACS_PKGNAMESUFFIX}>=3.0.0:devel/ghub@${EMACS_FLAVOR} \
- git>0:devel/git \
- magit-popup${EMACS_PKGNAMESUFFIX}>=2.12.4:devel/magit-popup@${EMACS_FLAVOR} \
+ transient${EMACS_PKGNAMESUFFIX}>=0:devel/transient@${EMACS_FLAVOR} \
with-editor${EMACS_PKGNAMESUFFIX}>=2.8.0:editors/with-editor@${EMACS_FLAVOR}
USES= emacs gmake makeinfo
+MAKE_ENV+= docdir=${DOCSDIR} \
+ infodir=${PREFIX}/${INFO_PATH} \
+ INSTALL_INFO=install-info \
+ lispdir=${PREFIX}/${_ELISPDIR} \
+ LOAD_PATH="-L ${WRKSRC}/lisp -L ${PREFIX}/${EMACS_SITE_LISPDIR} -L ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR} -L ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/ghub" \
+ VERSION=${PORTVERSION}
+
CONFLICTS_INSTALL= magit-devel-emacs*
-INFO= magit
-PORTDOCS= AUTHORS.md
NO_ARCH= yes
-ELISPDIR= ${EMACS_VERSION_SITE_LISPDIR}/${PORTNAME}
-MAKE_ENV+= INSTALL_INFO=install-info \
- LOAD_PATH="-L ${WRKSRC}/lisp -L ${PREFIX}/${EMACS_SITE_LISPDIR} -L ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR} -L ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/ghub" \
- VERSION=${PORTVERSION} \
- lispdir=${PREFIX}/${ELISPDIR} \
- infodir=${PREFIX}/${INFO_PATH} \
- docdir=${DOCSDIR}
-PLIST_SUB+= ELISPDIR=${ELISPDIR}
+INFO= magit magit-section
+PLIST_SUB+= ELISPDIR=${_ELISPDIR}
+PORTDOCS= AUTHORS.md
+
+OPTIONS_DEFINE= DOCS LIBEGIT2
+OPTIONS_SUB= yes
+LIBEGIT2_DESC= Use libegit2 as backend (EXPERIMENTAL)
+LIBEGIT2_BUILD_DEPENDS= libegit2${EMACS_PKGNAMESUFFIX}>=g20200515:devel/libegit2@${EMACS_FLAVOR}
+LIBEGIT2_BUILD_DEPENDS_OFF= git:devel/git
+LIBEGIT2_RUN_DEPENDS= libegit2${EMACS_PKGNAMESUFFIX}>=g20200515:devel/libegit2@${EMACS_FLAVOR}
+LIBEGIT2_RUN_DEPENDS_OFF= git:devel/git
+LIBEGIT2_VARS_OFF= MAKE_ENV+=BUILD_MAGIT_LIBGIT=false
-OPTIONS_DEFINE= DOCS
+_ELISPDIR= ${EMACS_VERSION_SITE_LISPDIR}/${PORTNAME}
.include <bsd.port.mk>