1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/net/py-google/Makefile
Hye-Shik Chang 636aac512e Update to 0.6
PR:		79671
Submitted by:	ijliao
2005-04-11 14:26:23 +00:00

51 lines
1.2 KiB
Makefile

# New ports collection makefile for: py-google
# Date created: 22 April 2002
# Whom: Hye-Shik Chang <perky@fallin.lv>
#
# $FreeBSD$
#
PORTNAME= google
PORTVERSION= 0.6
CATEGORIES= net python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pygoogle
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= pygoogle-${PORTVERSION}
MAINTAINER= perky@FreeBSD.org
COMMENT= Python wrapper for the Google web API
RUN_DEPENDS= ${PYXML}
USE_PYTHON= yes
USE_PYDISTUTILS= yes
USE_REINPLACE= yes
.if !defined(NOPORTDOCS)
PORTDOCS= *
DOCSDIR= ${PREFIX}/share/doc/py-google
EXAMPLESDIR= ${PREFIX}/share/examples/py-google
.endif
post-patch:
# www/py-websvcs has an incompatible version of SOAP.py
@${MV} ${WRKSRC}/SOAP.py ${WRKSRC}/SOAPgoogle.py
@cd ${WRKSRC}; for f in *.py; do \
${REINPLACE_CMD} -e 's,import SOAP,import SOAPgoogle as SOAP,g' $$f; \
done
@${MKDIR} ${WRKSRC}/tests
@${MV} ${WRKSRC}/*test*.py ${WRKSRC}/tests
@${REINPLACE_CMD} -e 's,.*extra_path.*,,g' ${WRKSRC}/setup.py
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_SCRIPT} ${WRKSRC}/tests/*.py ${EXAMPLESDIR}
@${MKDIR} ${DOCSDIR}
@${CP} -R ${WRKSRC}/doc/ ${DOCSDIR}
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>