2009-01-15 18:08:08 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.12 2009/01/15 23:08:08 djm Exp $
|
2007-02-04 18:00:06 -05:00
|
|
|
|
2007-09-15 16:34:00 -04:00
|
|
|
COMMENT= database toolkit for Python
|
2007-02-04 18:00:06 -05:00
|
|
|
|
2009-01-15 18:08:08 -05:00
|
|
|
MODPY_EGG_VERSION= 0.5.0
|
2008-04-15 05:34:31 -04:00
|
|
|
DISTNAME= SQLAlchemy-${MODPY_EGG_VERSION}
|
|
|
|
PKGNAME= py-sqlalchemy-${MODPY_EGG_VERSION}
|
2007-02-04 18:00:06 -05:00
|
|
|
|
2007-12-10 16:07:51 -05:00
|
|
|
CATEGORIES= databases
|
2007-02-04 18:00:06 -05:00
|
|
|
|
|
|
|
HOMEPAGE= http://www.sqlalchemy.org/
|
|
|
|
|
2008-04-15 05:34:31 -04:00
|
|
|
MAINTAINER= Will Maier <wcmaier@openbsd.org>
|
2007-02-04 18:00:06 -05:00
|
|
|
|
|
|
|
# MIT
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=sqlalchemy/}
|
|
|
|
|
|
|
|
MODULES= lang/python
|
|
|
|
MODPY_SETUPTOOLS= Yes
|
2009-01-15 18:08:08 -05:00
|
|
|
PKG_ARCH= *
|
2007-02-04 18:00:06 -05:00
|
|
|
|
|
|
|
# Other DB connectors would work, too.
|
2007-05-25 13:05:54 -04:00
|
|
|
REGRESS_DEPENDS= ::databases/py-sqlite2
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-sqlalchemy
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-sqlalchemy
|
2008-05-27 21:59:13 -04:00
|
|
|
cd ${WRKSRC}/doc && pax -rw * $ ${PREFIX}/share/doc/py-sqlalchemy
|
2007-05-25 13:05:54 -04:00
|
|
|
cd ${WRKSRC}/examples && \
|
2008-05-27 21:59:13 -04:00
|
|
|
pax -rw * $ ${PREFIX}/share/examples/py-sqlalchemy
|
2007-02-04 18:00:06 -05:00
|
|
|
|
|
|
|
do-regress:
|
2008-05-27 21:59:13 -04:00
|
|
|
@cd ${WRKSRC} && ${MAKE_ENV} \
|
|
|
|
PYTHONPATH=test ${MODPY_BIN} test/alltests.py --db sqlite
|
2007-02-04 18:00:06 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|