ab463bdca9
- Bump Emacs version in Mk/Uses/emacs.mk to update version-specific paths - Bump PORTREVISION of ports with USES=emacs. This is required for two reasons. Emacs lisp files need to be byte compiled for the new Emacs version, and files installed under, e.g., EMACS_VERSION_SITE_LISPDIR need to be relocated. Reviewed by: ashish Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D43615
58 lines
1.6 KiB
Makefile
58 lines
1.6 KiB
Makefile
PORTNAME= sly-named-readtables
|
|
PORTVERSION= 20191013
|
|
PORTREVISION= 13
|
|
CATEGORIES= editors elisp
|
|
PKGNAMESUFFIX= ${EMACS_PKGNAMESUFFIX}
|
|
|
|
MAINTAINER= olce.freebsd.ports@certner.fr
|
|
COMMENT= Support different readtables in the same file for SLY
|
|
WWW= https://github.com/joaotavora/sly-named-readtables
|
|
|
|
LICENSE= PD
|
|
|
|
MY_DEPENDS= ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/sly/sly.el:editors/sly@${EMACS_FLAVOR}
|
|
BUILD_DEPENDS= ${MY_DEPENDS}
|
|
RUN_DEPENDS= ${MY_DEPENDS}
|
|
|
|
USES= emacs
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= joaotavora
|
|
GH_TAGNAME= a5a42674ccffa97ccd5e4e9742beaf3ea719931f
|
|
|
|
NO_ARCH= yes
|
|
|
|
EMACS_COMPILE= ${EMACS_CMD} --batch --no-site-file -L ${WRKSRC} -f batch-byte-compile
|
|
|
|
PLIST_THIS_LISPDIR= ${EMACS_VERSION_SITE_LISPDIR}/${PORTNAME}
|
|
THIS_LISPDIR= ${PREFIX}/${PLIST_THIS_LISPDIR}
|
|
PLIST_SUB+= THIS_LISPDIR=${PLIST_THIS_LISPDIR}
|
|
|
|
# File is buggy and can't be used as documented upstream
|
|
EXCLUDED_FILES= ${PORTNAME}-autoloads.el
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
PORTDOCS= README.md screenshot.png
|
|
PORTEXAMPLES= example.lisp
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ${EMACS_COMPILE} sly-*.el
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${THIS_LISPDIR}
|
|
(cd ${WRKSRC} && \
|
|
${COPYTREE_SHARE} . ${STAGEDIR}${THIS_LISPDIR} \
|
|
"! ( -depth 1 ( ${EXCLUDED_FILES:C/^(.*)$/-name \1 -o/} \
|
|
${PORTDOCS:C/^(.*)$/-name \1 -o/} \
|
|
${PORTEXAMPLES:C/^(.*)$/-name \1 -o/} \
|
|
-name LICENSE -o -name *\.md -o -name \.[^.]* ) )")
|
|
|
|
post-install-DOCS-on:
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:%=${WRKSRC}/%} ${STAGEDIR}${DOCSDIR}
|
|
|
|
post-install-EXAMPLES-on:
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${PORTEXAMPLES:%=${WRKSRC}/%} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|