pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/ruby-tokyocabinet Import ruby-tokyocabinet-1...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/42c7a7edf3da
branches:  trunk
changeset: 546542:42c7a7edf3da
user:      obache <obache%pkgsrc.org@localhost>
date:      Thu Sep 04 12:11:41 2008 +0000

description:
Import ruby-tokyocabinet-1.14 as databases/ruby-tokyocabinet.

Tokyo Cabinet is a library of routines for managing a database.  The database is
a simple data file containing records, each is a pair of a key and a value.
Every key and value is serial bytes with variable length.  Both binary data and
character string can be used as a key and a value.  There is neither concept of
data tables nor data types.  Records are organized in hash table, B+ tree, or
fixed-length array.

This package provides Ruby binding of Tokyo Cabinet.

diffstat:

 databases/ruby-tokyocabinet/DESCR            |   8 ++++++
 databases/ruby-tokyocabinet/Makefile         |  33 ++++++++++++++++++++++++++++
 databases/ruby-tokyocabinet/PLIST            |   2 +
 databases/ruby-tokyocabinet/distinfo         |   6 +++++
 databases/ruby-tokyocabinet/patches/patch-aa |  13 +++++++++++
 5 files changed, 62 insertions(+), 0 deletions(-)

diffs (82 lines):

diff -r 7f51e6cdeac3 -r 42c7a7edf3da databases/ruby-tokyocabinet/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/ruby-tokyocabinet/DESCR Thu Sep 04 12:11:41 2008 +0000
@@ -0,0 +1,8 @@
+Tokyo Cabinet is a library of routines for managing a database.  The database is
+a simple data file containing records, each is a pair of a key and a value.
+Every key and value is serial bytes with variable length.  Both binary data and
+character string can be used as a key and a value.  There is neither concept of
+data tables nor data types.  Records are organized in hash table, B+ tree, or
+fixed-length array.
+
+This package provides Ruby binding of Tokyo Cabinet.
diff -r 7f51e6cdeac3 -r 42c7a7edf3da databases/ruby-tokyocabinet/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/ruby-tokyocabinet/Makefile      Thu Sep 04 12:11:41 2008 +0000
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/09/04 12:11:41 obache Exp $
+#
+
+DISTNAME=      tokyocabinet-ruby-1.14
+PKGNAME=       ${RUBY_PKGPREFIX}-${DISTNAME:S/-ruby//}
+CATEGORIES=    databases ruby
+MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=tokyocabinet/}
+
+MAINTAINER=    obache%NetBSD.org@localhost
+HOMEPAGE=      http://tokyocabinet.sourceforge.net/rubydoc/
+COMMENT=       Ruby binding of Tokyo Cabinet
+
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+USE_RUBY_EXTCONF=      yes
+RUBY_HAS_ARCHLIB=      yes
+REPLACE_RUBY_DIRS=     .
+USE_TOOLS+=            pax
+
+DOCDIR=                        share/tokyocabinet/doc/ruby
+RUBY_DYNAMIC_DIRS=     ${DOCDIR}
+
+do-test:
+       ${RUN} cd ${WRKSRC}; ${SETENV} ${TEST_ENV} ${RUBY} test.rb
+
+post-install:
+       ${INSTALL_DATA_DIR} ${DESTDIR}/${PREFIX}/${DOCDIR}
+       cd ${WRKSRC}/doc && pax -rwpe . ${DESTDIR}${PREFIX}/${DOCDIR}
+       ${RUBY_GENERATE_PLIST}
+
+.include "../../databases/tokyocabinet/buildlink3.mk"
+.include "../../lang/ruby/modules.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 7f51e6cdeac3 -r 42c7a7edf3da databases/ruby-tokyocabinet/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/ruby-tokyocabinet/PLIST Thu Sep 04 12:11:41 2008 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/09/04 12:11:41 obache Exp $
+${RUBY_VENDORARCHLIB}/tokyocabinet.${RUBY_DLEXT}
diff -r 7f51e6cdeac3 -r 42c7a7edf3da databases/ruby-tokyocabinet/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/ruby-tokyocabinet/distinfo      Thu Sep 04 12:11:41 2008 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/09/04 12:11:41 obache Exp $
+
+SHA1 (tokyocabinet-ruby-1.14.tar.gz) = 454a693f5f3a3563782247fb4dfd3b06598b45ce
+RMD160 (tokyocabinet-ruby-1.14.tar.gz) = feec35e0c6cbfd9f7b4521311b27afd2e288e0be
+Size (tokyocabinet-ruby-1.14.tar.gz) = 52188 bytes
+SHA1 (patch-aa) = 8892d5a658495a4d02b6935287552011453412fb
diff -r 7f51e6cdeac3 -r 42c7a7edf3da databases/ruby-tokyocabinet/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/ruby-tokyocabinet/patches/patch-aa      Thu Sep 04 12:11:41 2008 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2008/09/04 12:11:41 obache Exp $
+
+--- test.rb.orig       2008-06-20 14:47:36.000000000 +0000
++++ test.rb
+@@ -24,7 +24,7 @@ commands = [
+            ]
+ num = 1
+ commands.each do |command|
+-  rv = system("/usr/bin/ruby #{command} >/dev/null")
++  rv = system("ruby #{command} >/dev/null")
+   if(rv)
+     printf("%03d/%03d: %s: ok\n", num, commands.size, command)
+   else



Home | Main Index | Thread Index | Old Index