aboutsummaryrefslogtreecommitdiffstats
path: root/math/p5-Math-SimpleVariable/Makefile
blob: 398736431e9b8af6909d019a3ebdfef3c9bde0a8 (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
# New ports collection makefile for:    Math::SimpleVariable
# Date created:     5 Nov 2001
# Whom:         Sergey Skvortsov <skv@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   Math-SimpleVariable
PORTVERSION=    0.03
CATEGORIES= math perl5
MASTER_SITES=   ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Math
PKGNAMEPREFIX=  p5-

MAINTAINER= skv@FreeBSD.org
COMMENT=    Simple representation of mathematical variables

BUILD_DEPENDS=  ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/fields.pm:${PORTSDIR}/devel/p5-Class-Fields
RUN_DEPENDS=    ${BUILD_DEPENDS}

PERL_CONFIGURE= yes

MANPREFIX=  ${PREFIX}/lib/perl5/${PERL_VERSION}
MAN3=       Math::SimpleVariable.3

pre-patch:
    @${FIND} ${WRKSRC} -name "*.pm" | xargs ${PERL} -pi -e \
        '$$package=$$1 if /^package\s+([^\s;]*);/; s!^require 5.005_62;!!; s!^use warnings;!!; s!^our\s+(\$$)(VERSION)\s+=!$$1$${package}::$$2=!;'

.include <bsd.port.mk>