aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/a2ps/Makefile
blob: 7f5d2ef493ecb5e8515cd4ba1ffd1dc40212a52d (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
# Created by: SAITO Itsuro <saito@miv.t.u-tokyo.ac.jp>
# $FreeBSD$

PORTNAME=   a2ps
PORTVERSION=    1.45
PORTREVISION=   5
CATEGORIES= japanese print
MASTER_SITES=   ftp://ftp.sra.co.jp/pub/lang/perl/sra-scripts/ \
        LOCAL/tota/a2ps
DISTNAME=   ${PORTNAME}.pl-${PORTVERSION}
EXTRACT_SUFX=   # empty

MAINTAINER= hrs@FreeBSD.org
COMMENT=    Text file to postscript converter (with Japanese support)

LICENSE=    BSD

RUN_DEPENDS=    paperconf:${PORTSDIR}/print/libpaper

USES=       perl5 shebangfix
USE_PERL5=  run
SHEBANG_FILES=  ${WRKSRC}/a2ps-j
perl_OLD_CMD=   /usr/local/bin/perl
PLIST_FILES=    bin/a2ps-j
EXTRACT_CMD=    ${INSTALL_SCRIPT}
EXTRACT_BEFORE_ARGS=    # empty
EXTRACT_AFTER_ARGS= a2ps-j
NO_WRKSUBDIR=   yes
NO_BUILD=   yes

post-patch:
    ${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},' ${WRKSRC}/a2ps-j

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/a2ps-j ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>