databases/ruby-dbm: add package version 1.1.0

Add dbm gem as ruby-dbm package version 1.1.0.

Note:

* Ruby 2.6 contains dbm 1.0.0.
* Ruby 2.7 and Ruby 3.0 contains dbm 1.1.0, but no conflict.
* Ruby 3.1 dose not contain dbm.


DBM

The DBM class provides a wrapper to a Unix-style dbm or Database Manager
library.

Dbm databases do not have tables or columns; they are simple key-value data
stores, like a Ruby Hash except not resident in RAM.  Keys and values must
be strings.

The exact library used depends on how Ruby was compiled.  It could be any of
the following:

* The original ndbm library is released in 4.3BSD.  It is based on dbm
  library in Unix Version 7 but has different API to support multiple
  databases in a process.
* Berkeley DB versions 1 thru 5, also known as BDB and Sleepycat DB, now
  owned by Oracle Corporation.
* Berkeley DB 1.x, still found in 4.4BSD derivatives (FreeBSD, OpenBSD,
  etc).
* gdbm, the GNU implementation of dbm.
* qdbm, another open source reimplementation of dbm.

All of these dbm implementations have their own Ruby interfaces available,
which provide richer (but varying) APIs.
This commit is contained in:
taca 2022-01-16 13:15:52 +00:00
parent c440ef6cad
commit d890c9f177
4 changed files with 50 additions and 0 deletions

24
databases/ruby-dbm/DESCR Normal file
View File

@ -0,0 +1,24 @@
DBM
The DBM class provides a wrapper to a Unix-style dbm or Database Manager
library.
Dbm databases do not have tables or columns; they are simple key-value data
stores, like a Ruby Hash except not resident in RAM. Keys and values must
be strings.
The exact library used depends on how Ruby was compiled. It could be any of
the following:
* The original ndbm library is released in 4.3BSD. It is based on dbm
library in Unix Version 7 but has different API to support multiple
databases in a process.
* Berkeley DB versions 1 thru 5, also known as BDB and Sleepycat DB, now
owned by Oracle Corporation.
* Berkeley DB 1.x, still found in 4.4BSD derivatives (FreeBSD, OpenBSD,
etc).
* gdbm, the GNU implementation of dbm.
* qdbm, another open source reimplementation of dbm.
All of these dbm implementations have their own Ruby interfaces available,
which provide richer (but varying) APIs.

View File

@ -0,0 +1,13 @@
# $NetBSD: Makefile,v 1.9 2022/01/16 13:15:52 taca Exp $
DISTNAME= dbm-1.1.0
CATEGORIES= databases
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/ruby/dbm
COMMENT= Wrapper for the UNIX-style Database Manager Library
LICENSE= 2-clause-bsd
.include "../../mk/bdb.buildlink3.mk"
.include "../../lang/ruby/gem.mk"
.include "../../mk/bsd.pkg.mk"

8
databases/ruby-dbm/PLIST Normal file
View File

@ -0,0 +1,8 @@
@comment $NetBSD: PLIST,v 1.6 2022/01/16 13:15:52 taca Exp $
${GEM_HOME}/cache/${GEM_NAME}.gem
${GEM_EXTSDIR}/dbm.${RUBY_DLEXT}
${GEM_EXTSDIR}/gem.build_complete
${GEM_LIBDIR}/ext/dbm/dbm.c
${GEM_LIBDIR}/ext/dbm/extconf.rb
${GEM_LIBDIR}/lib/dbm.${RUBY_DLEXT}
${GEM_HOME}/specifications/${GEM_NAME}.gemspec

View File

@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.1 2022/01/16 13:15:52 taca Exp $
BLAKE2s (dbm-1.1.0.gem) = 1ec9924f40baff8702efdfa086e4172524f48fef9e010c00bd59c7100d8230e3
SHA512 (dbm-1.1.0.gem) = 3e331942129cce744fc610b64ae396a4c492c3b089508b5199135c993c34df0eb8dc2097058b708db345093461834c069959ecdea214e7b2048f3f83da07a6d3
Size (dbm-1.1.0.gem) = 14336 bytes