aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/dictionary/Makefile
blob: 8c9e6460b2786fc0a8082f422785578940c98ba8 (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
# Created by: Kimura Fuyuki <fuyuki@mj.0038.net>
# $FreeBSD$

PORTNAME=   dictionary
PORTVERSION=    1.8.7
PORTREVISION=   14
CATEGORIES= textproc net elisp
MASTER_SITES=   http://me.in-berlin.de/~myrkr/dictionary/ \
        http://bsdchat.com/dist/dryice/
PKGNAMESUFFIX=  -${EMACS_PORT_NAME}

MAINTAINER= ports@FreeBSD.org
COMMENT=    A dictionary client for Emacs

USE_EMACS=  yes

LISPDIR=    ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/${PORTNAME}
ELS=        connection.el dictionary.el link.el

NO_STAGE=   yes
do-build:
    cd ${WRKSRC}; ${EMACS_CMD} -batch -l lpath.el -f batch-byte-compile ${ELS}

do-install:
    ${MKDIR} ${LISPDIR}
.for i in ${ELS} *.elc dictionary-init.el
    ${INSTALL_DATA} ${WRKSRC}/${i} ${LISPDIR}
.endfor

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
.for i in README
    ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>