mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-07 02:06:57 +00:00
1995c66e00
- Respect NOPORTEXAMPLES - Drop FreeBSD 4.X gruft
58 lines
1.4 KiB
Makefile
58 lines
1.4 KiB
Makefile
# New ports collection makefile for: py-psycopg2
|
|
# Date created: 1 August 2006
|
|
# Whom: Martin Wilke <miwi@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= psycopg2
|
|
PORTVERSION= 2.0.6
|
|
CATEGORIES= databases python
|
|
MASTER_SITES= http://initd.org/pub/software/psycopg/ \
|
|
${MASTER_SITE_LOCAL}
|
|
MASTER_SITE_SUBDIR= miwi
|
|
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= 2.4+
|
|
USE_PYDISTUTILS= yes
|
|
|
|
do-build:
|
|
@(cd ${WRKSRC}; ${PYTHON_CMD} setup.py build)
|
|
|
|
do-install:
|
|
@(cd ${WRKSRC}; ${PYTHON_CMD} setup.py install)
|
|
|
|
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(NOPORTEXAMPLES)
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
.for f in ${EXAMPLES}
|
|
@${INSTALL_DATA} ${WRKSRC}/examples/${f} ${EXAMPLESDIR}
|
|
.endfor
|
|
.endif
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for f in ${DOCS}
|
|
@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|