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

PORTNAME=	gnus
PORTVERSION=	5.8.8
PORTREVISION=	1
CATEGORIES=	news mail elisp
MASTER_SITES=	http://quimby.gnus.org/gnus/dist/ \
		ftp://quimby.gnus.org/gnus/dist/ \
		ftp://ftp.monash.edu.au/pub/gnus/ \
		ftp://ftp.win.ne.jp/pub/word/elisp/gnus/ \
		ftp://ftp.kreonet.re.kr/pub/tools/emacs/gnus/ \
		ftp://ftp.task.gda.pl/mirror/ftp.gnus.org/pub/gnus/ \
		http://www.gnus.org/dist/ \
		ftp://ftp.gnus.org/dist/ \
		ftp://ftp.twoguys.org/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

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>