summaryrefslogtreecommitdiffstats
path: root/net/py-google
diff options
context:
space:
mode:
authorpat <pat@FreeBSD.org>2002-05-23 00:32:04 +0000
committerpat <pat@FreeBSD.org>2002-05-23 00:32:04 +0000
commitccf69d9370f1b396c50c57421c2d6633769fc944 (patch)
tree37fc7529631cbcd2c3a85c29acc1e32a3a3b58e7 /net/py-google
parentd4a41cc316fff92f393d9f66a4121809b2ecbb51 (diff)
downloadFreeBSD-ports-ccf69d9370f1b396c50c57421c2d6633769fc944.zip
FreeBSD-ports-ccf69d9370f1b396c50c57421c2d6633769fc944.tar.gz
Fix ports for building with -current without perl
PR: 38359 Submitted by: maintainer
Diffstat (limited to 'net/py-google')
-rw-r--r--net/py-google/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/net/py-google/Makefile b/net/py-google/Makefile
index 5c2116e..cf9e7a7 100644
--- a/net/py-google/Makefile
+++ b/net/py-google/Makefile
@@ -24,15 +24,24 @@ EXTRACT_BEFORE_ARGS= -q -aa
WRKSRC= ${WRKDIR}/pygoogle
EXAMPLESDIR= ${PREFIX}/share/examples/py-google
+.include <bsd.port.pre.mk>
+
post-patch:
# www/py-websvcs has an incompatible version of SOAP.py
@${MV} ${WRKSRC}/SOAP.py ${WRKSRC}/SOAPgoogle.py
+.if ${OSVERSION} < 500036
@cd ${WRKSRC}; for f in *.py; do \
${PERL} -pi -e 's,import SOAP,import SOAPgoogle as SOAP,g' $$f; \
done
+ @${PERL} -pi -e 's,.*extra_path.*,,g' ${WRKSRC}/setup.py
+.else
+ @cd ${WRKSRC}; for f in *.py; do \
+ ${SED} -i "" -e 's,import SOAP,import SOAPgoogle as SOAP,g' $$f; \
+ done
+ @${SED} -i.orig -e 's,.*extra_path.*,,g' ${WRKSRC}/setup.py
+.endif
@${MKDIR} ${WRKSRC}/tests
@${MV} ${WRKSRC}/*test*.py ${WRKSRC}/tests
- @${PERL} -pi -e 's,.*extra_path.*,,g' ${WRKSRC}/setup.py
post-install:
.if !defined(NOPORTDOCS)
@@ -41,4 +50,4 @@ post-install:
.endif
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud