aboutsummaryrefslogtreecommitdiffstats
path: root/devel/pear-Validate
diff options
context:
space:
mode:
authorthierry <thierry@FreeBSD.org>2004-08-27 06:30:48 +0800
committerthierry <thierry@FreeBSD.org>2004-08-27 06:30:48 +0800
commitadd2ba4d44d0a2b58e223620820cd1fdd3fe3836 (patch)
tree17caa10036f68575b531a75b5a5e765c571605b4 /devel/pear-Validate
parent1e0d990e38aa7f9121689db81579700d961395f1 (diff)
downloadfreebsd-ports-gnome-add2ba4d44d0a2b58e223620820cd1fdd3fe3836.tar.gz
freebsd-ports-gnome-add2ba4d44d0a2b58e223620820cd1fdd3fe3836.tar.zst
freebsd-ports-gnome-add2ba4d44d0a2b58e223620820cd1fdd3fe3836.zip
Add pear-Validate 0.4.1, validation class.
PR: 70945 Submitted by: Antonio Carlos Venancio Junior
Diffstat (limited to 'devel/pear-Validate')
-rw-r--r--devel/pear-Validate/Makefile44
-rw-r--r--devel/pear-Validate/distinfo2
-rw-r--r--devel/pear-Validate/pkg-descr12
3 files changed, 58 insertions, 0 deletions
diff --git a/devel/pear-Validate/Makefile b/devel/pear-Validate/Makefile
new file mode 100644
index 000000000000..5aad1694ec28
--- /dev/null
+++ b/devel/pear-Validate/Makefile
@@ -0,0 +1,44 @@
+# Ports collection makefile for: pear-Validate
+# Date created: 25 August 2004
+# Whom: Antonio Carlos Venancio Junior (<antonio@php.net>)
+#
+# $FreeBSD$
+#
+
+PORTNAME= Validate
+PORTVERSION= 0.4.1
+CATEGORIES= devel www pear
+
+MAINTAINER= antonio@php.net
+COMMENT= Validation class
+
+BUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+FILES= Validate.php Validate/Finance.php \
+ Validate/Finance/IBAN.php Validate/AT.php Validate/CH.php \
+ Validate/DE.php Validate/ES.php Validate/FR.php \
+ Validate/NL.php Validate/PL.php Validate/ptBR.php \
+ Validate/UK.php Validate/US.php
+
+TESTS= number.php date.php credit_card.php validate_AT.php \
+ validate_CH.php validate_DE.php validate_NL.php \
+ validate_UK.php validate_Finance.php
+
+DOCS= sample_multiple.php
+
+DATA= AT_postcodes.txt CH_postcodes.txt
+DATAFILES= Validate/AT.php Validate/CH.php
+
+USE_REINPLACE= yes
+REINPLACE_ARGS= -i ""
+
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/devel/pear-PEAR/Makefile.common"
+
+post-patch:
+.for f in ${DATAFILES}
+ @${REINPLACE_CMD} -e "s|@DATADIR@/Validate|${DATADIR}|g" ${WRKSRC}/${f}
+.endfor
+
+.include <bsd.port.post.mk>
diff --git a/devel/pear-Validate/distinfo b/devel/pear-Validate/distinfo
new file mode 100644
index 000000000000..f3b8e6f1df8d
--- /dev/null
+++ b/devel/pear-Validate/distinfo
@@ -0,0 +1,2 @@
+MD5 (PEAR/Validate-0.4.1.tgz) = 6203c4285dc8ff0736b823fa6e991de4
+SIZE (PEAR/Validate-0.4.1.tgz) = 37615
diff --git a/devel/pear-Validate/pkg-descr b/devel/pear-Validate/pkg-descr
new file mode 100644
index 000000000000..6ef18391d1cb
--- /dev/null
+++ b/devel/pear-Validate/pkg-descr
@@ -0,0 +1,12 @@
+Package to validate various datas. It includes:
+* numbers (min/max, decimal or not)
+* email (syntax, domain check)
+* string (predifined type alpha upper and/or lowercase, numeric,...)
+* date (min, max)
+* Credit cards
+* uri (RFC2396)
+* possibility valid multiple data with a single method call (::multiple)
+* Locale validation for AT, CH, DE, ES, FR, NL, PL, ptBR, UK, US
+* Finance (e.g. IBAN)
+
+WWW: http://pear.php.net/package/Validate