summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--devel/Makefile1
-rw-r--r--devel/ruby-bsearch/Makefile45
-rw-r--r--devel/ruby-bsearch/distinfo1
-rw-r--r--devel/ruby-bsearch/pkg-comment1
-rw-r--r--devel/ruby-bsearch/pkg-descr6
-rw-r--r--devel/ruby-bsearch/pkg-plist8
6 files changed, 62 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 2fa9f27..5af86f2 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -447,6 +447,7 @@
SUBDIR += rpc2
SUBDIR += rtems-gcc
SUBDIR += ruby-amstd
+ SUBDIR += ruby-bsearch
SUBDIR += ruby-byaccr
SUBDIR += ruby-date2
SUBDIR += ruby-dialogs
diff --git a/devel/ruby-bsearch/Makefile b/devel/ruby-bsearch/Makefile
new file mode 100644
index 0000000..7cd2b63
--- /dev/null
+++ b/devel/ruby-bsearch/Makefile
@@ -0,0 +1,45 @@
+# Ports collection makefile for: Ruby/Bsearch
+# Date created: 13 July 2001
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= bsearch
+PORTVERSION= 1.2
+CATEGORIES= devel ruby
+MASTER_SITES= http://namazu.org/~satoru/ruby-bsearch/
+DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
+DIST_SUBDIR= ruby
+
+MAINTAINER= knu@FreeBSD.org
+
+USE_RUBY= yes
+.if !defined(NOPORTDOCS)
+USE_RUBY_RD= yes
+.endif
+
+DOCS_EN= ChangeLog bsearch.en.html bsearch.en.rd
+DOCS_JA= bsearch.ja.html bsearch.ja.rd
+
+do-build:
+.if !defined(NOPORTDOCS)
+.for f in bsearch.en.rd bsearch.ja.rd
+ @cd ${WRKSRC}; \
+ ${RUBY_RD} ${f} > ${f:R}.html
+.endfor
+.endif
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/bsearch.rb ${RUBY_SITELIBDIR}/
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}/ja
+.for f in ${DOCS_EN}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/
+.endfor
+.for f in ${DOCS_JA}
+ ${INSTALL_SCRIPT} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/ja/
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/devel/ruby-bsearch/distinfo b/devel/ruby-bsearch/distinfo
new file mode 100644
index 0000000..3d834b8
--- /dev/null
+++ b/devel/ruby-bsearch/distinfo
@@ -0,0 +1 @@
+MD5 (ruby/ruby-bsearch-1.2.tar.gz) = b887c46ed5d5abd53c4ad52c48be44a0
diff --git a/devel/ruby-bsearch/pkg-comment b/devel/ruby-bsearch/pkg-comment
new file mode 100644
index 0000000..3e1f5e5
--- /dev/null
+++ b/devel/ruby-bsearch/pkg-comment
@@ -0,0 +1 @@
+A binary search library for Ruby
diff --git a/devel/ruby-bsearch/pkg-descr b/devel/ruby-bsearch/pkg-descr
new file mode 100644
index 0000000..c2a2536
--- /dev/null
+++ b/devel/ruby-bsearch/pkg-descr
@@ -0,0 +1,6 @@
+Ruby/Bsearch is a binary search library for Ruby. It can search the
+FIRST or LAST occurrence in an array with a condition given by a
+block.
+
+WWW: http://namazu.org/~satoru/ruby-bsearch/index.html.en
+Author: Satoru Takabayashi <satoru@namazu.org>
diff --git a/devel/ruby-bsearch/pkg-plist b/devel/ruby-bsearch/pkg-plist
new file mode 100644
index 0000000..9c2a2ef
--- /dev/null
+++ b/devel/ruby-bsearch/pkg-plist
@@ -0,0 +1,8 @@
+%%RUBY_SITELIBDIR%%/bsearch.rb
+%%PORTDOCS%%%%RUBY_DOCDIR%%/bsearch/ChangeLog
+%%PORTDOCS%%%%RUBY_DOCDIR%%/bsearch/bsearch.en.html
+%%PORTDOCS%%%%RUBY_DOCDIR%%/bsearch/bsearch.en.rd
+%%PORTDOCS%%%%RUBY_DOCDIR%%/bsearch/ja/bsearch.ja.html
+%%PORTDOCS%%%%RUBY_DOCDIR%%/bsearch/ja/bsearch.ja.rd
+%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/bsearch/ja
+%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/bsearch
OpenPOWER on IntegriCloud