blob: a6030f2c1947617244ab41c6a6c1bb761781d8ad (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
PORTNAME= cask
PORTVERSION= 0.8.3
DISTVERSIONPREFIX= v
PORTREVISION= 6
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>
|