PERFORCE change 124844 for review

Gabor Kovesdan gabor at FreeBSD.org
Tue Aug 7 11:54:20 PDT 2007


http://perforce.freebsd.org/chv.cgi?CH=124844

Change 124844 by gabor at gabor_server on 2007/08/07 18:53:54

	- Be bit more precise about USE_PERL5 syntax

Affected files ...

.. //depot/projects/soc2007/gabor_perlmk/Mk/bsd.perl.mk#8 edit

Differences ...

==== //depot/projects/soc2007/gabor_perlmk/Mk/bsd.perl.mk#8 (text+ko) ====

@@ -48,13 +48,23 @@
 __prefix=${USE_PERL5:C/[^[:digit:].]+$//}
 __suffix=${USE_PERL5:C/^[0-9.]+//}
 
-.if ${__suffix} == "+" && ${__prefix} < ${PERL_LEVEL}
+.if ${__suffix} == "+"
+.if ${__prefix} < ${PERL_LEVEL}
 IGNORE= You need Perl ${__prefix} or newer, please install latest lang/perl5.8
-.elif ${__suffix} == "" && ${__prefix} != ${PERL_LEVEL}
+.endif
+.elif ${__suffix} == ""
+.if ${__prefix} != ${PERL_LEVEL}
 IGNORE= You need Perl ${__prefix} exectly
-.elif ${__suffix} == "-" && ${__prefix} > ${PERL_LEVEL}
+.endif
+.elif ${__suffix} == "-"
+.if ${__prefix} > ${PERL_LEVEL}
 IGNORE= You need Perl ${__prefix} or earlier
 .endif
+.else
+.BEGIN:
+	@${ECHO_MSG} "${PKGNAME}: Makefile error: inproper use of USE_PERL5"
+	@${FALSE}
+.endif
 .endif #defined(USE_PERL5) && ${USE_PERL5} != "yes"
 
 SITE_PERL_REL?=	lib/perl5/site_perl/${PERL_VER}


More information about the p4-projects mailing list