openbsd-ports/databases/py-axiom/Makefile
eric 0f93fe4464 Axiom is an object database, or alternatively, an object-relational
mapper.  Its primary goal is to provide an object-oriented layer with
what we consider to be the key aspects of OO, i.e. polymorphism and
message dispatch, without hindering the power of an RDBMS. It is
designed to "feel pythonic", without encouraging the typical ORM
behavior such as potato programming. 

Axiom provides a full interface to the database, which strongly
suggests that you do not write any SQL of your own. Metaprogramming is
difficult and dangerous (as many, many SQL injection attacks amply
demonstrate). Writing your own SQL is still possible, however, and
Axiom does have several methods which return fragments of generated
schema if you wish to use them in your own queries. 

ok martynas@
2008-05-03 12:40:49 +00:00

42 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2008/05/03 12:40:49 eric Exp $
COMMENT= sqlite-based object persistence system for python
VERSION= 0.5.27
DISTNAME= Axiom-${VERSION}
PKGNAME= py-axiom-${VERSION}
CATEGORIES= databases
HOMEPAGE= http://divmod.org/trac/wiki/DivmodAxiom
MAINTAINER= Eric Faurot <eric@openbsd.org>
# MIT
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://ekyo.nerim.net/distfiles/
MODULES= lang/python
BUILD_DEPENDS+= :py-epsilon-*:devel/py-epsilon \
:py-sqlite2-*:databases/py-sqlite2
RUN_DEPENDS= ${BUILD_DEPENDS} \
:py-twisted-conch-*:devel/py-twisted/conch
REGRESS_DEPENDS=${BUILD_DEPENDS} \
:python-bz2-${MODPY_VERSION}.*:lang/python/${MODPY_VERSION},-bz2
MODPY_DISTUTILS_BUILD= build --build-base=${WRKSRC}/.build
MODPY_EGG_VERSION= ${VERSION}
TRIALDIR= ${WRKDIR}/trial
do-regress: install
mkdir -m 0777 ${TRIALDIR} && cd ${TRIALDIR} && ${SUDO} su -m nobody -c \
"${LOCALBASE}/bin/trial ${MODPY_SITEPKG}/axiom/test"
.include <bsd.port.mk>