summaryrefslogtreecommitdiff
path: root/devel/magit/Makefile
blob: 3558297fd860d3e395597e09762cfae46e157f5b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Created by: Jun Kuriyama <kuriyama@FreeBSD.org>
# $FreeBSD$

PORTNAME=	magit
PORTVERSION=	2.5.0
CATEGORIES=	devel elisp
PKGNAMESUFFIX=	-${EMACS_PORT_NAME}

MAINTAINER=	kuriyama@FreeBSD.org
COMMENT=	Interface to Git for Emacs

LICENSE=	GPLv3

BUILD_DEPENDS=	dash.el>=2.12.1:${PORTSDIR}/devel/dash.el \
		with-editor-${EMACS_PORT_NAME}>=2.5.0:${PORTSDIR}/editors/with-editor
RUN_DEPENDS=	dash.el>=2.12.1:${PORTSDIR}/devel/dash.el \
		with-editor-${EMACS_PORT_NAME}>=2.5.0:${PORTSDIR}/editors/with-editor

USE_GITHUB=	yes

USES=		gmake makeinfo
USE_EMACS=	yes
INFO=		magit magit-popup
PORTDOCS=	AUTHORS.md
NO_ARCH=	yes

OPTIONS_DEFINE=			DOCS GIT_SUBVERSION
GIT_SUBVERSION_DESC=		Use devel/git-subversion as backend
GIT_SUBVERSION_BUILD_DEPENDS=	git-subversion>0:${PORTSDIR}/devel/git-subversion
GIT_SUBVERSION_BUILD_DEPENDS_OFF=	git>0:${PORTSDIR}/devel/git
GIT_SUBVERSION_RUN_DEPENDS=	git-subversion>0:${PORTSDIR}/devel/git-subversion
GIT_SUBVERSION_RUN_DEPENDS_OFF=	git>0:${PORTSDIR}/devel/git

.include <bsd.port.pre.mk>

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}" \
		VERSION=${PORTVERSION} \
		lispdir=${PREFIX}/${ELISPDIR} \
		infodir=${PREFIX}/${INFO_PATH} \
		docdir=${DOCSDIR}
PLIST_SUB+=	ELISPDIR=${ELISPDIR}

.include <bsd.port.post.mk>