diff options
Diffstat (limited to 'time/py-mxDateTime/Makefile')
-rw-r--r-- | time/py-mxDateTime/Makefile | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/time/py-mxDateTime/Makefile b/time/py-mxDateTime/Makefile new file mode 100644 index 00000000000..08a8b1553f6 --- /dev/null +++ b/time/py-mxDateTime/Makefile @@ -0,0 +1,46 @@ +# $NetBSD: Makefile,v 1.1.1.1 2000/12/17 23:32:11 wiz Exp $ +# + +DISTNAME= mxDateTime-1.3.0 +PKGNAME= py-mxDateTime-1.3.0 +WRKSRC= ${WRKDIR}/DateTime +CATEGORIES= time +MASTER_SITES= http://starship.python.net/~lemburg/ +EXTRACT_SUFX= .zip + +MAINTAINER= packages@netbsd.org +HOMEPAGE= http://starship.python.net/~lemburg/mxDateTime.html + +BUILD_DEPENDS= unzip:../../archivers/unzip +DEPENDS+= python-2.0*:../../lang/python + +EXTRACT_CMD= unzip -Laqo ${DOWNLOADED_DISTFILE} + +RESTRICTED= No commercial distribution +NO_SRC_ON_CDROM= ${RESTRICTED} +NO_BIN_ON_CDROM= ${RESTRICTED} + +do-configure: + ( cd ${WRKSRC}/mxDateTime ; \ + make -f Makefile.pre.in boot ) + +do-build: + ( cd ${WRKSRC}/mxDateTime; make ) + ( cd ${WRKSRC}; python ${PREFIX}/lib/python2.0/compileall.py . ) + ( cd ${WRKSRC}; python -O ${PREFIX}/lib/python2.0/compileall.py . ) + +do-install: + @${INSTALL_SCRIPT_DIR} ${PREFIX}/lib/python2.0/site-packages + @${INSTALL_SCRIPT_DIR} ${PREFIX}/lib/python2.0/site-packages/DateTime + @${INSTALL_DATA} ${WRKSRC}/*.py* \ + ${PREFIX}/lib/python2.0/site-packages/DateTime + @${INSTALL_SCRIPT_DIR} \ + ${PREFIX}/lib/python2.0/site-packages/DateTime/mxDateTime + @${INSTALL_DATA} ${WRKSRC}/mxDateTime/*.so \ + ${WRKSRC}/mxDateTime/__init__.py* \ + ${PREFIX}/lib/python2.0/site-packages/DateTime/mxDateTime + @${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/py-mxDateTime + @${INSTALL_SCRIPT} ${WRKSRC}/Doc/*.html \ + ${PREFIX}/share/doc/html/py-mxDateTime/ + +.include "../../mk/bsd.pkg.mk" |