aboutsummaryrefslogtreecommitdiffstats
path: root/databases/py-PySQLite11/Makefile
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-02-06 08:20:32 +0800
committeredwin <edwin@FreeBSD.org>2003-02-06 08:20:32 +0800
commitfde0bd6f2732663d9b40f90f43e886a090c5991e (patch)
treefa2b7840b6eebb3709dfab8fec7a6df41bb28b74 /databases/py-PySQLite11/Makefile
parent9b9c4f8fcad047c2bccf5ec3f902cb14fb4fdbb5 (diff)
downloadfreebsd-ports-gnome-fde0bd6f2732663d9b40f90f43e886a090c5991e.tar.gz
freebsd-ports-gnome-fde0bd6f2732663d9b40f90f43e886a090c5991e.tar.zst
freebsd-ports-gnome-fde0bd6f2732663d9b40f90f43e886a090c5991e.zip
New port: databases/py-PySQLite
The goal of the PySQLite project is to develop a Python extension for SQLite that conforms to the Python Database API Specification 2.0. SQLite is a powerful embedded relational database management system in a compact C library. It offers support for a large subset of SQL92, multiple tables, indices, transactions and triggers. PR: ports/43571 Submitted by: Gerhard Häring <gerhard.haering@gmx.de>
Diffstat (limited to 'databases/py-PySQLite11/Makefile')
-rw-r--r--databases/py-PySQLite11/Makefile46
1 files changed, 46 insertions, 0 deletions
diff --git a/databases/py-PySQLite11/Makefile b/databases/py-PySQLite11/Makefile
new file mode 100644
index 000000000000..4dfef1b4d430
--- /dev/null
+++ b/databases/py-PySQLite11/Makefile
@@ -0,0 +1,46 @@
+# New ports collection makefile for: py-PySQLite
+# Date created: 02 Oct 2002
+# Whom: Gerhard Haering <gerhard.haering@gmx.de>
+#
+# $FreeBSD$
+#
+
+PORTNAME= PySQLite
+PORTVERSION= 0.3.0
+CATEGORIES= databases python
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= pysqlite
+PKGNAMEPREFIX= py-
+DISTNAME= pysqlite-${PORTVERSION}
+
+MAINTAINER= gerhard.haering@gmx.de
+
+RUN_DEPENDS= ${DATETIME_DEP}:${PORTSDIR}/lang/py-mx-base
+LIB_DEPENDS= sqlite.2:${PORTSDIR}/databases/sqlite
+
+WRKSRC= ${WRKDIR}/pysqlite-${PORTVERSION}
+USE_PYTHON= yes
+USE_REINPLACE= yes
+USE_PYDISTUTILS= yes
+
+DOCS= README
+
+PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S/^${LOCALBASE}\///g}
+
+DATETIME_DEP= ${PYTHON_SITELIBDIR}/mx/DateTime/__init__.py
+
+DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
+
+post-patch:
+ ${REINPLACE_CMD} -e 's^/usr/local/include/sqlite^${LOCALBASE}/include^g' ${WRKSRC}/setup.py
+ ${REINPLACE_CMD} -e 's^/usr/local/lib^${LOCALBASE}/lib^g' ${WRKSRC}/setup.py
+
+.if !defined(NOPORTDOCS)
+post-install:
+ @${MKDIR} ${DOCSDIR}
+.for file in ${DOCS}
+ @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+.endfor
+.endif
+
+.include <bsd.port.mk>