2003-02-06 01:20:32 +01:00
|
|
|
# New ports collection makefile for: py-PySQLite
|
|
|
|
# Date created: 02 Oct 2002
|
|
|
|
# Whom: Gerhard Haering <gerhard.haering@gmx.de>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= PySQLite
|
2004-05-10 18:11:34 +02:00
|
|
|
PORTVERSION= 0.5.0
|
2003-02-06 01:20:32 +01:00
|
|
|
CATEGORIES= databases python
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= pysqlite
|
|
|
|
PKGNAMEPREFIX= py-
|
|
|
|
DISTNAME= pysqlite-${PORTVERSION}
|
|
|
|
|
2003-06-11 18:28:12 +02:00
|
|
|
MAINTAINER= gh@ghaering.de
|
2003-02-21 12:15:57 +01:00
|
|
|
COMMENT= A DB-API v2 Python library for the SQLite embedded SQL engine
|
2003-02-06 01:20:32 +01:00
|
|
|
|
|
|
|
RUN_DEPENDS= ${DATETIME_DEP}:${PORTSDIR}/lang/py-mx-base
|
|
|
|
LIB_DEPENDS= sqlite.2:${PORTSDIR}/databases/sqlite
|
|
|
|
|
2004-05-10 18:11:34 +02:00
|
|
|
WRKSRC= ${WRKDIR}/pysqlite
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
|
2003-02-06 01:20:32 +01:00
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_PYDISTUTILS= yes
|
|
|
|
|
|
|
|
DOCS= README
|
|
|
|
|
|
|
|
DATETIME_DEP= ${PYTHON_SITELIBDIR}/mx/DateTime/__init__.py
|
|
|
|
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for file in ${DOCS}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
|
|
|
.endfor
|
2004-05-10 18:11:34 +02:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${CP} ${WRKSRC}/examples/*.py ${EXAMPLESDIR}
|
2003-02-06 01:20:32 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|