blob: 395bce5cf9640fe3fbceab56b2c5daa114af7779 (
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
58
59
60
61
62
|
# New ports collection makefile for: elisp-info.el
# Date Created: 21 Jan 2002
# Whom: Yoichi NAKAYAMA <yoichi@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= mode-info
PORTVERSION= 0.1.3
CATEGORIES= elisp
MASTER_SITES= http://namazu.org/~tsuchiya/elisp/
MAINTAINER= yoichi@FreeBSD.org
MI_INDEX+= mi-emacs.idx
MI_WITH_ELISP?= yes
MI_ELISP_LANG?= en
.if (${MI_WITH_ELISP} == "yes")
.if (${MI_ELISP_LANG} == "en")
BUILD_DEPENDS+= ${LOCALBASE}/info/elisp:${PORTSDIR}/lang/elisp-manual
RUN_DEPENDS+= ${LOCALBASE}/info/elisp:${PORTSDIR}/lang/elisp-manual
.elif (${MI_ELISP_LANG} == "ja")
BUILD_DEPENDS+= ${LOCALBASE}/info/elisp-ja:${PORTSDIR}/japanese/elisp-manual
RUN_DEPENDS+= ${LOCALBASE}/info/elisp-ja:${PORTSDIR}/japanese/elisp-manual
.else
.error MI_ELISP_LANG should be "en" or "ja".
.endif
MI_INDEX+= mi-elisp.idx
PLIST_SUB+= MI_WITH_ELISP=""
.else
PLIST_SUB+= MI_WITH_ELISP="@comment "
.endif
EMACS_PORT_NAME?= emacs21
EMACS_NO_RUN_DEPENDS= yes
LISPDIR?= ${PREFIX}/${EMACS_SITE_LISPDIR}/${PORTNAME}
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-emacs=${EMACS_CMD} \
--with-lispdir=${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/mode-info
ALL_TARGET= default index
#INSTALL_TARGET= install install-index
post-configure:
.if (${MI_ELISP_LANG} == "en")
${ECHO_CMD} "(setq mode-info-elisp-titles (list \"elisp\"))" >> ${WRKSRC}/elisp-comp
.elif (${MI_ELISP_LANG} == "ja")
${ECHO_CMD} "(setq mode-info-elisp-titles (list \"elisp-ja\"))" >> ${WRKSRC}/elisp-comp
.endif
post-install:
.for i in ${MI_INDEX}
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/mode-info/
.endfor
${RM} ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/mode-info/ChangeLog
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for i in README README.ja ChangeLog
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|