mirror of
https://git.freebsd.org/ports.git
synced 2025-06-02 03:16:28 -04:00
Add ruby-o_dbm, an OODB-like DBM module for Ruby.
This commit is contained in:
parent
fa3504996e
commit
e7d39f6460
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=39914
8 changed files with 85 additions and 0 deletions
|
@ -66,6 +66,7 @@
|
|||
SUBDIR += ruby-gdbm
|
||||
SUBDIR += ruby14-gdbm
|
||||
SUBDIR += ruby-mysql
|
||||
SUBDIR += ruby-o_dbm
|
||||
SUBDIR += ruby-postgres
|
||||
SUBDIR += sqlite
|
||||
SUBDIR += sqsh
|
||||
|
|
32
databases/ruby-o_dbm/Makefile
Normal file
32
databases/ruby-o_dbm/Makefile
Normal file
|
@ -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>
|
1
databases/ruby-o_dbm/distinfo
Normal file
1
databases/ruby-o_dbm/distinfo
Normal file
|
@ -0,0 +1 @@
|
|||
MD5 (ruby/o_dbm-0.1.tgz) = ce5afc94d583a9557e821309802c67d5
|
28
databases/ruby-o_dbm/files/patch-o_dbm.rb
Normal file
28
databases/ruby-o_dbm/files/patch-o_dbm.rb
Normal file
|
@ -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
|
15
databases/ruby-o_dbm/files/patch-test-o_dbm.rb
Normal file
15
databases/ruby-o_dbm/files/patch-test-o_dbm.rb
Normal file
|
@ -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")
|
||||
|
1
databases/ruby-o_dbm/pkg-comment
Normal file
1
databases/ruby-o_dbm/pkg-comment
Normal file
|
@ -0,0 +1 @@
|
|||
An OODB-like DBM module for Ruby
|
4
databases/ruby-o_dbm/pkg-descr
Normal file
4
databases/ruby-o_dbm/pkg-descr
Normal file
|
@ -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
|
3
databases/ruby-o_dbm/pkg-plist
Normal file
3
databases/ruby-o_dbm/pkg-plist
Normal file
|
@ -0,0 +1,3 @@
|
|||
%%RUBY_SITELIBDIR%%/o_dbm.rb
|
||||
%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/o_dbm/test-o_dbm.rb
|
||||
%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/o_dbm
|
Loading…
Add table
Reference in a new issue