summaryrefslogtreecommitdiff
path: root/databases/ruby-activerecord/Makefile
diff options
context:
space:
mode:
authorminskim <minskim>2005-04-10 04:45:59 +0000
committerminskim <minskim>2005-04-10 04:45:59 +0000
commit328c4884cc62c7d693528679908530a5d1f932cd (patch)
tree42fdd9389ae4da86a929912911f22e0fad2f1373 /databases/ruby-activerecord/Makefile
parent2fbc1ca538bc3d73ae274d8d6c5699d5b847f3f8 (diff)
downloadpkgsrc-328c4884cc62c7d693528679908530a5d1f932cd.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/Makefile')
-rw-r--r--databases/ruby-activerecord/Makefile25
1 files changed, 25 insertions, 0 deletions
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"