aboutsummaryrefslogtreecommitdiffstats
path: root/devel/ecb/Makefile
blob: 3a9c3b098d5386cad6d18dc7fa3cb9a40d0a91e2 (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
# New ports collection makefile for:   ecb
# Date created:                25 January 2002
# Whom:                        Kimura Fuyuki <fuyuki@mj.0038.net>
#
# $FreeBSD$
#

PORTNAME=   ecb
PORTVERSION=    1.95.1
CATEGORIES= devel elisp
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ecb
PKGNAMESUFFIX=  -${EMACS_PORT_NAME}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Emacs Code Browser

EMACS_PORT_NAME?=   emacs21

.if ${EMACS_PORT_NAME} != "emacs21"
PORTNAMESUFFIX= ${PKGNAMESUFFIX}
.endif

BUILD_DEPENDS=  ${LOCALBASE}/${EMACS_VERSION_SITE_LISPDIR}/semantic/semantic.el:${PORTSDIR}/devel/semantic${PORTNAMESUFFIX} \
        ${LOCALBASE}/${EMACS_VERSION_SITE_LISPDIR}/eieio/eieio.el:${PORTSDIR}/devel/eieio${PORTNAMESUFFIX}
RUN_DEPENDS=    ${BUILD_DEPENDS}

LISPDIR=    ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/${PORTNAME}

USE_REINPLACE=  yes
USE_GMAKE=  yes
ALL_TARGET= ecb
PLIST_SUB=  INFOSECTION="${INFOSECTION}"
INFOSECTION=    The Emacs editor and associated tools

post-patch:
    ${REINPLACE_CMD} "s|\./info-help|${PREFIX}/info|" ${WRKSRC}/ecb-help.el

do-install:
    ${MKDIR} ${LISPDIR}
.for i in *.el *.elc
    ${INSTALL_DATA} ${WRKSRC}/${i} ${LISPDIR}
.endfor
    ${INSTALL_DATA} ${WRKSRC}/info-help/* ${PREFIX}/info
    install-info --section="${INFOSECTION}" ${PREFIX}/info/ecb.info \
        ${PREFIX}/info/dir

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

.include <bsd.port.mk>