aboutsummaryrefslogtreecommitdiffstats
path: root/irc/irchat-pj-emacs20/Makefile
blob: aff4df00b6d4ca8731b199bd2b34420cd7842cdf (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
# New ports collection makefile for:    irchat-pj (for emacs20)
# Date Created:     2 May 2001
# Whom:         Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp>
#
# $FreeBSD$
#

PORTNAME=   irchat-pj
PORTVERSION=    2.5.6
PORTREVISION=   2
CATEGORIES= irc elisp
MASTER_SITES=   http://his.luky.org/ftp/mirrors/irchat-pj/2.5/
PKGNAMESUFFIX=  -${EMACS_PORT_NAME}
DISTNAME=   ${PORTNAME}-${PORTVERSION}p

PATCH_SITES=    ${MASTER_SITES}
PATCHFILES= ${PORTNAME}-${PORTVERSION}pl2.diff.gz
PATCH_DIST_STRIP=   -p1

MAINTAINER= yoichi@FreeBSD.org
COMMENT=    IRC client which runs under Emacsen

BUILD_DEPENDS=  ${LOCALBASE}/${LISPDIR:S,${PORTNAME},pure,g}/pure-make.el:${PORTSDIR}/irc/pure-${EMACS_PORT_NAME}
RUN_DEPENDS=    ${LOCALBASE}/${LISPDIR:S,${PORTNAME},pure,g}/pure-make.el:${PORTSDIR}/irc/pure-${EMACS_PORT_NAME} \
        ${LOCALBASE}/bin/dcc:${PORTSDIR}/irc/dcc

USE_BZIP2=  yes
USE_EMACS=  yes
EMACS_PORT_NAME?=   emacs20
XEMACS_ONLY?=   "@comment "
LISPDIR?=   ${EMACS_VERSION_SITE_LISPDIR}/${PORTNAME}
ETCDIR=     share/doc/${PORTNAME}

MAKE_ARGS+= LISPDIR=${PREFIX}/${LISPDIR} \
        PACKDIR=${PREFIX}/${EMACS_LIBDIR}/site-packages

DOCS=       README.25 doc24/CHANGELOG doc24/FAQ-about-jp24.txt\
        doc24/FAQ-irchat-PJ.txt doc24/INSTALL.irchat-pj\
        doc24/README.browse-url-plus doc24/README.irchat-pj\
        doc24/browse-url-plus-init.el doc24/dot.irchat_vars.el

PLIST_SUB=  LISPDIR=${LISPDIR} \
        ETCDIR=${ETCDIR} \
        XEMACS_ONLY=${XEMACS_ONLY}

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${PREFIX}/${ETCDIR}
.for f in ${DOCS}
    ${INSTALL_MAN} ${WRKSRC}/${f} ${PREFIX}/${ETCDIR}
.endfor
.endif

.include <bsd.port.mk>