2011-11-04 04:16:23 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.25 2011/11/04 08:16:24 jasper Exp $
|
2007-02-04 18:00:06 -05:00
|
|
|
|
2009-04-04 20:37:07 -04:00
|
|
|
COMMENT = database toolkit for Python
|
2007-02-04 18:00:06 -05:00
|
|
|
|
2011-07-14 10:36:34 -04:00
|
|
|
MODPY_EGG_VERSION = 0.7.1
|
2009-04-04 20:37:07 -04:00
|
|
|
DISTNAME = SQLAlchemy-${MODPY_EGG_VERSION}
|
2009-06-04 15:49:17 -04:00
|
|
|
PKGNAME = py-sqlalchemy-${MODPY_EGG_VERSION:S/p/./}
|
2011-11-04 04:16:23 -04:00
|
|
|
REVISION = 1
|
2007-02-04 18:00:06 -05:00
|
|
|
|
2009-04-04 20:37:07 -04:00
|
|
|
CATEGORIES = databases
|
2007-02-04 18:00:06 -05:00
|
|
|
|
2009-04-04 20:37:07 -04:00
|
|
|
HOMEPAGE = http://www.sqlalchemy.org/
|
2007-02-04 18:00:06 -05:00
|
|
|
|
2009-04-04 20:37:07 -04:00
|
|
|
MAINTAINER = Will Maier <wcmaier@openbsd.org>
|
2007-02-04 18:00:06 -05:00
|
|
|
|
|
|
|
# MIT
|
2009-04-04 20:37:07 -04:00
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
PERMIT_DISTFILES_CDROM = Yes
|
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
2007-02-04 18:00:06 -05:00
|
|
|
|
2009-04-04 20:37:07 -04:00
|
|
|
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=sqlalchemy/}
|
2007-02-04 18:00:06 -05:00
|
|
|
|
2009-04-04 20:37:07 -04:00
|
|
|
MODULES = lang/python
|
|
|
|
MODPY_SETUPTOOLS = Yes
|
|
|
|
PKG_ARCH = *
|
2007-02-04 18:00:06 -05:00
|
|
|
|
2011-11-04 04:16:23 -04:00
|
|
|
WANTLIB+= ${MODPY_WANTLIB}
|
|
|
|
|
2010-05-24 12:42:44 -04:00
|
|
|
MAKE_ENV += PYTHONPATH=.
|
|
|
|
|
2007-02-04 18:00:06 -05:00
|
|
|
# Other DB connectors would work, too.
|
2010-11-14 19:22:45 -05:00
|
|
|
REGRESS_DEPENDS = databases/py-sqlite2 \
|
|
|
|
devel/py-nose
|
2007-05-25 13:05:54 -04:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-sqlalchemy
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-sqlalchemy
|
2009-04-04 20:37:07 -04:00
|
|
|
cd ${WRKSRC}/doc && pax -rw * ${PREFIX}/share/doc/py-sqlalchemy
|
2007-05-25 13:05:54 -04:00
|
|
|
cd ${WRKSRC}/examples && \
|
2009-04-04 20:37:07 -04:00
|
|
|
pax -rw * ${PREFIX}/share/examples/py-sqlalchemy
|
2007-02-04 18:00:06 -05:00
|
|
|
|
|
|
|
do-regress:
|
2011-05-27 06:39:37 -04:00
|
|
|
@cd ${WRKSRC} && ${MODPY_BIN} setup.py test
|
2007-02-04 18:00:06 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|