285ca12cdc
PKGNAME tweak and "fine by me" martynas@
42 lines
1.0 KiB
Makefile
42 lines
1.0 KiB
Makefile
# $OpenBSD: Makefile,v 1.16 2009/06/04 19:49:17 wcmaier Exp $
|
|
|
|
COMMENT = database toolkit for Python
|
|
|
|
MODPY_EGG_VERSION = 0.5.4p2
|
|
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 = *
|
|
|
|
# Other DB connectors would work, too.
|
|
REGRESS_DEPENDS = ::databases/py-sqlite2
|
|
|
|
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:
|
|
@cd ${WRKSRC} && ${MAKE_ENV} \
|
|
PYTHONPATH=test ${MODPY_BIN} test/alltests.py --db sqlite
|
|
|
|
.include <bsd.port.mk>
|