aboutsummaryrefslogtreecommitdiffstats
path: root/devel/p5-Locale-Maketext-Lexicon/Makefile
blob: 833f79f96c2dd7e6b494209660a8a90ced47a866 (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
43
44
45
46
47
48
49
50
51
52
53
# New ports collection makefile for:    p5-Locale-Maketext-Lexicon
# Date created:             February 23, 2003
# Whom:                 Mathieu Arnold <m@absolight.net>
#
# $FreeBSD$
#

PORTNAME=   Locale-Maketext-Lexicon
PORTVERSION=    0.62
CATEGORIES= devel perl5
MASTER_SITES=   ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Locale
PKGNAMEPREFIX=  p5-

MAINTAINER= mat@FreeBSD.org
COMMENT=    Use other catalog formats in Locale::Maketext

BUILD_DEPENDS=  ${SITE_PERL}/Regexp/Common.pm:${PORTSDIR}/textproc/p5-Regexp-Common \
        ${SITE_PERL}/Pod/Usage.pm:${PORTSDIR}/textproc/p5-Pod-Parser \
        ${SITE_PERL}/Locale/Maketext.pm:${PORTSDIR}/devel/p5-Locale-Maketext
RUN_DEPENDS=    ${BUILD_DEPENDS}

PERL_CONFIGURE= YES

MAN3=       Locale::Maketext::Extract.3 \
        Locale::Maketext::Extract::Run.3 \
        Locale::Maketext::Lexicon::Auto.3 \
        Locale::Maketext::Lexicon::Gettext.3 \
        Locale::Maketext::Lexicon::Msgcat.3 \
        Locale::Maketext::Lexicon::Tie.3 \
        Locale::Maketext::Lexicon.3

MAN1=       xgettext.pl.1

.if !defined(NOPORTDOCS)
PORTDOCS=   AUTHORS Changes README

post-install:
    @${MKDIR} ${DOCSDIR}
    @${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
    @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
.endif

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 500600
post-patch:
    @${PERL} -pi -e '$$_ = "" if /no warnings/;' \
        -e 's/^our (\S+);/use vars qw{$$1};/;' \
        ${WRKSRC}/lib/Locale/Maketext/Lexicon.pm
.endif

.include <bsd.port.post.mk>