summaryrefslogtreecommitdiff
path: root/devel/magit/Makefile
blob: b2c0502f64e01b9d63b2c791e49d542e27722eee (plain)
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
# $NetBSD: Makefile,v 1.8 2014/01/27 18:41:12 wiz Exp $

DISTNAME=	magit-1.2.0
PKGNAME=	${EMACS_PKGNAME_PREFIX}${DISTNAME}
PKGREVISION=	2
CATEGORIES=	devel
MASTER_SITES=	https://github.com/magit/magit/downloads/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://magit.github.com/magit/
COMMENT=	Inspect and modify Git repositories from Emacs
LICENSE=	gnu-gpl-v3

INFO_FILES=		yes
USE_LANGUAGES=		# none
USE_TOOLS+=		gmake makeinfo
NO_CONFIGURE=		yes

MAKE_FLAGS+=		EMACS=${EMACS_BIN}
MAKE_FLAGS+=		PREFIX=${PREFIX}
MAKE_FLAGS+=		SYSCONFDIR=${PKG_SYSCONFDIR}

# pbulk sets BATCH=1 on the make command line, which breaks the makefile.
SUBST_CLASSES+=		batch
SUBST_STAGE.batch=	pre-build
SUBST_FILES.batch=	Makefile Makefile-e
SUBST_SED.batch+=	-e 's,BATCH,BAATCH,'
SUBST_MESSAGE.batch=	Working around pbulk make variable pollution.

INSTALL_TARGET=		install_core

INSTALLATION_DIRS=	${EMACS_LISPPREFIX} ${PKGINFODIR}

EMACS_MODULES=		base

.include "../../editors/emacs/modules.mk"

post-install:
	${INSTALL_DATA} ${WRKSRC}/magit.info ${DESTDIR}${PREFIX}/${PKGINFODIR}/

.include "../../mk/bsd.pkg.mk"