aboutsummaryrefslogtreecommitdiff
path: root/math/p5-Math-SimpleVariable/Makefile
blob: a1b1bb28b3e667362d9be6b18efe29fc5f1deb3e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
PORTNAME=	Math-SimpleVariable
PORTVERSION=	0.03
PORTREVISION=	2
CATEGORIES=	math perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-

MAINTAINER=	perl@FreeBSD.org
COMMENT=	Simple representation of mathematical variables
WWW=		https://metacpan.org/release/Math-SimpleVariable

USES=		perl5
USE_PERL5=	configure patch

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>