diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2003-09-10 09:35:37 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2003-09-10 09:35:37 +0000 |
commit | eaaa4142fb3991897eda24c6914b67810f7f67d3 (patch) | |
tree | c1742dbb219faa15dafe59e00b5f652253585264 /databases/ruby-criteria | |
parent | e7b129787abb1dda5d90740a970b7ff736dcaf41 (diff) | |
download | ports-eaaa4142fb3991897eda24c6914b67810f7f67d3.tar.gz ports-eaaa4142fb3991897eda24c6914b67810f7f67d3.zip |
Notes
Diffstat (limited to 'databases/ruby-criteria')
-rw-r--r-- | databases/ruby-criteria/Makefile | 34 | ||||
-rw-r--r-- | databases/ruby-criteria/distinfo | 1 | ||||
-rw-r--r-- | databases/ruby-criteria/pkg-descr | 16 | ||||
-rw-r--r-- | databases/ruby-criteria/pkg-plist | 8 |
4 files changed, 59 insertions, 0 deletions
diff --git a/databases/ruby-criteria/Makefile b/databases/ruby-criteria/Makefile new file mode 100644 index 000000000000..2494506d99c5 --- /dev/null +++ b/databases/ruby-criteria/Makefile @@ -0,0 +1,34 @@ +# New ports collection makefile for: ruby-criteria +# Date created: 10 September 2003 +# Whom: Akinori MUSHA aka knu <knu@idaemons.org> +# +# $FreeBSD$ +# + +PORTNAME= criteria +PORTVERSION= 1.0 +CATEGORIES= databases ruby +MASTER_SITES= http://mephle.org/Criteria/ +PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} +DIST_SUBDIR= ruby + +MAINTAINER= knu@FreeBSD.org +COMMENT= A Ruby module for SQL query abstraction, and others + +USE_RUBY= yes +USE_RUBY_SETUP= yes +RUBY_SETUP= install.rb + +.include <bsd.port.pre.mk> + +.if ${RUBY_VER} < 1.8 +IGNORE= only works with ruby 1.8 or later +.endif + +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${RUBY_MODDOCDIR} + ${INSTALL_DATA} ${WRKSRC}/README.en ${RUBY_MODDOCDIR}/ +.endif + +.include <bsd.port.post.mk> diff --git a/databases/ruby-criteria/distinfo b/databases/ruby-criteria/distinfo new file mode 100644 index 000000000000..194926698b81 --- /dev/null +++ b/databases/ruby-criteria/distinfo @@ -0,0 +1 @@ +MD5 (ruby/criteria-1.0.tar.gz) = b40d801b75c905bec6d790f551f9ecf5 diff --git a/databases/ruby-criteria/pkg-descr b/databases/ruby-criteria/pkg-descr new file mode 100644 index 000000000000..02b277ed780c --- /dev/null +++ b/databases/ruby-criteria/pkg-descr @@ -0,0 +1,16 @@ +Criteria is a module for abstracting queries to various data sets. +For instance, you might have a flat text file, or an array of Ruby +objects, or a SQL database, and wish to perform the same query on any +given source, without different versions of code for each. Here's a +quick example (more on the site): + +idx1 = SQLTable.new("orders") +q1 = (idx1.price > idx1.paid) & (idx1.duedate < Time.now.to_i) + +puts q1.select + +# => SELECT * FROM orders WHERE ((orders.price > orders.paid) AND +# (orders.duedate < 1062616643)) + +Author: Ryan Pavlik <rpav@mephle.com> +WWW: http://mephle.org/Criteria/ diff --git a/databases/ruby-criteria/pkg-plist b/databases/ruby-criteria/pkg-plist new file mode 100644 index 000000000000..db251df0744b --- /dev/null +++ b/databases/ruby-criteria/pkg-plist @@ -0,0 +1,8 @@ +%%RUBY_SITELIBDIR%%/criteria.rb +%%RUBY_SITELIBDIR%%/criteria/array.rb +%%RUBY_SITELIBDIR%%/criteria/file.rb +%%RUBY_SITELIBDIR%%/criteria/mysql.rb +%%RUBY_SITELIBDIR%%/criteria/sql.rb +@dirrm %%RUBY_SITELIBDIR%%/criteria +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/README.en +%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%% |