1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/devel/cask/Makefile

45 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= cask
PORTVERSION= 0.8.3
DISTVERSIONPREFIX= v
PORTREVISION= 1
CATEGORIES= devel elisp
PKGNAMESUFFIX= ${EMACS_PKGNAMESUFFIX}
MAINTAINER= hrs@FreeBSD.org
COMMENT= Project management tool for Emacs
LICENSE= GPLv3
USES= emacs python shebangfix
USE_GITHUB= yes
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>