freebsd-ports/math/ess/Makefile
Joseph Mingrone d4fbd62e87 math/ess: Fix build after latest editors/emacs-devel update
The 'when' argument of `make-obsolete` and related functions was recently
made mandatory. [1] Apply an upstream patch to a
`define-obsolete-function-alias' call to fix the build. [2]

[1] 32c6732d16
[2] 9cc5520e19

Reported by:	tcberner
Approved by:	rhurlin (maintainer)
Differential Revision:	https://reviews.freebsd.org/D28285
2021-01-23 02:42:03 +00:00

41 lines
862 B
Makefile

# Created by: Christopher J. Ruwe
# $FreeBSD$
PORTNAME= ess
DISTVERSION= 18.10.2
PORTREVISION= 4
CATEGORIES= math
MASTER_SITES= http://ess.r-project.org/downloads/ess/ \
http://stat.ethz.ch/ESS/downloads/ess/
PKGNAMESUFFIX= ${EMACS_PKGNAMESUFFIX}
MAINTAINER= rhurlin@FreeBSD.org
COMMENT= R support for Emacsen
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= R:math/R
USES= emacs gmake makeinfo perl5 tar:tgz
USE_PERL5= build
NO_ARCH= yes
INFO= ess
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e \
's|^DESTDIR|#DESTDIR| ; \
s|^PREFIX|#PREFIX| ; \
s|=$$(PREFIX)|=$$(DESTDIR)$$(PREFIX)| ; \
s|share/info|${INFO_PATH}|' ${WRKSRC}/Makeconf
@${REINPLACE_CMD} -e \
'/^PDFs/s|=.*|=|' ${WRKSRC}/doc/Makefile
post-install:
@${CP} ${WRKSRC}/lisp/*.el ${STAGEDIR}${PREFIX}/share/emacs/site-lisp/ess/
.include <bsd.port.mk>