summaryrefslogtreecommitdiff
path: root/databases/ruby-activerecord
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2005-04-10 04:45:59 +0000
committerminskim <minskim@pkgsrc.org>2005-04-10 04:45:59 +0000
commit470be5dd33ca480d306729449b8d9f6fb209f732 (patch)
tree42fdd9389ae4da86a929912911f22e0fad2f1373 /databases/ruby-activerecord
parent163c07a3fefe97e4a17937b1a56f6cf51096dff0 (diff)
downloadpkgsrc-470be5dd33ca480d306729449b8d9f6fb209f732.tar.gz
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.
Diffstat (limited to 'databases/ruby-activerecord')
-rw-r--r--databases/ruby-activerecord/DESCR14
-rw-r--r--databases/ruby-activerecord/Makefile25
-rw-r--r--databases/ruby-activerecord/PLIST38
-rw-r--r--databases/ruby-activerecord/distinfo6
-rw-r--r--databases/ruby-activerecord/patches/patch-aa12
5 files changed, 95 insertions, 0 deletions
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