blob: 3a47c650a2fedbd27fc87c4c5cc75e46157c1242 (
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
|
# New ports collection makefile for: py-MySQLdb
# Date created: 04 April 2000
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= py-MySQLdb
PORTVERSION= 0.3.0b2
CATEGORIES= databases python
MASTER_SITES= http://dustman.net/andy/python/MySQLdb/0.3.0/
DISTNAME= MySQLdb-${PORTVERSION}
MAINTAINER= sobomax@FreeBSD.org
BUILD_DEPENDS= ${PYDISTUTILS}
LIB_DEPENDS= mysqlclient.6:${PORTSDIR}/databases/mysql322-client
WRKSRC= ${WRKDIR}/MySQLdb-${PORTVERSION}
USE_PYTHON= yes
SETUP_CMD= cd ${WRKSRC} && ${PYTHON_CMD} setup.py
do-configure:
@${PERL} -pi -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/setup.py
do-build:
${SETUP_CMD} build
do-install:
${SETUP_CMD} install
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/py-MySQLdb/examples
@${INSTALL_MAN} ${WRKSRC}/doc/* ${PREFIX}/share/doc/py-MySQLdb
@${INSTALL_MAN} \
${WRKSRC}/examples/* ${PREFIX}/share/doc/py-MySQLdb/examples
.endif
.include <bsd.port.mk>
|