freebsd-ports/editors/sly-quicklisp/Makefile
Joseph Mingrone 061afcca16
USES=emacs: Chase package name changes
PR:		259259
Differential Revision:	https://reviews.freebsd.org/D32613
2021-11-15 11:19:58 -04:00

51 lines
1.3 KiB
Makefile

PORTNAME= sly-quicklisp
PORTVERSION= 20200707
PORTREVISION= 3
CATEGORIES= editors elisp
PKGNAMESUFFIX= ${EMACS_PKGNAMESUFFIX}
MAINTAINER= olce.freebsd.ports@certner.fr
COMMENT= Basic Quicklisp support for SLY
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= 4707b62803d7a29f172e9c5ff993b91187a9aaf3
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
PORTDOCS= README.md screenshot.png
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/} \
-name LICENSE -o -name *\.md -o -name \.[^.]* ) )")
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:%=${WRKSRC}/%} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>