openbsd-ports/databases/py-sqlalchemy/Makefile
fgsch 81d8cd723f update to sqlalchemy 0.6.3.
maintainer (wcmaier@) ok.
2010-09-06 21:55:57 +00:00

45 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.19 2010/09/06 21:55:57 fgsch Exp $
COMMENT = database toolkit for Python
MODPY_EGG_VERSION = 0.6.3
DISTNAME = SQLAlchemy-${MODPY_EGG_VERSION}
PKGNAME = py-sqlalchemy-${MODPY_EGG_VERSION:S/p/./}
CATEGORIES = databases
HOMEPAGE = http://www.sqlalchemy.org/
MAINTAINER = Will Maier <wcmaier@openbsd.org>
# 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
PKG_ARCH = *
MAKE_ENV += PYTHONPATH=.
# Other DB connectors would work, too.
REGRESS_DEPENDS = ::databases/py-sqlite2 \
::devel/py-nose
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-sqlalchemy
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-sqlalchemy
cd ${WRKSRC}/doc && pax -rw * ${PREFIX}/share/doc/py-sqlalchemy
cd ${WRKSRC}/examples && \
pax -rw * ${PREFIX}/share/examples/py-sqlalchemy
do-regress:
${_MODPY_CMD} develop -d.
@cd ${WRKSRC} && ${MAKE_ENV} nosetests
.include <bsd.port.mk>