aboutsummaryrefslogtreecommitdiffstats
path: root/news/ubh/Makefile
blob: a6fc9a87e6162ff5ed65571728f7b194b98a8170 (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:    ubh
# Date created:         1 January 2002
# Whom:             John Holland <john@zoner.org>
#
# $FreeBSD$
#

PORTNAME=   ubh
PORTVERSION=    2.5
PORTREVISION=   1
CATEGORIES= news graphics
MASTER_SITES=   http://ubh.sourceforge.net/download/

MAINTAINER= john@zoner.org
COMMENT=    Perl script to download and decode binaries posted to Usenet

RUN_DEPENDS=    \
    p5-News-Newsrc>=0:${PORTSDIR}/news/p5-News-Newsrc \
    p5-Mail-Tools>=0:${PORTSDIR}/mail/p5-Mail-Tools \
    p5-IO-stringy>=0:${PORTSDIR}/devel/p5-IO-stringy \
    p5-MIME-Tools>=0:${PORTSDIR}/mail/p5-MIME-Tools \
    p5-String-CRC32>=0:${PORTSDIR}/devel/p5-String-CRC32

NO_BUILD=   YES
USES=       perl5

pre-patch:
    @${MV} ${WRKSRC}/ubh ${WRKSRC}/ubh.old
    @${SED} -e '1,1s:/usr/bin/perl:${PERL5}:' \
        ${WRKSRC}/ubh.old > ${WRKSRC}/ubh

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/ubh ${PREFIX}/bin
    ${CP} -R ${WRKSRC}/examples ${PREFIX}/share/ubh
.if !defined(NOPORTDOCS)
    ${MKDIR} ${PREFIX}/share/doc/ubh
    ${INSTALL_DATA} ${WRKSRC}/doc/ubh.html ${PREFIX}/share/doc/ubh
.endif

.include <bsd.port.mk>