summaryrefslogtreecommitdiff
path: root/time/py-mxDateTime/Makefile
blob: afc9e9325b33c85b13f4f60ebebcee25b8eb6310 (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
# $NetBSD: Makefile,v 1.9 2002/02/25 04:47:23 jlam Exp $
#

DISTNAME=	mxDateTime-1.3.0
PKGNAME=	${PYPKGPREFIX}-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

RESTRICTED=	No commercial distribution
NO_SRC_ON_CDROM=	${RESTRICTED}
NO_BIN_ON_CDROM=	${RESTRICTED}

PYTHON_VERSIONS_ACCEPTED=	20 21 # 22 doesn't work
USE_PYPKGPREFIX=	yes
PY_PATCHPLIST=		yes

do-configure:
	( cd ${WRKSRC}/mxDateTime; ${MAKE_PROGRAM} -f Makefile.pre.in boot PYTHONBIN=${PYTHONBIN})

do-build:
	( cd ${WRKSRC}/mxDateTime; ${MAKE_PROGRAM} )
	( cd ${WRKSRC}; ${PYTHONBIN} ${PREFIX}/${PYLIB}/compileall.py . )
	( cd ${WRKSRC}; ${PYTHONBIN} -O ${PREFIX}/${PYLIB}/compileall.py . )

do-install:
	@${INSTALL_SCRIPT_DIR} ${PREFIX}/${PYSITELIB}/DateTime
	${INSTALL_DATA} ${WRKSRC}/*.py* \
		${PREFIX}/${PYSITELIB}/DateTime
	${INSTALL_SCRIPT_DIR} \
		${PREFIX}/${PYSITELIB}/DateTime/mxDateTime
	${INSTALL_DATA} ${WRKSRC}/mxDateTime/*.so \
		${WRKSRC}/mxDateTime/__init__.py* \
		 ${PREFIX}/${PYSITELIB}/DateTime/mxDateTime

.include "../../lang/python/extension.buildlink.mk"
.include "../../mk/bsd.pkg.mk"