2006-05-08 20:14:31 +00:00
|
|
|
# New ports collection makefile for: dictem
|
|
|
|
# Date created: 24 Apr 2006
|
|
|
|
# Whom: Max N. Boyarov <m.boyarov@gmail.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= dictem
|
2009-10-30 00:57:20 +00:00
|
|
|
PORTVERSION= 1.0.2
|
2010-03-28 06:47:48 +00:00
|
|
|
PORTREVISION= 3
|
2006-05-08 20:14:31 +00:00
|
|
|
CATEGORIES= textproc net elisp
|
2009-08-22 00:37:17 +00:00
|
|
|
MASTER_SITES= SF/dictem/dictem/dictem-${PORTVERSION}
|
2006-05-08 20:14:31 +00:00
|
|
|
PKGNAMESUFFIX= -${EMACS_PORT_NAME}
|
|
|
|
|
2009-10-30 00:57:20 +00:00
|
|
|
MAINTAINER= m.boyarov@gmail.com
|
2006-05-08 20:14:31 +00:00
|
|
|
COMMENT= DictEm is a dict client for [X]Emacs
|
|
|
|
|
2009-10-30 00:57:20 +00:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/dict:${PORTSDIR}/textproc/dict
|
|
|
|
|
2008-07-05 00:35:54 +00:00
|
|
|
USE_EMACS= yes
|
2006-05-08 20:14:31 +00:00
|
|
|
|
|
|
|
PLIST_FILES+= ${LISPDIR}/dictem.el \
|
|
|
|
${LISPDIR}/dictem.elc
|
|
|
|
PLIST_DIRS+= ${LISPDIR}
|
|
|
|
|
2006-08-06 07:36:33 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
2008-11-13 22:43:09 +00:00
|
|
|
PORTDOCS+= README AUTHORS NEWS ChangeLog COPYING TODO
|
2006-05-08 20:14:31 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${EMACS_NAME} == "xemacs"
|
|
|
|
LISPDIR= ${EMACS_LIBDIR}/site-packages/lisp/dictem
|
|
|
|
.else
|
|
|
|
LISPDIR= ${EMACS_VERSION_SITE_LISPDIR}/dictem
|
|
|
|
.endif
|
|
|
|
|
2006-06-02 11:20:25 +00:00
|
|
|
do-build:
|
|
|
|
${EMACS_CMD} -batch -f batch-byte-compile ${WRKSRC}/dictem.el
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${PREFIX}/${LISPDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/dictem.el ${PREFIX}/${LISPDIR}/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/dictem.elc ${PREFIX}/${LISPDIR}/
|
|
|
|
|
2006-05-08 20:14:31 +00:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
.for doc in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|