blob: 52f8b47478b0ebfc1a840787ec542530939e0253 (
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
|
# New ports collection makefile for: Class-C3
# Date created: 1 Dec 2005
# Whom: Lars Balker Rasmussen <lbr@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= Class-C3
PORTVERSION= 0.19
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Class
PKGNAMEPREFIX= p5-
MAINTAINER= lbr@FreeBSD.org
COMMENT= A pragma to use the C3 method resolution order algorithm
OPTIONS= XS "XS speed optimizations" off
.include <bsd.port.pre.mk>
.ifdef(WITH_XS)
RUN_DEPENDS= p5-Class-C3-XS>=0.07:${PORTSDIR}/devel/p5-Class-C3-XS
.else
RUN_DEPENDS= p5-Algorithm-C3>=0.06:${PORTSDIR}/devel/p5-Algorithm-C3
.endif
BUILD_DEPENDS= ${RUN_DEPENDS}
PERL_CONFIGURE= yes
MAN3= Class::C3.3 \
Class::C3::next.3
post-extract:
@${PERL} -i.bak -ne 'print unless m,^if, .. m,}$$,' ${WRKSRC}/Makefile.PL
.if ${PERL_LEVEL} < 500800 # Inherited from devel/p5-Algorithm-C3
IGNORE= requires perl 5.8.x or later, install lang/perl5.8
.endif
.include <bsd.port.post.mk>
|