2007-10-08 04:22:38 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.8 2007/10/08 08:22:39 steven Exp $
|
2005-05-22 05:37:25 -04:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
|
2007-09-10 07:02:47 -04:00
|
|
|
COMMENT= SQLite3 adapter for Python
|
2005-05-22 05:37:25 -04:00
|
|
|
|
2007-09-10 07:02:47 -04:00
|
|
|
DISTNAME= pysqlite-2.3.5
|
2007-10-08 04:22:38 -04:00
|
|
|
PKGNAME= ${DISTNAME:S/^pysqlite/py-sqlite2/}p0
|
2005-05-22 05:37:25 -04:00
|
|
|
CATEGORIES= databases devel
|
|
|
|
|
2007-09-10 07:02:47 -04:00
|
|
|
MAINTAINER= Eric Faurot <eric@openbsd.org>
|
2006-05-25 09:39:08 -04:00
|
|
|
|
2007-09-10 07:02:47 -04:00
|
|
|
MASTER_SITES= http://initd.org/pub/software/pysqlite/releases/2.3/2.3.5/
|
2005-05-22 05:37:25 -04:00
|
|
|
HOMEPAGE= http://pysqlite.org/
|
|
|
|
|
|
|
|
# BSD-like
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
|
2006-08-01 18:19:46 -04:00
|
|
|
LIB_DEPENDS= sqlite3.>=8.6::databases/sqlite3
|
2007-03-31 17:52:02 -04:00
|
|
|
REGRESS_DEPENDS= :python-bz2-*:lang/python/${MODPY_VERSION},-bz2
|
2005-05-22 05:37:25 -04:00
|
|
|
|
|
|
|
MODULES= lang/python
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
cd ${WRKSRC} && \
|
|
|
|
sed "s|/usr/local|${LOCALBASE}|" setup.cfg | \
|
2007-03-31 17:52:02 -04:00
|
|
|
sed "s|^\(include_dirs\)=.*|\1=${LOCALBASE}/include/|" | \
|
|
|
|
sed "s|^\(library_dirs\)=.*|\1=${LOCALBASE}/lib/|" > setup.cfg_
|
2005-05-22 05:37:25 -04:00
|
|
|
mv ${WRKSRC}/setup.cfg_ ${WRKSRC}/setup.cfg
|
|
|
|
|
|
|
|
do-regress: fake
|
2006-05-25 09:39:08 -04:00
|
|
|
@cd ${WRKSRC}/pysqlite2/test && \
|
|
|
|
${SETENV} PYTHONPATH=${WRKINST}${MODPY_SITEPKG} \
|
2007-03-31 17:52:02 -04:00
|
|
|
${MODPY_BIN} ./regression.py && \
|
|
|
|
${SETENV} PYTHONPATH=${WRKINST}${MODPY_SITEPKG} \
|
|
|
|
${MODPY_BIN} -c 'from pysqlite2 import test; test.test()'
|
2005-05-22 05:37:25 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|