blob: 066d5f767fd58924c36b32545e5953b17a932a2f (
plain) (
blame)
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
48
49
50
51
52
53
54
55
56
57
58
59
|
# New ports collection makefile for: py-psycopg2
# Date created: 1 August 2006
# Whom: Martin Wilke <miwi@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= psycopg2
PORTVERSION= 2.0.4
CATEGORIES= databases python
MASTER_SITES= http://initd.org/pub/software/psycopg/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= psycopg2-${PORTVERSION}
MAINTAINER= miwi@FreeBSD.org
COMMENT= The high performance Python adapter for PostgreSQL
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/mx/DateTime:${PORTSDIR}/lang/py-mx-base
USE_PGSQL= yes
USE_GMAKE= yes
USE_PYTHON= yes
USE_PYDISTUTILS= yes
.include <bsd.port.pre.mk>
do-build:
@(cd ${WRKSRC}; ${PYTHON_CMD} setup.py build)
do-install:
@(cd ${WRKSRC}; ${PYTHON_CMD} setup.py install)
.if ${OSVERSION} < 500000
BROKEN= Does not compile on 4.x
.endif
DOCSDIR= ${TARGETDIR}/share/doc/py-psycopg2
EXAMPLESDIR= ${TARGETDIR}/share/examples/py-psycopg2
EXAMPLES= binary.py cursor.py dt.py lastrowid.py notify.py threads.py \
whereareyou.jpg copy_from.py dialtone.py encoding.py \
mogrify.py simple.py tz.py copy_to.py dict.py fetch.py \
myfirstrecipe.py somehackers.jpg usercast.py
DOCS= AUTHORS ChangeLog INSTALL README PKG-INFO
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${EXAMPLESDIR}
.for f in ${EXAMPLES}
@${INSTALL_DATA} ${WRKSRC}/examples/${f} ${EXAMPLESDIR}
.endfor
@${MKDIR} ${DOCSDIR}
.for f in ${DOCS}
@${INSTALL_MAN} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>
|