2003-02-06 00:20:32 +00:00
|
|
|
# New ports collection makefile for: py-PySQLite
|
|
|
|
# Date created: 02 Oct 2002
|
|
|
|
# Whom: Gerhard Haering <gerhard.haering@gmx.de>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2006-01-27 21:16:04 +00:00
|
|
|
PORTNAME= PySQLite
|
2006-02-10 14:33:04 +00:00
|
|
|
PORTVERSION= 1.1.7
|
2006-01-27 21:16:04 +00:00
|
|
|
CATEGORIES= databases python
|
2006-02-10 14:33:04 +00:00
|
|
|
MASTER_SITES= http://initd.org/pub/software/pysqlite/releases/${PORTVERSION:C/\.[0-9]$//}/${PORTVERSION}/
|
2006-01-27 21:16:04 +00:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
DISTNAME= pysqlite-${PORTVERSION}
|
2003-02-06 00:20:32 +00:00
|
|
|
|
2006-01-27 21:16:04 +00:00
|
|
|
MAINTAINER= mnag@FreeBSD.org
|
|
|
|
COMMENT= A DB-API v2 Python library for the SQLite 3 embedded SQL engine
|
2003-02-06 00:20:32 +00:00
|
|
|
|
2006-01-27 21:16:04 +00:00
|
|
|
LIB_DEPENDS= sqlite3.8:${PORTSDIR}/databases/sqlite3
|
2003-02-06 00:20:32 +00:00
|
|
|
|
2006-01-27 21:16:04 +00:00
|
|
|
CONFLICTS= py*-PySQLite-1.0*
|
2005-04-10 09:48:07 +00:00
|
|
|
|
2006-01-27 21:16:04 +00:00
|
|
|
NO_LATEST_LINK= yes
|
2003-02-06 00:20:32 +00:00
|
|
|
|
2006-01-27 21:16:04 +00:00
|
|
|
WRKSRC= ${WRKDIR}/pysqlite
|
|
|
|
USE_PYTHON= yes
|
2005-03-13 23:25:19 +00:00
|
|
|
USE_PYDISTUTILS= yes
|
2006-01-27 21:16:04 +00:00
|
|
|
MAKE_ENV= LOCALBASE="${LOCALBASE}"
|
2003-02-06 00:20:32 +00:00
|
|
|
|
2006-01-27 21:16:04 +00:00
|
|
|
PORTDOCS= *
|
2005-10-18 13:35:47 +00:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|"freebsd5",|"freebsd5", "freebsd6", "freebsd7",|' \
|
|
|
|
${WRKSRC}/setup.py
|
2005-03-13 23:25:19 +00:00
|
|
|
|
2003-02-06 00:20:32 +00:00
|
|
|
post-install:
|
2005-03-13 23:25:19 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2003-02-06 00:20:32 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2005-03-13 23:25:19 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/rest/manual.txt ${DOCSDIR}
|
2004-05-10 16:11:34 +00:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
2005-03-13 23:25:19 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/examples/*.py ${EXAMPLESDIR}
|
2003-02-06 00:20:32 +00:00
|
|
|
.endif
|
2005-08-28 18:39:54 +00:00
|
|
|
# fix lib shared permission
|
|
|
|
@${CHMOD} ${BINMODE} ${PYTHON_SITELIBDIR}/_sqlite.so
|
2003-02-06 00:20:32 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|