[86376] trunk/dports/python
devans at macports.org
devans at macports.org
Mon Oct 24 16:21:23 PDT 2011
Revision: 86376
http://trac.macports.org/changeset/86376
Author: devans at macports.org
Date: 2011-10-24 16:21:23 -0700 (Mon, 24 Oct 2011)
Log Message:
-----------
py-axiom: new port, version 0.6.0, Axiom object database.
Added Paths:
-----------
trunk/dports/python/py-axiom/
trunk/dports/python/py-axiom/Portfile
trunk/dports/python/py-axiom/files/
trunk/dports/python/py-axiom/files/patch-python26.diff
Added: trunk/dports/python/py-axiom/Portfile
===================================================================
--- trunk/dports/python/py-axiom/Portfile (rev 0)
+++ trunk/dports/python/py-axiom/Portfile 2011-10-24 23:21:23 UTC (rev 86376)
@@ -0,0 +1,51 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup python 1.0
+
+name py-axiom
+set gname python-axiom
+version 0.6.0
+license MIT
+categories-append database
+platforms darwin
+supported_archs noarch
+
+maintainers devans openmaintainer
+
+description Axiom is an object database, or alternatively, an object-relational \
+ mapper, implemented on top of Python.
+
+long_description ${description} \
+ Its primary goal is to provide an object-oriented layer with the key \
+ aspects of OOP (Object Oriented Programming), i.e. polymorphism and \
+ message dispatch, without hindering the power of an RDBMS \
+ (Relational DataBase Management System).
+
+homepage http://packages.debian.org/squeeze/python/python-axiom
+master_sites debian:p/${gname}
+
+distname ${gname}_${version}.orig
+
+checksums sha1 b7f11cadcedc755276120469f141e02a13149914 \
+ sha256 0c3e5586c91df966f2c1b2031db870ee6b73bdd0517f9a7dab764ef0943e548c
+
+worksrcdir Axiom-${version}
+
+python.default_version 27
+python.versions 25 26 27
+
+
+if {$subport != $name} {
+ depends_lib-append port:py${python.version}-epsilon \
+ port:py${python.version}-sqlite
+
+ if {${python.version} > 25} {
+ patchfiles-append patch-python26.diff
+ }
+}
+
+livecheck.type regex
+livecheck.url http://ftp.us.debian.org/debian/pool/main/p/${gname}/
+livecheck.regex "${gname}_(\\d+(?:\\.\\d+)*)\\.orig${extract.suffix}"
Property changes on: trunk/dports/python/py-axiom/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/python/py-axiom/files/patch-python26.diff
===================================================================
--- trunk/dports/python/py-axiom/files/patch-python26.diff (rev 0)
+++ trunk/dports/python/py-axiom/files/patch-python26.diff 2011-10-24 23:21:23 UTC (rev 86376)
@@ -0,0 +1,39 @@
+--- axiom/item.py.orig 2010-01-14 14:42:26.000000000 +0100
++++ axiom/item.py 2010-01-14 14:42:58.000000000 +0100
+@@ -101,6 +101,36 @@
+ (other.typeName, other.schemaVersion))
+ return NotImplemented
+
++ def __lt__(self, other):
++ if isinstance(other, MetaItem):
++ return (self.typeName, self.schemaVersion) < (other.typeName, other.schemaVersion)
++ return NotImplemented
++
++ def __gt__(self, other):
++ if isinstance(other, MetaItem):
++ return (self.typeName, self.schemaVersion) > (other.typeName, other.schemaVersion)
++ return NotImplemented
++
++ def __le__(self, other):
++ if isinstance(other, MetaItem):
++ return (self.typeName, self.schemaVersion) <= (other.typeName, other.schemaVersion)
++ return NotImplemented
++
++ def __ge__(self, other):
++ if isinstance(other, MetaItem):
++ return (self.typeName, self.schemaVersion) >= (other.typeName, other.schemaVersion)
++ return NotImplemented
++
++ def __eq__(self, other):
++ if isinstance(other, MetaItem):
++ return (self.typeName, self.schemaVersion) == (other.typeName, other.schemaVersion)
++ return NotImplemented
++
++ def __ne__(self, other):
++ if isinstance(other, MetaItem):
++ return (self.typeName, self.schemaVersion) != (other.typeName, other.schemaVersion)
++ return NotImplemented
++
+
+ def noop():
+ pass
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111024/1cbf22f6/attachment-0001.html>
More information about the macports-changes
mailing list