pkgsrc/devel/emacs-ilisp/Makefile
jperkin 5393242c73 *: Move SUBST_STAGE from post-patch to pre-configure
Performing substitutions during post-patch breaks tools such as mkpatches,
making it very difficult to regenerate correct patches after making changes,
and often leading to substituted string replacements being committed.
2018-07-04 13:40:07 +00:00

45 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.22 2018/07/04 13:40:13 jperkin Exp $
#
DISTNAME= ilisp-20021222
PKGNAME= ${EMACS_PKGNAME_PREFIX}emacs-${DISTNAME}
PKGREVISION= 7
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ilisp/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://sourceforge.net/projects/ilisp/
COMMENT= Emacs interface to embedded Lisp process
#LICENSE= # ILISP License, see COPYING file.
MAKE_ENV+= EMACS=${EMACS_BIN:Q}
BUILD_TARGET= compile
SITELISP= ${EMACS_LISPPREFIX}/ilisp
SUBST_CLASSES+= string-to-int
SUBST_STAGE.string-to-int= pre-configure
SUBST_MESSAGE.string-to-int= obsolete function (as of 22.1); use `string-to-number' instead
SUBST_FILES.string-to-int+= ilisp-acl.el
SUBST_SED.string-to-int= -e 's/string-to-int/string-to-number/'
do-install:
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/emacs-ilisp
${INSTALL_DATA} ${WRKSRC}/INSTALLATION \
${DESTDIR}${PREFIX}/share/doc/emacs-ilisp
${INSTALL_DATA} ${WRKSRC}/README \
${DESTDIR}${PREFIX}/share/doc/emacs-ilisp
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/emacs-ilisp
${INSTALL_DATA} ${WRKSRC}/ilisp.emacs \
${DESTDIR}${PREFIX}/share/examples/emacs-ilisp
${INSTALL_DATA_DIR} ${DESTDIR}${SITELISP}
${INSTALL_DATA} ${WRKSRC}/*.el ${DESTDIR}${SITELISP}
${INSTALL_DATA} ${WRKSRC}/*.elc ${DESTDIR}${SITELISP}
${INSTALL_DATA} ${WRKSRC}/*.lisp ${DESTDIR}${SITELISP}
${INSTALL_DATA} ${WRKSRC}/*.scm ${DESTDIR}${SITELISP}
${INSTALL_DATA_DIR} ${DESTDIR}${SITELISP}/extra
${INSTALL_DATA} ${WRKSRC}/extra/*.el ${DESTDIR}${SITELISP}/extra
${INSTALL_DATA} ${WRKSRC}/extra/*.elc ${DESTDIR}${SITELISP}/extra
.include "../../editors/emacs/modules.mk"
.include "../../mk/bsd.pkg.mk"