freebsd-ports/textproc/dictem/Makefile
Joseph Mingrone 26421ac37c
Chase editors/emacs update
- Bump Emacs version in Mk/Uses/emacs.mk to update version-specific
  paths
- Bump PORTREVISION of ports with USES=emacs.  This is required for two
  reasons.  Emacs lisp files need to be byte compiled for the new Emacs
  version, and files installed under, e.g., EMACS_VERSION_SITE_LISPDIR
  need to be relocated.

Reviewed by:	ashish
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D44492
2024-03-26 19:51:47 -03:00

47 lines
1.1 KiB
Makefile

PORTNAME= dictem
PORTVERSION= 1.0.4
PORTREVISION= 20
CATEGORIES= textproc net elisp
MASTER_SITES= SF/dictem/dictem/dictem-${PORTVERSION}
PKGNAMESUFFIX= ${EMACS_PKGNAMESUFFIX}
MAINTAINER= max.n.boyarov@gmail.com
COMMENT= DICT protocol client for [X]Emacs
WWW= https://sourceforge.net/projects/dictem/
LICENSE= GPLv2
RUN_DEPENDS= ${LOCALBASE}/bin/dict:textproc/dict
USES= emacs
SRC_EL= dictem.el dictem-lingvo-dsl.el dictem-elisp.el
.for f in ${SRC_EL}
PLIST_FILES+= ${LISPDIR}/${f} ${LISPDIR}/${f}c
.endfor
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
PORTDOCS= README AUTHORS NEWS COPYING TODO
LISPDIR= ${EMACS_VERSION_SITE_LISPDIR}/dictem
OPTIONS_DEFINE= DOCS
do-build:
(cd ${WRKSRC} && ${EMACS_CMD} --no-site-file --no-init-file -batch \
-l compile.el -f compile-dictem ${SRC_EL})
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/${LISPDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${SRC_EL} ${SRC_EL:S/.el$/.elc/} \
${STAGEDIR}${PREFIX}/${LISPDIR}/)
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for doc in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>