aboutsummaryrefslogtreecommitdiffstats
path: root/news/brag/Makefile
blob: 288dcd0d6091a703192e2a3c44aeb01f5df20502 (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
# New ports collection makefile for:    brag
# Date created:             19 Jul 2005
# Whom:                 Emanuel Haupt <ehaupt@critical.ch>
#
# $FreeBSD$
#

PORTNAME=   brag
PORTVERSION=    1.4.1
CATEGORIES= news tcl84
MASTER_SITES=   http://brag.sourceforge.net/

MAINTAINER= ehaupt@FreeBSD.org
COMMENT=    Download and assemble multipart binaries from newsgroups

RUN_DEPENDS=    uudeview:${PORTSDIR}/converters/uudeview \
        ${TCLSH}:${PORTSDIR}/lang/tcl84

MAN1=       brag.1
PLIST_FILES=    bin/brag
PORTDOCS=   CHANGES README

TCLSH=      tclsh8.4

post-patch:
    @${REINPLACE_CMD} -e 's|^\(exec\ \)tclsh|\1${TCLSH}|' \
        ${WRKSRC}/${PORTNAME}

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1

.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>