From 98ecfd474ab70790a926c373eb96033643a2eaf6 Mon Sep 17 00:00:00 2001 From: knu Date: Fri, 2 Mar 2001 10:32:38 +0000 Subject: Add ruby-dialogs, a simple Ruby interface to dialog(1). --- devel/Makefile | 1 + devel/ruby-dialogs/Makefile | 34 +++++++++++++++++++++++++++++++ devel/ruby-dialogs/distinfo | 2 ++ devel/ruby-dialogs/files/patch-dialogs.rb | 11 ++++++++++ devel/ruby-dialogs/pkg-comment | 1 + devel/ruby-dialogs/pkg-descr | 7 +++++++ devel/ruby-dialogs/pkg-plist | 3 +++ 7 files changed, 59 insertions(+) create mode 100644 devel/ruby-dialogs/Makefile create mode 100644 devel/ruby-dialogs/distinfo create mode 100644 devel/ruby-dialogs/files/patch-dialogs.rb create mode 100644 devel/ruby-dialogs/pkg-comment create mode 100644 devel/ruby-dialogs/pkg-descr create mode 100644 devel/ruby-dialogs/pkg-plist diff --git a/devel/Makefile b/devel/Makefile index 409241584c6..b6f27c91574 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -351,6 +351,7 @@ SUBDIR += ruby-amstd SUBDIR += ruby-byaccr SUBDIR += ruby-date2 + SUBDIR += ruby-dialogs SUBDIR += ruby-filelock SUBDIR += ruby-gemfinder SUBDIR += ruby-intl diff --git a/devel/ruby-dialogs/Makefile b/devel/ruby-dialogs/Makefile new file mode 100644 index 00000000000..81b5afd7644 --- /dev/null +++ b/devel/ruby-dialogs/Makefile @@ -0,0 +1,34 @@ +# New ports collection makefile for: rubyDialogs +# Date created: 2 March 2001 +# Whom: Akinori MUSHA aka knu +# +# $FreeBSD$ +# + +PORTNAME= dialogs +PORTVERSION= 1.1 +CATEGORIES= devel ruby +MASTER_SITES= http://bluesine.com/archives/software/ruby/rubyDialogs/ +PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} +DISTFILES= ${PORTNAME}.rb ${PORTNAME}.html +DIST_SUBDIR= ruby + +MAINTAINER= knu@FreeBSD.org + +USE_RUBY= yes +RUBY_NO_BUILD_DEPENDS= yes + +EXTRACT_CMD= ${CP} +EXTRACT_BEFORE_ARGS= # none +EXTRACT_AFTER_ARGS= ${WRKDIR} +NO_WRKSUBDIR= yes +NO_BUILD= yes + +do-install: + ${INSTALL_DATA} ${WRKDIR}/dialogs.rb ${RUBY_SITELIBDIR}/ +.if !defined(NOPORTDOCS) + ${MKDIR} ${RUBY_DOCDIR}/dialogs + ${INSTALL_DATA} ${WRKDIR}/dialogs.html ${RUBY_DOCDIR}/dialogs/ +.endif + +.include diff --git a/devel/ruby-dialogs/distinfo b/devel/ruby-dialogs/distinfo new file mode 100644 index 00000000000..16338a0b601 --- /dev/null +++ b/devel/ruby-dialogs/distinfo @@ -0,0 +1,2 @@ +MD5 (ruby/dialogs.rb) = 7349d8acf4ea0852e33226f6bd692d72 +MD5 (ruby/dialogs.html) = 03fa5b05028ac9a3f7893295d896a6a2 diff --git a/devel/ruby-dialogs/files/patch-dialogs.rb b/devel/ruby-dialogs/files/patch-dialogs.rb new file mode 100644 index 00000000000..9fd6bfcdb7f --- /dev/null +++ b/devel/ruby-dialogs/files/patch-dialogs.rb @@ -0,0 +1,11 @@ +--- dialogs.rb.orig Fri Mar 2 18:19:37 2001 ++++ dialogs.rb Fri Mar 2 19:15:11 2001 +@@ -73,7 +73,7 @@ + class Dialog + + def perform(cmd) +- options = "--backtitle '#{@title}'" ++ options = if /^--title / =~ cmd then "" else "--title '#{@title}'" end + tf=Tempfile.new("dialog") + torun=@DIALOG+' '+options+' '+cmd+" 2> #{tf.path}" + system(torun) diff --git a/devel/ruby-dialogs/pkg-comment b/devel/ruby-dialogs/pkg-comment new file mode 100644 index 00000000000..842a71b3ba4 --- /dev/null +++ b/devel/ruby-dialogs/pkg-comment @@ -0,0 +1 @@ +A simple Ruby interface to dialog(1) diff --git a/devel/ruby-dialogs/pkg-descr b/devel/ruby-dialogs/pkg-descr new file mode 100644 index 00000000000..ede325d37c8 --- /dev/null +++ b/devel/ruby-dialogs/pkg-descr @@ -0,0 +1,7 @@ +rubyDialogs is a simple interface to dialog(1). + +This software is distributed under the Bluesine public license, which +is a variant of the BSD license. (See: http://bluesine.com/license/) + +Author: Jeff Clement +WWW: http://bluesine.com/archives/software/ruby/rubyDialogs/ diff --git a/devel/ruby-dialogs/pkg-plist b/devel/ruby-dialogs/pkg-plist new file mode 100644 index 00000000000..f9b17ced665 --- /dev/null +++ b/devel/ruby-dialogs/pkg-plist @@ -0,0 +1,3 @@ +%%RUBY_SITELIBDIR%%/dialogs.rb +%%PORTDOCS%%%%RUBY_DOCDIR%%/dialogs/dialogs.html +%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/dialogs -- cgit