aboutsummaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2018-01-12 02:09:00 +0800
committerdanfe <danfe@FreeBSD.org>2018-01-12 02:09:00 +0800
commit2e405a4390a09190d0b4db047144387da96bdbb8 (patch)
tree9cac7f5ea213c17593d4d5a8c733bc92daf9a6ef /editors
parentc832c456a9ad5522763decae70b3fd7c69676940 (diff)
downloadfreebsd-ports-gnome-2e405a4390a09190d0b4db047144387da96bdbb8.tar.gz
freebsd-ports-gnome-2e405a4390a09190d0b4db047144387da96bdbb8.tar.zst
freebsd-ports-gnome-2e405a4390a09190d0b4db047144387da96bdbb8.zip
- Convert to option helper install target (add OPTIONS_DEFINE=DOCS
when it was missing) - Invoke INSTALL_DATA where appropriate instead of INSTALL_MAN - Fix some whitespace and formatting bugs along the way
Diffstat (limited to 'editors')
-rw-r--r--editors/with-editor/Makefile19
1 files changed, 11 insertions, 8 deletions
diff --git a/editors/with-editor/Makefile b/editors/with-editor/Makefile
index 29e0f2a226f5..9f6692482b5c 100644
--- a/editors/with-editor/Makefile
+++ b/editors/with-editor/Makefile
@@ -18,22 +18,25 @@ GH_ACCOUNT= magit
USES= gmake makeinfo
USE_EMACS= yes
+MAKE_ENV= EFLAGS="-L ${PREFIX}/${EMACS_SITE_LISPDIR}"
NO_ARCH= yes
INFO= with-editor
PORTDOCS= README.md
-OPTIONS_DEFINE= DOCS
-
-MAKE_ENV+= EFLAGS="-L ${PREFIX}/${EMACS_SITE_LISPDIR}"
-
PLIST_FILES= ${EMACS_VERSION_SITE_LISPDIR}/with-editor.el \
${EMACS_VERSION_SITE_LISPDIR}/with-editor.elc \
${EMACS_VERSION_SITE_LISPDIR}/with-editor-autoloads.el
+OPTIONS_DEFINE= DOCS
+
do-install:
- ${MKDIR} ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR} ${STAGEDIR}${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/*.el ${WRKSRC}/*.elc ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}
- ${INSTALL_MAN} ${WRKSRC}/*.info ${STAGEDIR}${PREFIX}/${INFO_PATH}
- ${INSTALL_MAN} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}
+ ${INSTALL_DATA} ${WRKSRC}/*.el ${WRKSRC}/*.elc \
+ ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}
+
+do-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/*.info ${STAGEDIR}${PREFIX}/${INFO_PATH}
+ ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>