From 470be5dd33ca480d306729449b8d9f6fb209f732 Mon Sep 17 00:00:00 2001 From: minskim Date: Sun, 10 Apr 2005 04:45:59 +0000 Subject: Import ruby-activerecord. Active Record connects business objects and database tables to create a persistable domain model where logic and data is presented in one wrapping. It is an implementation of the object-relational mapping (ORM) pattern by the same name as described by Martin Fowler: "An object that wraps a row in a database table or view, encapsulates the database access, and adds domain logic on that data." Active Records main contribution to the pattern is to relieve the original of two stunting problems: lack of associations and inheritance. By adding a simple domain language-like set of macros to describe the former and integrating the Single Table Inheritance pattern for the latter, Active Record narrows the gap of functionality between the data mapper and active record approach. --- databases/ruby-activerecord/DESCR | 14 ++++++++++ databases/ruby-activerecord/Makefile | 25 ++++++++++++++++++ databases/ruby-activerecord/PLIST | 38 ++++++++++++++++++++++++++++ databases/ruby-activerecord/distinfo | 6 +++++ databases/ruby-activerecord/patches/patch-aa | 12 +++++++++ 5 files changed, 95 insertions(+) create mode 100644 databases/ruby-activerecord/DESCR create mode 100644 databases/ruby-activerecord/Makefile create mode 100644 databases/ruby-activerecord/PLIST create mode 100644 databases/ruby-activerecord/distinfo create mode 100644 databases/ruby-activerecord/patches/patch-aa (limited to 'databases/ruby-activerecord') diff --git a/databases/ruby-activerecord/DESCR b/databases/ruby-activerecord/DESCR new file mode 100644 index 00000000000..2bec546c313 --- /dev/null +++ b/databases/ruby-activerecord/DESCR @@ -0,0 +1,14 @@ +Active Record connects business objects and database tables to create +a persistable domain model where logic and data is presented in one +wrapping. It is an implementation of the object-relational mapping +(ORM) pattern by the same name as described by Martin Fowler: + + "An object that wraps a row in a database table or view, encapsulates + the database access, and adds domain logic on that data." + +Active Records main contribution to the pattern is to relieve the +original of two stunting problems: lack of associations and +inheritance. By adding a simple domain language-like set of macros to +describe the former and integrating the Single Table Inheritance +pattern for the latter, Active Record narrows the gap of functionality +between the data mapper and active record approach. diff --git a/databases/ruby-activerecord/Makefile b/databases/ruby-activerecord/Makefile new file mode 100644 index 00000000000..f42be5df05a --- /dev/null +++ b/databases/ruby-activerecord/Makefile @@ -0,0 +1,25 @@ +# $NetBSD: Makefile,v 1.1.1.1 2005/04/10 04:45:59 minskim Exp $ + +DISTNAME= activerecord-1.9.1 +PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME} +CATEGORIES= databases ruby +MASTER_SITES= http://rubyforge.org/frs/download.php/3681/ +EXTRACT_SUFX= .tgz + +MAINTAINER= minskim@NetBSD.org +HOMEPAGE= http://ar.rubyonrails.org/ +COMMENT= Object-relation mapping put on rails + +DEPENDS+= ${RUBY_PKGPREFIX}-activesupport-[0-9]*:../../devel/ruby-activesupport + +NO_BUILD= yes +NO_CONFIGURE= yes +USE_RUBY_INSTALL= yes + +.include "../../lang/ruby/modules.mk" + +post-install: + ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/active_record + ${INSTALL_DATA} ${WRKSRC}/README ${RUBY_DOCDIR}/active_record + +.include "../../mk/bsd.pkg.mk" diff --git a/databases/ruby-activerecord/PLIST b/databases/ruby-activerecord/PLIST new file mode 100644 index 00000000000..16e4014c901 --- /dev/null +++ b/databases/ruby-activerecord/PLIST @@ -0,0 +1,38 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2005/04/10 04:45:59 minskim Exp $ +${RUBY_SITELIBDIR}/active_record.rb +${RUBY_SITELIBDIR}/active_record/acts/list.rb +${RUBY_SITELIBDIR}/active_record/acts/tree.rb +${RUBY_SITELIBDIR}/active_record/aggregations.rb +${RUBY_SITELIBDIR}/active_record/associations.rb +${RUBY_SITELIBDIR}/active_record/associations/association_collection.rb +${RUBY_SITELIBDIR}/active_record/associations/has_and_belongs_to_many_association.rb +${RUBY_SITELIBDIR}/active_record/associations/has_many_association.rb +${RUBY_SITELIBDIR}/active_record/base.rb +${RUBY_SITELIBDIR}/active_record/callbacks.rb +${RUBY_SITELIBDIR}/active_record/connection_adapters/abstract_adapter.rb +${RUBY_SITELIBDIR}/active_record/connection_adapters/db2_adapter.rb +${RUBY_SITELIBDIR}/active_record/connection_adapters/mysql_adapter.rb +${RUBY_SITELIBDIR}/active_record/connection_adapters/postgresql_adapter.rb +${RUBY_SITELIBDIR}/active_record/connection_adapters/sqlite_adapter.rb +${RUBY_SITELIBDIR}/active_record/connection_adapters/sqlserver_adapter.rb +${RUBY_SITELIBDIR}/active_record/deprecated_associations.rb +${RUBY_SITELIBDIR}/active_record/fixtures.rb +${RUBY_SITELIBDIR}/active_record/locking.rb +${RUBY_SITELIBDIR}/active_record/observer.rb +${RUBY_SITELIBDIR}/active_record/reflection.rb +${RUBY_SITELIBDIR}/active_record/timestamp.rb +${RUBY_SITELIBDIR}/active_record/transactions.rb +${RUBY_SITELIBDIR}/active_record/validations.rb +${RUBY_SITELIBDIR}/active_record/vendor/db2.rb +${RUBY_SITELIBDIR}/active_record/vendor/mysql.rb +${RUBY_SITELIBDIR}/active_record/vendor/mysql411.rb +${RUBY_SITELIBDIR}/active_record/vendor/simple.rb +${RUBY_DOCDIR}/active_record/README +@dirrm ${RUBY_DOCDIR}/active_record +@dirrm ${RUBY_SITELIBDIR}/active_record/vendor +@exec ${MKDIR} %D/lib/ruby/site_ruby/1.8/active_record/support +@dirrm ${RUBY_SITELIBDIR}/active_record/support +@dirrm ${RUBY_SITELIBDIR}/active_record/connection_adapters +@dirrm ${RUBY_SITELIBDIR}/active_record/associations +@dirrm ${RUBY_SITELIBDIR}/active_record/acts +@dirrm ${RUBY_SITELIBDIR}/active_record diff --git a/databases/ruby-activerecord/distinfo b/databases/ruby-activerecord/distinfo new file mode 100644 index 00000000000..68c0367da10 --- /dev/null +++ b/databases/ruby-activerecord/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2005/04/10 04:45:59 minskim Exp $ + +SHA1 (ruby/activerecord-1.9.1.tgz) = d2f44005537fe35ad4e832088d3bd144b0f4dd77 +RMD160 (ruby/activerecord-1.9.1.tgz) = 3c268a7e0cfd8a959ee166fdbd1a83dc51ca4c8b +Size (ruby/activerecord-1.9.1.tgz) = 242962 bytes +SHA1 (patch-aa) = 85322e97f80b9da7287aa11a7b08dbfe7d34554f diff --git a/databases/ruby-activerecord/patches/patch-aa b/databases/ruby-activerecord/patches/patch-aa new file mode 100644 index 00000000000..c1ab5e11c7c --- /dev/null +++ b/databases/ruby-activerecord/patches/patch-aa @@ -0,0 +1,12 @@ +$NetBSD: patch-aa,v 1.1.1.1 2005/04/10 04:45:59 minskim Exp $ + +--- install.rb.orig Tue Feb 15 09:57:44 2005 ++++ install.rb +@@ -37,7 +37,6 @@ files = %w- + active_record/connection_adapters/abstract_adapter.rb + active_record/connection_adapters/db2_adapter.rb + active_record/connection_adapters/mysql_adapter.rb +- active_record/connection_adapters/oracle_adapter.rb + active_record/connection_adapters/postgresql_adapter.rb + active_record/connection_adapters/sqlite_adapter.rb + active_record/connection_adapters/sqlserver_adapter.rb -- cgit v1.2.3