openbsd-ports/databases/py-sqlalchemy/Makefile
espie 2314c85f45 convert to new style depends
zap default spec that are not needed
convert libspecs as well
convert p* to REVISION.

No package changes
2010-11-15 00:22:45 +00:00

45 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.20 2010/11/15 00:22:53 espie 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>