pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/ruby-activerecord Import ruby-activerecord.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/476d7ad6c8fb
branches:  trunk
changeset: 492333:476d7ad6c8fb
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Sun Apr 10 04:45:59 2005 +0000

description:
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:

 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(+), 0 deletions(-)

diffs (115 lines):

diff -r e7a2c67e13d0 -r 476d7ad6c8fb databases/ruby-activerecord/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/ruby-activerecord/DESCR Sun Apr 10 04:45:59 2005 +0000
@@ -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 -r e7a2c67e13d0 -r 476d7ad6c8fb databases/ruby-activerecord/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/ruby-activerecord/Makefile      Sun Apr 10 04:45:59 2005 +0000
@@ -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@localhost
+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 -r e7a2c67e13d0 -r 476d7ad6c8fb databases/ruby-activerecord/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/ruby-activerecord/PLIST Sun Apr 10 04:45:59 2005 +0000
@@ -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 -r e7a2c67e13d0 -r 476d7ad6c8fb databases/ruby-activerecord/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/ruby-activerecord/distinfo      Sun Apr 10 04:45:59 2005 +0000
@@ -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 -r e7a2c67e13d0 -r 476d7ad6c8fb databases/ruby-activerecord/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/ruby-activerecord/patches/patch-aa      Sun Apr 10 04:45:59 2005 +0000
@@ -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



Home | Main Index | Thread Index | Old Index