1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Add staging support.

This commit is contained in:
Jimmy Olgeni 2014-05-13 21:00:40 +00:00
parent 176c75020d
commit 15342f122c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=353995

View File

@ -11,24 +11,18 @@ DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
MAINTAINER= olgeni@FreeBSD.org
COMMENT= YASnippet is a template system for Emacs
USE_BZIP2= yes
USES= tar:bzip2
USE_EMACS= yes
NO_BUILD= yes
SUB_FILES= pkg-message
NO_STAGE= yes
post-patch:
@${FIND} ${WRKSRC}/snippets -type d -empty | ${XARGS} ${RMDIR}
do-install:
@${INSTALL_DATA} ${WRKSRC}/dropdown-list.el ${PREFIX}/${EMACS_SITE_LISPDIR}
@${INSTALL_DATA} ${WRKSRC}/yasnippet.el ${PREFIX}/${EMACS_SITE_LISPDIR}
@cd ${WRKSRC} && ${COPYTREE_SHARE} snippets ${DATADIR}
.if !defined(NOPORTDOCS)
@cd ${WRKDIR}/doc && ${COPYTREE_SHARE} \* ${DOCSDIR}
.endif
post-install:
@${CAT} ${PKGMESSAGE}
${INSTALL_DATA} ${WRKSRC}/dropdown-list.el ${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR}
${INSTALL_DATA} ${WRKSRC}/yasnippet.el ${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} snippets ${STAGEDIR}${DATADIR}
cd ${WRKDIR}/doc && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>