freebsd-ports/databases/py-psycopg2/Makefile
Martin Wilke c6eb725def - Update to 2.4.6
- Convert Header
2013-02-04 02:32:33 +00:00

43 lines
1.1 KiB
Makefile

# Created by: Martin Wilke <miwi@FreeBSD.org>
# $FreeBSD$
PORTNAME= psycopg2
PORTVERSION= 2.4.6
CATEGORIES= databases python
MASTER_SITES= http://initd.org/psycopg/tarballs/PSYCOPG-2-4/ \
CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= miwi@FreeBSD.org
COMMENT= The high performance Python adapter for PostgreSQL
USE_PGSQL= yes
# Python3 ready
USE_PYTHON= yes
USE_PYDISTUTILS= yes
DOCSDIR= ${PREFIX}/share/doc/py-psycopg2
EXAMPLESDIR= ${PREFIX}/share/examples/py-psycopg2
EXAMPLES= binary.py copy_from.py copy_to.py cursor.py dialtone.py \
dict.py dt.py encoding.py fetch.py lastrowid.py lobject.py \
mogrify.py myfirstrecipe.py notify.py simple.py somehackers.jpg \
threads.py typecast.py tz.py usercast.py whereareyou.jpg
DOCS= AUTHORS ChangeLog INSTALL README NEWS 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>