summaryrefslogtreecommitdiff
path: root/misc/py-mxDateTime/Makefile
blob: 317b4853df2de4f2a5dacbbaf15766e97e5c0dc7 (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
# $NetBSD: Makefile,v 1.2 1999/09/22 19:21:52 hubertf Exp $

DISTNAME=	mxDateTime-1.3.0
PKGNAME=	py-mxDateTime-1.3.0
WRKSRC=         ${WRKDIR}/DateTime
CATEGORIES=	misc
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-1.5.2:../../lang/python

EXTRACT_CMD=	unzip -Laqo ${DOWNLOADED_DISTFILE}

NO_CDROM=	No commerciao distribution

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

do-build:
	( cd ${WRKSRC}/mxDateTime; make  )
	( cd ${WRKSRC}; python ${PREFIX}/lib/python1.5/compileall.py . )
	( cd ${WRKSRC}; python -O ${PREFIX}/lib/python1.5/compileall.py . )

do-install:
	@${INSTALL_SCRIPT_DIR} ${PREFIX}/lib/python1.5/site-packages
	@${INSTALL_SCRIPT_DIR} ${PREFIX}/lib/python1.5/site-packages/DateTime
	@${INSTALL_DATA} ${WRKSRC}/*.py* \
		${PREFIX}/lib/python1.5/site-packages/DateTime
	@${INSTALL_SCRIPT_DIR} \
		${PREFIX}/lib/python1.5/site-packages/DateTime/mxDateTime
	@${INSTALL_DATA} ${WRKSRC}/mxDateTime/*.so \
		${WRKSRC}/mxDateTime/__init__.py* \
		 ${PREFIX}/lib/python1.5/site-packages/DateTime/mxDateTime
	@${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-mxDateTime
	@${INSTALL_SCRIPT} ${WRKSRC}/Doc/*.html \
		${PREFIX}/share/doc/py-mxDateTime/

.include "../../mk/bsd.pkg.mk"