1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00
freebsd-ports/editors/slime/Makefile
Steve Wills 3cb4bcb34e - Update to 2.6
PR:		ports/189395
Submitted by:	Joseph Benden <joe@thrallingpenguin.com> (maintainer)
2014-05-23 19:55:53 +00:00

50 lines
1.5 KiB
Makefile

# Created by: Dominic Mitchell
# $FreeBSD$
PORTNAME= slime
PORTVERSION= 2.6
CATEGORIES= editors elisp
MASTER_SITES= https://codeload.github.com/slime/slime/legacy.tar.gz/v${PORTVERSION}?dummy=/
MAINTAINER= joe@thrallingpenguin.com
COMMENT= Superior Lisp Interaction Mode for Emacs
USES= gmake
USE_EMACS= yes
SLIME_LISPDIR= ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/slime
WRKSRC= ${WRKDIR}/slime-slime-74a9ea8
SUB_FILES= pkg-message
SUB_LIST= SLIME_LISPDIR="${SLIME_LISPDIR}"
INFO= slime
PORTDOCS= CONTRIBUTING.md ChangeLog NEWS PROBLEMS README.md
OPTIONS_DEFINE= DOCS
do-build:
cd ${WRKSRC}/doc && ${MAKE_CMD} slime.info
cd ${WRKSRC} && ${EMACS_CMD} -batch \
-eval '(setq load-path (cons nil load-path))' \
-f batch-byte-compile *.el
do-install:
@${MKDIR} ${STAGEDIR}${SLIME_LISPDIR}/contrib
@${MKDIR} ${STAGEDIR}${SLIME_LISPDIR}/lib
cd ${WRKSRC} && ${INSTALL_DATA} *.elc *.el *.lisp ${STAGEDIR}${SLIME_LISPDIR}
cd ${WRKSRC}/lib && ${INSTALL_DATA} *.el ${STAGEDIR}${SLIME_LISPDIR}/lib
cd ${WRKSRC}/contrib && ${INSTALL_DATA} *.el *.lisp \
${STAGEDIR}${SLIME_LISPDIR}/contrib
${INSTALL_DATA} ${WRKSRC}/ChangeLog ${STAGEDIR}${SLIME_LISPDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${INSTALL_WRKSRC}/doc/slime.info \
${STAGEDIR}${PREFIX}/${INFO_PATH}
${INSTALL_DATA} ${INSTALL_WRKSRC}/contrib/README.md \
${STAGEDIR}${DOCSDIR}/README-contrib.md
(cd ${INSTALL_WRKSRC}/doc && ${INSTALL_DATA} slime-refcard.pdf \
slime-small.pdf ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>