aboutsummaryrefslogtreecommitdiffstats
path: root/databases/ruby-o_dbm
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2001-03-16 17:34:28 +0800
committerknu <knu@FreeBSD.org>2001-03-16 17:34:28 +0800
commit4bb4ab5471c8435b96a0c11198be3c9c1b5a266b (patch)
tree28649f5b5c8c3c0b76ded6cb8bed5387de517fed /databases/ruby-o_dbm
parentd61b96152fe8f4185773d8ae9ed31b1394db4851 (diff)
downloadfreebsd-ports-gnome-4bb4ab5471c8435b96a0c11198be3c9c1b5a266b.tar.gz
freebsd-ports-gnome-4bb4ab5471c8435b96a0c11198be3c9c1b5a266b.tar.zst
freebsd-ports-gnome-4bb4ab5471c8435b96a0c11198be3c9c1b5a266b.zip
Add ruby-o_dbm, an OODB-like DBM module for Ruby.
Diffstat (limited to 'databases/ruby-o_dbm')
-rw-r--r--databases/ruby-o_dbm/Makefile32
-rw-r--r--databases/ruby-o_dbm/distinfo1
-rw-r--r--databases/ruby-o_dbm/files/patch-o_dbm.rb28
-rw-r--r--databases/ruby-o_dbm/files/patch-test-o_dbm.rb15
-rw-r--r--databases/ruby-o_dbm/pkg-comment1
-rw-r--r--databases/ruby-o_dbm/pkg-descr4
-rw-r--r--databases/ruby-o_dbm/pkg-plist3
7 files changed, 84 insertions, 0 deletions
diff --git a/databases/ruby-o_dbm/Makefile b/databases/ruby-o_dbm/Makefile
new file mode 100644
index 000000000000..68bd073ca244
--- /dev/null
+++ b/databases/ruby-o_dbm/Makefile
@@ -0,0 +1,32 @@
+# New ports collection makefile for: o_dbm - ObjectDBM
+# Date created: 16 March 2001
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= o_dbm
+PORTVERSION= 0.1
+CATEGORIES= databases ruby
+MASTER_SITES= ${MASTER_SITE_RUBY}
+MASTER_SITE_SUBDIR= contrib
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+EXTRACT_SUFX= .tgz
+DIST_SUBDIR= ruby
+
+MAINTAINER= knu@FreeBSD.org
+
+USE_RUBY= yes
+
+NO_WRKSUBDIR= yes
+NO_BUILD= yes
+
+do-install:
+ ${MKDIR} ${RUBY_SITELIBDIR}
+ ${INSTALL_DATA} ${WRKSRC}/o_dbm.rb ${RUBY_SITELIBDIR}/
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME}/
+ ${INSTALL_DATA} ${WRKSRC}/test-o_dbm.rb ${RUBY_EXAMPLESDIR}/${PORTNAME}/
+.endif
+
+.include <bsd.port.mk>
diff --git a/databases/ruby-o_dbm/distinfo b/databases/ruby-o_dbm/distinfo
new file mode 100644
index 000000000000..d1701d050f31
--- /dev/null
+++ b/databases/ruby-o_dbm/distinfo
@@ -0,0 +1 @@
+MD5 (ruby/o_dbm-0.1.tgz) = ce5afc94d583a9557e821309802c67d5
diff --git a/databases/ruby-o_dbm/files/patch-o_dbm.rb b/databases/ruby-o_dbm/files/patch-o_dbm.rb
new file mode 100644
index 000000000000..5184499f4332
--- /dev/null
+++ b/databases/ruby-o_dbm/files/patch-o_dbm.rb
@@ -0,0 +1,28 @@
+--- o_dbm.rb.orig Fri Dec 12 00:31:32 1997
++++ o_dbm.rb Fri Mar 16 18:29:28 2001
+@@ -13,5 +13,4 @@
+ require "e2mmap"
+ require "dbm"
+-require "marshal"
+
+ class ObjectDBM
+@@ -20,7 +19,7 @@
+ extend Exception2MessageMapper
+
+- def_exception :ErrOnlyUsableTopTransaction, "トップトランザクションでしか実行できないオペレーション(%s)を実行しようとしました."
+- def_exception :ErrOnlyUsableInTransaction, "トランザクション内でないと実行できないオペレーション(%s)を実行しようとしました."
+- def_exception :ErrMixedTransaction, "静的トランザクションと動的トランザクションを混在して利用しようとしました."
++ def_exception :ErrOnlyUsableTopTransaction, "The operation (%s) can only be executed in the top level transaction."
++ def_exception :ErrOnlyUsableInTransaction, "The operation (%s) can only be executed within a transaction."
++ def_exception :ErrMixedTransaction, "Static transactions and dynamic transactions cannot be mixed together."
+
+ include Enumerable
+@@ -401,6 +400,6 @@
+
+ extend Exception2MessageMapper
+- def_exception :ErrNoStartedTransaction, "トランザクションが開始されていません."
+- def_exception :ErrClosedTransaction, "トランザクションはすでに終了しています."
++ def_exception :ErrNoStartedTransaction, "Transaction is not started yet."
++ def_exception :ErrClosedTransaction, "Transaction is closed already."
+
+ NO_START = :ObjectDBM__TXN_NO_START
diff --git a/databases/ruby-o_dbm/files/patch-test-o_dbm.rb b/databases/ruby-o_dbm/files/patch-test-o_dbm.rb
new file mode 100644
index 000000000000..7218cf85b383
--- /dev/null
+++ b/databases/ruby-o_dbm/files/patch-test-o_dbm.rb
@@ -0,0 +1,15 @@
+--- test-o_dbm.rb.orig Thu Dec 11 12:54:12 1997
++++ test-o_dbm.rb Fri Mar 16 18:29:28 2001
+@@ -15,6 +15,3 @@
+
+-$:.unshift ENV["HOME"]+"/var/lib/ruby"
+-$:.unshift "."
+-
+-require "./o_dbm"
++require "o_dbm"
+
+@@ -27,3 +24,3 @@
+
+-odbm = ObjectDBM.new("odbm.test.db")
++odbm = ObjectDBM.new("odbm.test")
+
diff --git a/databases/ruby-o_dbm/pkg-comment b/databases/ruby-o_dbm/pkg-comment
new file mode 100644
index 000000000000..25e1007c21db
--- /dev/null
+++ b/databases/ruby-o_dbm/pkg-comment
@@ -0,0 +1 @@
+An OODB-like DBM module for Ruby
diff --git a/databases/ruby-o_dbm/pkg-descr b/databases/ruby-o_dbm/pkg-descr
new file mode 100644
index 000000000000..17cb66086efd
--- /dev/null
+++ b/databases/ruby-o_dbm/pkg-descr
@@ -0,0 +1,4 @@
+ObjectDBM (o_dbm) is an OODB-like DBM module for Ruby.
+
+Author: Keiju Ishitsuka <keiju@ishitsuka.com>
+WWW: http://www.ruby-lang.org/en/raa-list.rhtml?name=o_dbm+-+ObjectDBM
diff --git a/databases/ruby-o_dbm/pkg-plist b/databases/ruby-o_dbm/pkg-plist
new file mode 100644
index 000000000000..f7cd351d7230
--- /dev/null
+++ b/databases/ruby-o_dbm/pkg-plist
@@ -0,0 +1,3 @@
+%%RUBY_SITELIBDIR%%/o_dbm.rb
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/o_dbm/test-o_dbm.rb
+%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/o_dbm