diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-02-06 00:20:32 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-02-06 00:20:32 +0000 |
commit | 7d239c3de35c97bd3ea63bbce308c63f4eb2e1b6 (patch) | |
tree | 09edce8a0f6dfe576de48d5d202c48ac1a56ea45 /databases/py-pysqlite22/Makefile | |
parent | ec5aae7ae6b5cd608f44cc31d5ac2ced39c276fa (diff) |
Notes
Diffstat (limited to 'databases/py-pysqlite22/Makefile')
-rw-r--r-- | databases/py-pysqlite22/Makefile | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/databases/py-pysqlite22/Makefile b/databases/py-pysqlite22/Makefile new file mode 100644 index 000000000000..4dfef1b4d430 --- /dev/null +++ b/databases/py-pysqlite22/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> |