openbsd-ports/databases/py-mysql/Makefile
shell 9aa8a51184 Import py-mysql-0.3.5
Python interface to MySQL-3.22 and 3.23

MySQLdb is an interface to the popular MySQL database server for
Python.  The design goals are:

-     Compliance with Python database API version 2.0
-     Thread-safety
-     Thread-friendliness (threads will not block each other)
-     Compatibility with MySQL 3.22 and 3.23
2001-04-18 17:47:05 +00:00

43 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2001/04/18 17:47:05 shell Exp $
COMMENT= 'python interface to MySQL'
VERSION= 0.3.5
DISTNAME= MySQL-python-${VERSION}
PKGNAME= py-mysql-${VERSION}
CATEGORIES= databases
NEED_VERSION= 1.399
MASTER_SITES= http://dustman.net/andy/python/MySQLdb/${VERSION}/
HOMEPAGE= http://dustman.net/andy/python/MySQLdb/
MAINTAINER= Shell Hung <shell@openbsd.org>
PERMIT_PACKAGE_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
BUILD_DEPENDS= python2.0::lang/python
LIB_DEPENDS= mysqlclient::databases/mysql
NO_CONFIGURE= Yes
DOC_DIR= ${PREFIX}/share/examples/MySQL-python
DOC_SCRIPTS= dbtrainer0 dbtrainer1 dbtrainer2 dbtrainer3 \
dbtrainer4
DOC_FILES= README test.sql
do-build:
cd ${WRKSRC}; python ./setup.py build --build-base=${WRKSRC}
do-install:
cd ${WRKSRC}; python ./setup.py install --prefix=${PREFIX}
${INSTALL_DATA_DIR} ${DOC_DIR}
.for i in ${DOC_SCRIPTS}
${INSTALL_SCRIPT} ${WRKBUILD}/examples/$i ${DOC_DIR}/$i
.endfor
.for i in ${DOC_FILES}
${INSTALL_DATA} ${WRKBUILD}/examples/$i ${DOC_DIR}/$i
.endfor
.include <bsd.port.mk>