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