Replace broken '.if ${MODPY_MAJOR} == "2"' with an .if ${...:M} construct,

puzzled through by aja@, rpointel@ and myself. ok rpointel@. No package
change -> no bump.
This commit is contained in:
sthen 2011-05-30 21:42:52 +00:00
parent ea37821819
commit c53fd27ee7

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.33 2011/05/30 08:07:05 sthen Exp $
# $OpenBSD: Makefile,v 1.34 2011/05/30 21:42:52 sthen Exp $
SHARED_ONLY= Yes
@ -83,10 +83,10 @@ MODPY_MAJOR=${MODPY_VERSION:C/\..*//}
# installed and they're selected at runtime. this breaks bytecode
# compilation for package generation, so just rm the wrong files.
pre-configure:
.if ${MODPY_MAJOR} == "2"
.if ${MODPY_MAJOR:M3}
rm -r ${WRKSRC}/pyuic/uic/port_v2
.else
rm -rf ${WRKSRC}/pyuic/uic/port_v3
rm -r ${WRKSRC}/pyuic/uic/port_v3
.endif
post-install: