aboutsummaryrefslogtreecommitdiffstats
path: root/devel/p5-Locale-Maketext-Lexicon/Makefile
blob: 97d06dc0eb078018553d30f3afb392c46a4c53d0 (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
# 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.44
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-PodParser \
        ${SITE_PERL}/Locale/Maketext.pm:${PORTSDIR}/devel/p5-Locale-Maketext
RUN_DEPENDS=    ${BUILD_DEPENDS}

PERL_CONFIGURE= YES

MAN3=       Locale::Maketext::Extract.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

.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>