aboutsummaryrefslogtreecommitdiff
path: root/devel/pear-Validate
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2004-08-26 22:30:48 +0000
committerThierry Thomas <thierry@FreeBSD.org>2004-08-26 22:30:48 +0000
commit26d2444339e5c85befbfc29e09d0eff3b8bf3fe7 (patch)
treee9852680721b4c306deb4acf3a34282b90847db2 /devel/pear-Validate
parente019238ccd5e50db3ceba81eeaac7983e6e33730 (diff)
downloadports-26d2444339e5c85befbfc29e09d0eff3b8bf3fe7.tar.gz
ports-26d2444339e5c85befbfc29e09d0eff3b8bf3fe7.zip
Notes
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