From a0c603d8088c12864c7048d0990aa47404905052 Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Wed, 8 Dec 2004 22:39:12 +0000 Subject: [PATCH] Add David Black's DataBase Definer, a tool for reading and writing simple flat-text data files. --- databases/Makefile | 1 + databases/ruby-dbdbd/Makefile | 51 ++++++++++++++++++++++++++++++++++ databases/ruby-dbdbd/distinfo | 2 ++ databases/ruby-dbdbd/pkg-descr | 8 ++++++ 4 files changed, 62 insertions(+) create mode 100644 databases/ruby-dbdbd/Makefile create mode 100644 databases/ruby-dbdbd/distinfo create mode 100644 databases/ruby-dbdbd/pkg-descr diff --git a/databases/Makefile b/databases/Makefile index b37bd06fe446..21cdab92f70a 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -308,6 +308,7 @@ SUBDIR += ruby-dbd_proxy SUBDIR += ruby-dbd_sqlite SUBDIR += ruby-dbd_sqlrelay + SUBDIR += ruby-dbdbd SUBDIR += ruby-dbi SUBDIR += ruby-gdbm SUBDIR += ruby-interbase diff --git a/databases/ruby-dbdbd/Makefile b/databases/ruby-dbdbd/Makefile new file mode 100644 index 000000000000..e5df8c3949c3 --- /dev/null +++ b/databases/ruby-dbdbd/Makefile @@ -0,0 +1,51 @@ +# New ports collection makefile for: ruby-dbdbd +# Date created: 08 December 2004 +# Whom: Brooks Davis +# +# $FreeBSD$ +# + +PORTNAME= dbdbd +PORTVERSION= 0.2.2 +CATEGORIES= databases ruby +MASTER_SITES= http://knossos.shu.edu/dblack/dbdbd/ +PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} +EXTRACT_SUFX= .tgz + +MAINTAINER= brooks@FreeBSD.org +COMMENT= David Black's DataBase Definer + +NO_PACKAGE= License only allows unchanged distributions + +USE_RUBY= yes +NO_BUILD= yes + +# DOCS +DOCS= ChangeLog doc/README doc/README.html +# EXAMPLES relative to samples subdir +EXAMPLES= movies.rb movies.txt phonebook.rb phonebook.txt + +PLIST_FILES= %%RUBY_SITELIBDIR%%/dbdbd.rb \ + ${EXAMPLES:C;^;%%RUBY_MODEXAMPLESDIR%%/;} +PLIST_DIRS= %%RUBY_MODEXAMPLESDIR%% +.if !defined(NOPORTDOCS) +PLIST_FILES+= ${DOCS:C;^;%%RUBY_MODDOCDIR%%/;:C;doc/;;} +PLIST_DIRS+= %%RUBY_MODDOCDIR%% +.endif + +.include + +do-install: + ${INSTALL_DATA} ${WRKSRC}/dbdbd.rb ${RUBY_SITELIBDIR} + ${MKDIR} ${RUBY_MODEXAMPLESDIR} +.for f in ${EXAMPLES} + ${INSTALL_DATA} ${WRKSRC}/samples/${f} ${RUBY_MODEXAMPLESDIR}/ +.endfor +.if !defined(NOPORTDOCS) + ${MKDIR} ${RUBY_MODDOCDIR} +.for f in ${DOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ +.endfor +.endif + +.include diff --git a/databases/ruby-dbdbd/distinfo b/databases/ruby-dbdbd/distinfo new file mode 100644 index 000000000000..2b289fa36e2d --- /dev/null +++ b/databases/ruby-dbdbd/distinfo @@ -0,0 +1,2 @@ +MD5 (dbdbd-0.2.2.tgz) = b9a67d454be90b81c6098881531b3407 +SIZE (dbdbd-0.2.2.tgz) = 39091 diff --git a/databases/ruby-dbdbd/pkg-descr b/databases/ruby-dbdbd/pkg-descr new file mode 100644 index 000000000000..51364b37d373 --- /dev/null +++ b/databases/ruby-dbdbd/pkg-descr @@ -0,0 +1,8 @@ +dbdbd is a tool for reading and writing simple flat-text data files. A +dbdbd data file has record per line, plus optional comments, and can be +edited by hand as well as manipulated with dbdbd. In fact, the main goal +of dbdbd is to provide a semi-automated alternative to ad hoc +text-parsing scripts, in a way that still allows for the option of +editing data files by hand when desired. + +WWW: http://knossos.shu.edu/dblack/dbdbd/