aboutsummaryrefslogtreecommitdiffstats
path: root/news/gnus-emacs20/Makefile
blob: 2a1d5ba0e2a97b1c1508b556d046a20c0b54d5dd (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
# New ports collection makefile for:   gnus-emacs20
# Date created:        29 January 2001
# Whom:                ilya
#
# $FreeBSD$
#

PORTNAME=   gnus
PORTVERSION=    5.8.8
PORTREVISION=   3
CATEGORIES= news mail elisp
MASTER_SITES=   ftp://ftp.monash.edu.au/pub/gnus/ \
        ftp://ftp.kreonet.re.kr/pub/tools/emacs/gnus/ \
        ftp://ftp.task.gda.pl/mirror/ftp.gnus.org/pub/gnus/
PKGNAMESUFFIX=  -${EMACS_PORT_NAME}

MAINTAINER= ports@FreeBSD.org
COMMENT=    A popular newsreader for emacs20

HAS_CONFIGURE=  yes

EMACS_PORT_NAME?=emacs20

CONFIGURE_ARGS= --with-emacs=${EMACS_CMD} \
        --with-lispdir=${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/gnus \
        --infodir=${INFODIR}

INFODIR=    ${PREFIX}/info
INFO=       emacs-mime gnus gnus-1 gnus-2 gnus-3 message

PORTDOCDIR= share/doc/gnus-${EMACS_PORT_NAME}
DOCS=       ChangeLog GNUS-NEWS README

PLIST_SUB+= EMACS_PORT_NAME=${EMACS_PORT_NAME} \
        INFODIR=${INFODIR:S/${PREFIX}\///}

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${PREFIX}/${PORTDOCDIR}
.for i in ${DOCS}
    ${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/${PORTDOCDIR}
.endfor
.endif

.include <bsd.port.mk>