From 995bd9e729a2cb3d517deb3f5d3a99e806184072 Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Thu, 20 Feb 2003 15:51:00 +0000 Subject: [PATCH] Add ruby-formvalidator, a Ruby module to validate data coming in from HTML forms. --- textproc/Makefile | 1 + textproc/ruby-formvalidator/Makefile | 42 ++++++++++++ textproc/ruby-formvalidator/distinfo | 1 + textproc/ruby-formvalidator/pkg-descr | 9 +++ textproc/ruby-formvalidator/pkg-plist | 93 +++++++++++++++++++++++++++ 5 files changed, 146 insertions(+) create mode 100644 textproc/ruby-formvalidator/Makefile create mode 100644 textproc/ruby-formvalidator/distinfo create mode 100644 textproc/ruby-formvalidator/pkg-descr create mode 100644 textproc/ruby-formvalidator/pkg-plist diff --git a/textproc/Makefile b/textproc/Makefile index b1a1d5d4e591..4f2fe17a26a3 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -324,6 +324,7 @@ SUBDIR += ruby-amrita SUBDIR += ruby-csv SUBDIR += ruby-format + SUBDIR += ruby-formvalidator SUBDIR += ruby-gdome SUBDIR += ruby-html-parser SUBDIR += ruby-htmlcompact diff --git a/textproc/ruby-formvalidator/Makefile b/textproc/ruby-formvalidator/Makefile new file mode 100644 index 000000000000..85b3395364b3 --- /dev/null +++ b/textproc/ruby-formvalidator/Makefile @@ -0,0 +1,42 @@ +# New ports collection makefile for: FormValidator for Ruby +# Date created: 21 February 2003 +# Whom: Akinori MUSHA aka knu +# +# $FreeBSD$ +# + +PORTNAME= formvalidator +PORTVERSION= 0.1.0 +CATEGORIES= textproc www ruby +MASTER_SITES= http://grub.ath.cx/formvalidator/ +PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} +DIST_SUBDIR= ruby + +MAINTAINER= knu@FreeBSD.org +COMMENT= A Ruby module to validate data coming in from HTML forms + +USE_RUBY= yes +USE_RUBY_RDOC= yes + +DOCS= AUTHORS \ + CHANGELOG \ + README \ + doc + +do-build: +.if !defined(NOPORTDOCS) + cd ${BUILD_WRKSRC}; ${RUBY_RDOC} --main README.rdoc formvalidator.rb README.rdoc +.endif + +do-install: + cd ${INSTALL_WRKSRC}; ${RUBY} install.rb +.if !defined(NOPORTDOCS) + ${MKDIR} ${RUBY_MODEXAMPLESDIR}/ + ${CP} -R ${WRKSRC}/examples/* ${RUBY_MODEXAMPLESDIR}/ + ${MKDIR} ${RUBY_MODDOCDIR} +.for f in ${DOCS} + ${CP} -R ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ +.endfor +.endif + +.include diff --git a/textproc/ruby-formvalidator/distinfo b/textproc/ruby-formvalidator/distinfo new file mode 100644 index 000000000000..d256c9eaa2f4 --- /dev/null +++ b/textproc/ruby-formvalidator/distinfo @@ -0,0 +1 @@ +MD5 (ruby/formvalidator-0.1.0.tar.gz) = 6917edec4f385faa1749651b4afb8ff0 diff --git a/textproc/ruby-formvalidator/pkg-descr b/textproc/ruby-formvalidator/pkg-descr new file mode 100644 index 000000000000..abd36afe537b --- /dev/null +++ b/textproc/ruby-formvalidator/pkg-descr @@ -0,0 +1,9 @@ +FormValidator is a port of Perl's Data::FormValidator library. It +makes it easy to validate data coming in from HTML forms and provides +a robust set of methods to handle dependent fields, filtering data, +constraints, etc. It's modular design allows you to easily add your +own filters and constraints and also allows you to keep validation +profiles outside of your CGI scripts. + +Author: Travis Whitton +WWW: http://grub.ath.cx/formvalidator/ diff --git a/textproc/ruby-formvalidator/pkg-plist b/textproc/ruby-formvalidator/pkg-plist new file mode 100644 index 000000000000..10d5820213a9 --- /dev/null +++ b/textproc/ruby-formvalidator/pkg-plist @@ -0,0 +1,93 @@ +%%RUBY_SITELIBDIR%%/formvalidator.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/extend.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/file.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/profiles/extension.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/profiles/my_profile.rb +%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/standard.rb +%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%/profiles +%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%% +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/AUTHORS +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/CHANGELOG +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/README +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator.src/M000001.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator.src/M000002.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator.src/M000003.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator.src/M000004.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator.src/M000005.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator.src/M000006.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/ConstraintHelpers.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/ConstraintHelpers.src/M000035.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/ConstraintHelpers.src/M000036.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/ConstraintHelpers.src/M000037.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/ConstraintHelpers.src/M000038.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/ConstraintHelpers.src/M000039.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/ConstraintHelpers.src/M000040.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/ConstraintHelpers.src/M000041.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/ConstraintHelpers.src/M000042.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/Constraints.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/Constraints.src/M000022.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/Constraints.src/M000023.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/Constraints.src/M000024.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/Constraints.src/M000025.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/Constraints.src/M000026.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/Constraints.src/M000027.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/Constraints.src/M000028.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/Constraints.src/M000029.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/Constraints.src/M000030.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/Constraints.src/M000031.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/Constraints.src/M000032.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/Constraints.src/M000033.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/Constraints.src/M000034.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/Filters.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/Filters.src/M000043.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/Filters.src/M000044.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/Filters.src/M000045.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/Filters.src/M000046.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/Filters.src/M000047.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/Filters.src/M000048.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/Filters.src/M000049.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/Filters.src/M000050.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/Filters.src/M000051.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/Filters.src/M000052.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/Filters.src/M000053.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/Filters.src/M000054.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/Filters.src/M000055.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/Filters.src/M000056.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/Filters.src/M000057.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/Filters.src/M000058.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/Filters.src/M000059.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/InputProfile.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/InputProfile.src/M000007.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/InputProfile.src/M000008.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/InputProfile.src/M000009.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/InputProfile.src/M000010.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/InputProfile.src/M000011.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/InputProfile.src/M000012.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/InputProfile.src/M000013.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/InputProfile.src/M000014.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/InputProfile.src/M000015.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/InputProfile.src/M000016.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/InputProfile.src/M000017.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/InputProfile.src/M000018.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/InputProfile.src/M000019.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/InputProfile.src/M000020.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/FormValidator/InputProfile.src/M000021.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/created.rid +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/files/README_rdoc.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/files/formvalidator_rb.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/fr_class_index.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/fr_file_index.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/fr_method_index.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/index.html +%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/rdoc-style.css +%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/doc/files +%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/doc/classes/FormValidator/InputProfile.src +%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/doc/classes/FormValidator/Filters.src +%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/doc/classes/FormValidator/Constraints.src +%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/doc/classes/FormValidator/ConstraintHelpers.src +%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/doc/classes/FormValidator.src +%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/doc/classes/FormValidator +%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/doc/classes +%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/doc +%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%