freebsd-ports/devel/cask/Makefile
Joseph Mingrone ab463bdca9
*/*: Chase editors/emacs update
- 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
2024-01-27 18:33:05 -04:00

45 lines
1.2 KiB
Makefile

PORTNAME= cask
PORTVERSION= 0.8.3
DISTVERSIONPREFIX= v
PORTREVISION= 13
CATEGORIES= devel elisp
PKGNAMESUFFIX= ${EMACS_PKGNAMESUFFIX}
MAINTAINER= hrs@FreeBSD.org
COMMENT= Project management tool for Emacs
WWW= https://github.com/cask/cask
LICENSE= GPLv3
USES= emacs python shebangfix
USE_GITHUB= yes
CONFLICTS_INSTALL= cask cask-emacs_*
NO_ARCH= yes
NO_BUILD= yes
PLIST_FILES= ${EMACS_SITE_LISPDIR}/cask.el \
${EMACS_SITE_LISPDIR}/cask-bootstrap.el \
${EMACS_SITE_LISPDIR}/cask-cli.el \
${EMACS_SITE_LISPDIR}/package-legacy.el \
${EMACS_SITE_LISPDIR}/templates/init.tpl \
${EMACS_SITE_LISPDIR}/templates/init-dev.tpl \
bin/cask
SHEBANG_FILES= bin/cask
post-patch:
@${REINPLACE_CMD} -e 's|os.path.dirname(CASK_BIN_DIRECTORY)|"${PREFIX}/${EMACS_SITE_LISPDIR}"|' \
${WRKSRC}/bin/cask
do-install:
(cd ${WRKSRC} && ${INSTALL_DATA} \
${PLIST_FILES:M*.el:T} ${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR})
${MKDIR} ${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR}/templates
(cd ${WRKSRC}/templates && ${INSTALL_DATA} ${PLIST_FILES:M*.tpl:T} \
${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR}/templates)
${INSTALL_SCRIPT} ${WRKSRC}/bin/cask \
${STAGEDIR}${PREFIX}/bin/cask
.include <bsd.port.mk>