aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2016-12-12 17:00:50 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2016-12-12 17:00:50 +0800
commit19a4854c53e9481c25c8e97d1891d4e3f7569b4f (patch)
treef65e4c25df8dec932b76ad748df3b6f74c6b66fb /textproc
parentd3d485de87973db22f51e08ea38311c1bf1e7877 (diff)
downloadfreebsd-ports-gnome-19a4854c53e9481c25c8e97d1891d4e3f7569b4f.tar.gz
freebsd-ports-gnome-19a4854c53e9481c25c8e97d1891d4e3f7569b4f.tar.zst
freebsd-ports-gnome-19a4854c53e9481c25c8e97d1891d4e3f7569b4f.zip
- Add LICENSE
- Switch to options helpers - Simplify installation
Diffstat (limited to 'textproc')
-rw-r--r--textproc/dictionary/Makefile16
1 files changed, 11 insertions, 5 deletions
diff --git a/textproc/dictionary/Makefile b/textproc/dictionary/Makefile
index 0d7b4e2f27ef..5649d32c05f0 100644
--- a/textproc/dictionary/Makefile
+++ b/textproc/dictionary/Makefile
@@ -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>