1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-20 08:27:15 +00:00

- Add LICENSE

- Switch to options helpers
- Simplify installation
This commit is contained in:
Dmitry Marakasov 2016-12-12 09:00:50 +00:00
parent e5742228cf
commit c6f2dae2ac
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=428401

View File

@ -12,23 +12,29 @@ PKGNAMESUFFIX= -${EMACS_PORT_NAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= Dictionary client for Emacs
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/GPL
USE_EMACS= yes
LISPDIR= ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/${PORTNAME}
ELS= connection.el dictionary.el link.el
DOCSDIR= README
PORTDOCS= *
OPTIONS_DEFINE= DOCS
do-build:
cd ${WRKSRC}; ${EMACS_CMD} -batch -l lpath.el -f batch-byte-compile ${ELS}
cd ${WRKSRC} && ${EMACS_CMD} -batch -l lpath.el -f batch-byte-compile ${ELS}
do-install:
@${MKDIR} ${STAGEDIR}${LISPDIR}
.for i in ${ELS} *.elc dictionary-init.el
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${LISPDIR}
.endfor
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>