aboutsummaryrefslogtreecommitdiffstats
path: root/converters/p5-JSON-PP/Makefile
blob: 5db514d519ccd75764a328477483046177912546 (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
# New ports collection makefile for:    p5-JSON-PP
# Date created:     2011-03-04
# Whom:         Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   JSON-PP
PORTVERSION=    2.27200
PORTREVISION=   1
CATEGORIES= converters perl5
MASTER_SITES=   CPAN
MASTER_SITE_SUBDIR= CPAN:MAKAMAKA
PKGNAMEPREFIX=  p5-

MAINTAINER= sunpoet@FreeBSD.org
COMMENT=    A JSON::XS compatible pure-Perl module

PERL_CONFIGURE= yes

MAN1=       p5json_pp.1
MAN3=       JSON::PP.3 \
        JSON::PP::Boolean.3

SUB_FILES=  pkg-install

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 501400
PLIST_SUB=  BIN_JSON_PP=""
.else
PLIST_SUB=  BIN_JSON_PP="@comment "
.endif

pre-patch:
    @${MV} ${WRKSRC}/bin/json_pp ${WRKSRC}/bin/p5json_pp
    @${REINPLACE_CMD} -e 's|bin/json_pp|bin/p5json_pp|' ${WRKSRC}/MANIFEST ${WRKSRC}/Makefile.PL

post-install:
    @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL

.include <bsd.port.post.mk>