git: ba6850f84e0d - main - www/emacs-w3m: Fix pkg-plist when OCTET_VIEWER option is off

From: MANTANI Nobutaka <nobutaka_at_FreeBSD.org>
Date: Mon, 24 Oct 2022 13:14:23 UTC
The branch main has been updated by nobutaka:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ba6850f84e0d26ae8259bc197d04523428d683a8

commit ba6850f84e0d26ae8259bc197d04523428d683a8
Author:     MANTANI Nobutaka <nobutaka@FreeBSD.org>
AuthorDate: 2022-10-24 13:08:25 +0000
Commit:     MANTANI Nobutaka <nobutaka@FreeBSD.org>
CommitDate: 2022-10-24 13:13:22 +0000

    www/emacs-w3m: Fix pkg-plist when OCTET_VIEWER option is off
    
    PR:     267155
    Reported by:    yasu
---
 www/emacs-w3m/Makefile  | 4 ++++
 www/emacs-w3m/pkg-plist | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/www/emacs-w3m/Makefile b/www/emacs-w3m/Makefile
index d70322642409..c8ec215ed8c6 100644
--- a/www/emacs-w3m/Makefile
+++ b/www/emacs-w3m/Makefile
@@ -61,6 +61,10 @@ PLIST_SUB+=	EMACS28="@comment "
 post-patch:
 	@${MV} ${WRKSRC}/aclocal.m4 ${WRKSRC}/acinclude.m4
 
+post-install:
+	${RM} ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/w3m/mew-shimbun.elc \
+	      ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/w3m/mew-w3m.elc
+
 post-install-DOCS-on:
 	${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
diff --git a/www/emacs-w3m/pkg-plist b/www/emacs-w3m/pkg-plist
index 0a3f2722d890..d53e1d2cb399 100644
--- a/www/emacs-w3m/pkg-plist
+++ b/www/emacs-w3m/pkg-plist
@@ -45,7 +45,7 @@
 %%EMACS_VERSION_SITE_LISPDIR%%/w3m/bookmark-w3m.elc
 %%EMACS_VERSION_SITE_LISPDIR%%/w3m/mew-w3m.el
 %%EMACS_VERSION_SITE_LISPDIR%%/w3m/mime-w3m.el
-%%EMACS_VERSION_SITE_LISPDIR%%/w3m/mime-w3m.elc
+%%OCTET_VIEWER%%%%EMACS_VERSION_SITE_LISPDIR%%/w3m/mime-w3m.elc
 %%EMACS_VERSION_SITE_LISPDIR%%/w3m/octet.el
 %%OCTET_VIEWER%%%%EMACS_VERSION_SITE_LISPDIR%%/w3m/octet.elc
 %%SHIMBUN%%%%EMACS_VERSION_SITE_LISPDIR%%/w3m/mew-shimbun.el