blob: cdfc97cfc53b0b9ce2e46a1f863867ea43b4f610 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Created by: Max N. Boyarov <m.boyarov@gmail.com>
# $FreeBSD$
PORTNAME= dictem
PORTVERSION= 1.0.4
CATEGORIES= textproc net elisp
MASTER_SITES= SF/dictem/dictem/dictem-${PORTVERSION}
PKGNAMESUFFIX= -${EMACS_PORT_NAME}
MAINTAINER= max.n.boyarov@gmail.com
COMMENT= DictEm is a dict client for [X]Emacs
LICENSE= GPLv2
RUN_DEPENDS= ${LOCALBASE}/bin/dict:${PORTSDIR}/textproc/dict
USE_EMACS= yes
SRC_EL= dictem.el dictem-lingvo-dsl.el dictem-elisp.el
.for f in ${SRC_EL}
PLIST_FILES+= ${LISPDIR}/${f} \
${LISPDIR}/${f:S/.el$/.elc/}
.endfor
PLIST_DIRS+= ${LISPDIR}
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
PORTDOCS+= README AUTHORS NEWS COPYING TODO
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
.if ${EMACS_NAME} == "xemacs"
LISPDIR= ${EMACS_LIBDIR}/site-packages/lisp/dictem
.else
LISPDIR= ${EMACS_VERSION_SITE_LISPDIR}/dictem
.endif
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:
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for doc in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>
|