diff options
author | knu <knu@FreeBSD.org> | 2001-09-20 14:13:01 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2001-09-20 14:13:01 +0800 |
commit | 6b8990c8540a2ef3354b7ebcf2818848b6785e55 (patch) | |
tree | b09d9e9951fcd9c4527dba68d7251fad2fa81bc7 /www | |
parent | 79446d4d3bb116fb6d67827ea088c21a37bd46be (diff) | |
download | freebsd-ports-gnome-6b8990c8540a2ef3354b7ebcf2818848b6785e55.tar.gz freebsd-ports-gnome-6b8990c8540a2ef3354b7ebcf2818848b6785e55.tar.zst freebsd-ports-gnome-6b8990c8540a2ef3354b7ebcf2818848b6785e55.zip |
Add ruby-webunit, a Ruby API for automated unit testing of web sites.
Diffstat (limited to 'www')
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/ruby-webunit/Makefile | 48 | ||||
-rw-r--r-- | www/ruby-webunit/distinfo | 1 | ||||
-rw-r--r-- | www/ruby-webunit/files/patch-install.rb | 20 | ||||
-rw-r--r-- | www/ruby-webunit/pkg-comment | 1 | ||||
-rw-r--r-- | www/ruby-webunit/pkg-descr | 6 | ||||
-rw-r--r-- | www/ruby-webunit/pkg-plist | 79 |
7 files changed, 156 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index 6b41d785b5f3..c57707831feb 100644 --- a/www/Makefile +++ b/www/Makefile @@ -266,6 +266,7 @@ SUBDIR += ruboard SUBDIR += ruby-http-access SUBDIR += ruby-tmpl + SUBDIR += ruby-webunit SUBDIR += screem SUBDIR += sitecopy SUBDIR += skipstone diff --git a/www/ruby-webunit/Makefile b/www/ruby-webunit/Makefile new file mode 100644 index 000000000000..85a2dca8d322 --- /dev/null +++ b/www/ruby-webunit/Makefile @@ -0,0 +1,48 @@ +# New ports collection makefile for: Ruby/WebUnit +# Date created: 20 September 2001 +# Whom: Akinori MUSHA aka knu <knu@idaemons.org> +# +# $FreeBSD$ +# + +PORTNAME= webunit +PORTVERSION= 20010919 +CATEGORIES= www textproc ruby +MASTER_SITES= http://www.jbt.co.jp/user/yuichi/ruby/webunit/ +PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} +DISTNAME= ${PORTNAME}-${PORTVERSION}-alpha +DIST_SUBDIR= ruby + +MAINTAINER= knu@FreeBSD.org + +RUN_DEPENDS= ${RUBY_SITELIBDIR}/runit/assert.rb:${PORTSDIR}/devel/ruby-unit \ + ${RUBY_SITELIBDIR}/html-parser.rb:${PORTSDIR}/textproc/ruby-html-parser \ + ${RUBY_SITELIBDIR}/htmlrepair.rb:${PORTSDIR}/textproc/ruby-htmlrepair \ + ${RUBY_SITELIBDIR}/htmlsplit.rb:${PORTSDIR}/textproc/ruby-htmlsplit + +USE_RUBY= yes + +WRKSRC= ${WRKDIR}/${PORTNAME} +NO_BUILD= yes + +EXAMPLES_EN= cgi test sample +DOCS_EN= index-en.html +DOCS_JA= index-ja.html TIPS-ja.html TODO-ja.sdf + +do-install: + cd ${WRKSRC} && ${RUBY} install.rb +.if !defined(NOPORTDOCS) + ${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME} +.for f in ${EXAMPLES_EN} + ${CP} -R ${WRKSRC}/${f} ${RUBY_EXAMPLESDIR}/${PORTNAME}/ +.endfor + ${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}/ja +.for f in ${DOCS_EN} + ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${RUBY_DOCDIR}/${PORTNAME}/ +.endfor +.for f in ${DOCS_JA} + ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${RUBY_DOCDIR}/${PORTNAME}/ja/ +.endfor +.endif + +.include <bsd.port.mk> diff --git a/www/ruby-webunit/distinfo b/www/ruby-webunit/distinfo new file mode 100644 index 000000000000..f4f028e98fe3 --- /dev/null +++ b/www/ruby-webunit/distinfo @@ -0,0 +1 @@ +MD5 (ruby/webunit-20010919-alpha.tar.gz) = 8c913ae5200d07c37655490b7b5849b7 diff --git a/www/ruby-webunit/files/patch-install.rb b/www/ruby-webunit/files/patch-install.rb new file mode 100644 index 000000000000..b27edc8ff898 --- /dev/null +++ b/www/ruby-webunit/files/patch-install.rb @@ -0,0 +1,20 @@ +--- install.rb.orig Thu Jul 26 17:50:49 2001 ++++ install.rb Thu Sep 20 14:59:29 2001 +@@ -5,7 +5,7 @@ + =end + + require 'rbconfig' +-lib_dir = Config::CONFIG['sitedir'] ++lib_dir = File.join(Config::CONFIG['sitedir'], Config::CONFIG['ruby_version']) + bin_dir = Config::CONFIG['bindir'] + + require 'ftools' +@@ -23,7 +23,7 @@ + File::install( path, to, 0644, true ) + } + +-%w( html-parser htmlrepair ).each do |dir| ++%w( ).each do |dir| + Dir::chdir( BASEDIR + '/contrib/' + dir ) + system( 'ruby install.rb' ) + end diff --git a/www/ruby-webunit/pkg-comment b/www/ruby-webunit/pkg-comment new file mode 100644 index 000000000000..ec94911e3e68 --- /dev/null +++ b/www/ruby-webunit/pkg-comment @@ -0,0 +1 @@ +A Ruby API for automated unit testing of web sites diff --git a/www/ruby-webunit/pkg-descr b/www/ruby-webunit/pkg-descr new file mode 100644 index 000000000000..8ddca1e71b67 --- /dev/null +++ b/www/ruby-webunit/pkg-descr @@ -0,0 +1,6 @@ +Ruby/WebUnit is a Ruby API to test HTML/CGI without a browser, and is +idealy suited for automated unit testing of web sites when combined +with a Ruby unit test framework such as RubyUnit. + +Author: yuichi TAKAHASHI <yuichi@jbt.co.jp> +WWW: http://www.jbt.co.jp/user/yuichi/ruby/webunit/ diff --git a/www/ruby-webunit/pkg-plist b/www/ruby-webunit/pkg-plist new file mode 100644 index 000000000000..1bc068c5080d --- /dev/null +++ b/www/ruby-webunit/pkg-plist @@ -0,0 +1,79 @@ +%%RUBY_SITELIBDIR%%/webunit/assert.rb +%%RUBY_SITELIBDIR%%/webunit/cookie.rb +%%RUBY_SITELIBDIR%%/webunit/exception.rb +%%RUBY_SITELIBDIR%%/webunit/form.rb +%%RUBY_SITELIBDIR%%/webunit/frame.rb +%%RUBY_SITELIBDIR%%/webunit/htmlelem.rb +%%RUBY_SITELIBDIR%%/webunit/image.rb +%%RUBY_SITELIBDIR%%/webunit/jscript.rb +%%RUBY_SITELIBDIR%%/webunit/link.rb +%%RUBY_SITELIBDIR%%/webunit/params.rb +%%RUBY_SITELIBDIR%%/webunit/parser.rb +%%RUBY_SITELIBDIR%%/webunit/response.rb +%%RUBY_SITELIBDIR%%/webunit/table.rb +%%RUBY_SITELIBDIR%%/webunit/testcase.rb +%%RUBY_SITELIBDIR%%/webunit/utils.rb +%%RUBY_SITELIBDIR%%/webunit/webunit.rb +@dirrm %%RUBY_SITELIBDIR%%/webunit +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/cgi/assert.html +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/cgi/auth/.htaccess +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/cgi/auth/.htpasswd +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/cgi/auth/index.html +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/cgi/badtags.html +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/cgi/cookie.cgi +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/cgi/form.html +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/cgi/frame-0.html +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/cgi/frame-1.html +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/cgi/frame.html +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/cgi/image.html +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/cgi/images/x.gif +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/cgi/images/y.gif +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/cgi/jscript-0.html +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/cgi/jscript-1.html +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/cgi/jscript.html +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/cgi/link.html +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/cgi/params.html +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/cgi/redirect.cgi +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/cgi/response.html +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/cgi/simple.cgi +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/cgi/stock.cgi +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/cgi/table.html +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/sample/conv/digit-0.cgi +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/sample/conv/digit-0.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/sample/conv/digit-1.cgi +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/sample/conv/digit-1.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/sample/conv/digit.cgi +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/sample/conv/digit.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/sample/conv/test_digit-0.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/sample/conv/test_digit-1.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/sample/conv/test_digit.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/sample/conv/test_digit_view-0.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/sample/conv/test_digit_view-1.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/sample/conv/test_digit_view.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/test/test_assert.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/test/test_cookie.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/test/test_form.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/test/test_frame.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/test/test_htmlelem.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/test/test_image.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/test/test_jscript.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/test/test_link.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/test/test_params.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/test/test_parser.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/test/test_response.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/test/test_table.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/test/test_utils.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/webunit/test/test_webunit.rb +%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/webunit/test +%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/webunit/sample/conv +%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/webunit/sample +%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/webunit/cgi/images +%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/webunit/cgi/auth +%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/webunit/cgi +%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/webunit +%%PORTDOCS%%%%RUBY_DOCDIR%%/webunit/index-en.html +%%PORTDOCS%%%%RUBY_DOCDIR%%/webunit/ja/index-ja.html +%%PORTDOCS%%%%RUBY_DOCDIR%%/webunit/ja/TIPS-ja.html +%%PORTDOCS%%%%RUBY_DOCDIR%%/webunit/ja/TODO-ja.sdf +%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/webunit/ja +%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/webunit |