2001-10-06 21:19:40 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.8 2001/10/07 01:19:40 naddy Exp $
|
2001-04-18 13:47:05 -04:00
|
|
|
|
2001-06-03 01:19:00 -04:00
|
|
|
COMMENT= "python interface to MySQL"
|
2001-04-18 13:47:05 -04:00
|
|
|
|
2001-09-12 02:05:14 -04:00
|
|
|
VERSION= 0.9.1c1
|
2001-04-18 13:47:05 -04:00
|
|
|
DISTNAME= MySQL-python-${VERSION}
|
|
|
|
PKGNAME= py-mysql-${VERSION}
|
|
|
|
CATEGORIES= databases
|
2001-09-12 02:05:14 -04:00
|
|
|
NEED_VERSION= 1.454
|
2001-08-12 15:02:07 -04:00
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= mysql-python
|
|
|
|
|
2001-04-18 13:47:05 -04:00
|
|
|
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
|
|
|
|
|
2001-06-03 01:19:00 -04:00
|
|
|
LIB_DEPENDS= mysqlclient.10:mysql-client-3.23.*:databases/mysql
|
2001-04-18 13:47:05 -04:00
|
|
|
|
2001-08-12 15:02:07 -04:00
|
|
|
PYTHON_VER= 2.1
|
|
|
|
|
2001-08-25 09:08:33 -04:00
|
|
|
RUN_DEPENDS+= python${PYTHON_VER}::lang/python
|
2001-08-12 15:02:07 -04:00
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
|
|
|
|
|
|
|
SUBST_VARS= PYTHON_VER
|
|
|
|
|
2001-09-12 02:05:14 -04:00
|
|
|
PY_CMD= @cd ${WRKSRC}; python${PYTHON_VER} ./setup.py
|
|
|
|
|
2001-08-12 15:02:07 -04:00
|
|
|
DOC_DIR= ${PREFIX}/share/doc/MySQL-python
|
2001-04-18 13:47:05 -04:00
|
|
|
|
2001-10-06 21:19:40 -04:00
|
|
|
do-configure:
|
|
|
|
@perl -i -pe 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/setup.py
|
|
|
|
|
2001-04-18 13:47:05 -04:00
|
|
|
do-build:
|
2001-09-12 02:05:14 -04:00
|
|
|
${PY_CMD} build --build-base="${WRKSRC}"
|
2001-04-18 13:47:05 -04:00
|
|
|
|
|
|
|
do-install:
|
2001-09-12 02:05:14 -04:00
|
|
|
${PY_CMD} install --prefix="${PREFIX}"
|
2001-04-18 13:47:05 -04:00
|
|
|
${INSTALL_DATA_DIR} ${DOC_DIR}
|
2001-08-12 15:02:07 -04:00
|
|
|
${INSTALL_SCRIPT} ${WRKBUILD}/doc/*.html ${DOC_DIR}/
|
|
|
|
|
2001-04-18 13:47:05 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|