blob: 318fc6623420edc7a57a5cc150bd06fcd65338db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# $NetBSD: Makefile,v 1.3 2001/02/17 17:32:08 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
COMMENT= Python extension that provides new types and conversions for dates
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_PROGRAM} -f Makefile.pre.in boot )
do-build:
( cd ${WRKSRC}/mxDateTime; ${MAKE_PROGRAM} )
( 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"
|