aboutsummaryrefslogtreecommitdiff
path: root/lang/eperl/Makefile
diff options
context:
space:
mode:
authorGreg Larkin <glarkin@FreeBSD.org>2011-05-18 20:24:24 +0000
committerGreg Larkin <glarkin@FreeBSD.org>2011-05-18 20:24:24 +0000
commit8713aeb15ac6a4782f0bfb582c6efc9372c632d8 (patch)
tree142534c1f930648dc55fdce24f3f91ccb4a2f30c /lang/eperl/Makefile
parentbf364dd2f00a8b47108d1950ae26cc5b25fd1667 (diff)
downloadports-8713aeb15ac6a4782f0bfb582c6efc9372c632d8.tar.gz
ports-8713aeb15ac6a4782f0bfb582c6efc9372c632d8.zip
Notes
Diffstat (limited to 'lang/eperl/Makefile')
-rw-r--r--lang/eperl/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/lang/eperl/Makefile b/lang/eperl/Makefile
index 5f856b2c3e59..4580dd3b0d79 100644
--- a/lang/eperl/Makefile
+++ b/lang/eperl/Makefile
@@ -7,7 +7,7 @@
PORTNAME= eperl
PORTVERSION= 2.2.14
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= lang www perl5
MASTER_SITES= ${MASTER_SITE_OSSP}
MASTER_SITE_SUBDIR= tool/${PORTNAME}
@@ -15,8 +15,6 @@ MASTER_SITE_SUBDIR= tool/${PORTNAME}
MAINTAINER= glarkin@FreeBSD.org
COMMENT= Embedded Perl 5 Language
-BROKEN= does not configure
-
# User-controlled variables list
# INSTALL_ALSO_AS_SSSL
# install ePerl also as a Server-Side
@@ -48,6 +46,11 @@ BROKEN= Does not compile on sparc64: duplicate definition of strndup
.endif
.endif
+# Perl 5.14 changed some symbol names
+.if ${PERL_LEVEL} >= 501400
+EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-eperl_perl5.c
+.endif
+
test:
@(cd ${WRKSRC}; ${MAKE} test)
@@ -55,6 +58,8 @@ post-patch:
@${FIND} ${WRKSRC} -type f -name "*.[ch]" | \
${XARGS} ${GREP} -l strnstr | \
${XARGS} ${PERL} -pi -e 's|strnstr|ePerl_strnstr|g'
+ @${REINPLACE_CMD} -e 's#%%PERL_VERSION%%#${PERL_VERSION}#g' \
+ ${WRKSRC}/configure
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/eperl ${PREFIX}/bin/eperl