summaryrefslogtreecommitdiff
path: root/math/ess/Makefile
blob: a587c05e777f81d877f79801b17cd827a81d21d2 (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
42
43
44
45
46
47
48
# $NetBSD: Makefile,v 1.25 2013/04/06 20:27:24 rodent Exp $

DISTNAME=	ess-5.11
PKGNAME=	${EMACS_PKGNAME_PREFIX}${DISTNAME}
PKGREVISION=	2
CATEGORIES=	math
MASTER_SITES=	http://ess.r-project.org/downloads/ess/
EXTRACT_SUFX=	.tgz

MAINTAINER=	markd@NetBSD.org
HOMEPAGE=	http://ess.r-project.org/
COMMENT=	Emacs Speaks Statistics

USE_TOOLS+=	makeinfo perl
EMACS_MODULES=	base
INFO_FILES=	yes

MAKE_JOBS_SAFE=	no
MAKE_ENV+=	LISPDIR=${EMACS_LISPPREFIX}/ess
MAKEFLAGS+=	EMACS=${EMACS_BIN:Q}

SUBST_CLASSES+=		etcdir
SUBST_STAGE.etcdir=	pre-patch
SUBST_FILES.etcdir=	lisp/ess-site.el
SUBST_SED.etcdir=	-e 's,"./etc/"),"./etc/" "../../../ess/"),'

INSTALLATION_DIRS=	${EMACS_INFOPREFIX} ${EMACS_LISPPREFIX}/ess
INSTALLATION_DIRS+=	${EMACS_ETCPREFIX}/ess ${EMACS_ETCPREFIX}/ess/icons

post-extract:
	cd ${WRKSRC} && chmod u+w doc/*/

do-install:
	cd ${WRKSRC}/lisp && ${INSTALL_DATA} *.el*			\
		${DESTDIR}${EMACS_LISPPREFIX}/ess
	cd ${WRKSRC}/doc/info; for f in ess.info ess.info-[0-9]*; do	\
		${TEST} ! -f "$$f" ||					\
		${INSTALL_DATA} "$$f" ${DESTDIR}${EMACS_INFOPREFIX};	\
        done
	cd ${WRKSRC}/etc && ${INSTALL_DATA} icons/*.xpm			\
		${DESTDIR}${EMACS_ETCPREFIX}/ess/icons
	cd ${WRKSRC}/etc && ${INSTALL_DATA} *.S				\
		${DESTDIR}${EMACS_ETCPREFIX}/ess
	cd ${WRKSRC}/etc && ${INSTALL_SCRIPT} ess-sas-sh-command	\
		${DESTDIR}${EMACS_ETCPREFIX}/ess

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