blob: 6b142d1c29ec7f5fb379234b258933a00af8655c (
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
47
|
# $NetBSD: Makefile,v 1.8 2000/08/19 20:59:58 hubertf Exp $
DISTNAME= PyGreSQL-3.0
PKGNAME= py-postgresql-3.0
CATEGORIES= databases
MASTER_SITES= ftp://ftp.druid.net/pub/distrib/
EXTRACT_SUFX= .tgz
MAINTAINER= darcy@NetBSD.org
HOMEPAGE= http://www.druid.net/pygresql/
DEPENDS+= python-1.5.2:../../lang/python
DEPENDS+= postgresql-7.*:../../databases/postgresql
DEPENDS+= py-mxDateTime-1.3.0:../../misc/py-mxDateTime
ALL_TARGET= default
PYTHON= ${LOCALBASE}/bin/python
PYTHON_LIBDIR= ${LOCALBASE}/lib/python1.5
PLIST_SUBST+= PYTHON_LIBDIR=lib/python1.5
.include "../../mk/bsd.prefs.mk"
PGUSER?= pgsql
do-configure:
${SED} -e "s,@LOCALBASE@,${LOCALBASE},g" \
${FILESDIR}/Setup.in > ${WRKSRC}/Setup.in
${CP} ${PYTHON_LIBDIR}/config/Makefile.pre.in ${WRKSRC}
cd ${WRKSRC}; ${MAKE} -f Makefile.pre.in boot
post-build:
cd ${WRKSRC}; ${PYTHON} ${PYTHON_LIBDIR}/compileall.py .
cd ${WRKSRC}; ${PYTHON} -O ${PYTHON_LIBDIR}/compileall.py .
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/*.py ${WRKSRC}/*.py[co] \
${PYTHON_LIBDIR}/site-packages
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-postgresql/tutorial
${INSTALL_DATA} ${WRKSRC}/README \
${PREFIX}/share/doc/py-postgresql
for file in ${WRKSRC}/tutorial/*.py; do \
${INSTALL_DATA} $${file} \
${PREFIX}/share/doc/py-postgresql/tutorial; \
done
.include "../../mk/bsd.pkg.mk"
|