blob: 96f7e380063c43f8621778a7f33db2c78617623a (
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
|
# New ports collection makefile for: p5-B-Deobfuscate
# Date created: 7 july 2003
# Whom: Mathieu Arnold <m@absolight.net>
#
# $FreeBSD$
#
PORTNAME= B-Deobfuscate
PORTVERSION= 0.09
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= B
PKGNAMEPREFIX= p5-
MAINTAINER= m@absolight.net
COMMENT= Extension to B::Deparse for use in de-obfuscating source code
RUN_DEPENDS= ${SITE_PERL}/YAML.pm:${PORTSDIR}/textproc/p5-YAML \
${SITE_PERL}/B/Keywords.pm:${PORTSDIR}/devel/p5-B-Keywords
BUILD_DEPENDS= ${RUN_DEPENDS}
PERL_CONFIGURE= yes
MAN3= B::Deobfuscate.3
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500600
post-patch:
@${PERL} -pi -e 's/^our (\$$VERSION)/use vars qw($$1); $$1/;' \
-e '$$_ = "" if /use warnings/;' \
-e 's/\[:digit:\]/0-9/g; s/\[:lower:\]/a-z/g;' \
-e 's/, \$$dict_file/. \$$dict_file/;' \
${WRKSRC}/lib/B/Deobfuscate.pm
.endif
.include <bsd.port.post.mk>
|