mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Add pear-Validate 0.4.1, validation class.
PR: 70945 Submitted by: Antonio Carlos Venancio Junior
This commit is contained in:
parent
e019238ccd
commit
26d2444339
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=117376
4 changed files with 59 additions and 0 deletions
|
@ -1048,6 +1048,7 @@
|
||||||
SUBDIR += pear-PEAR
|
SUBDIR += pear-PEAR
|
||||||
SUBDIR += pear-PHPUnit
|
SUBDIR += pear-PHPUnit
|
||||||
SUBDIR += pear-VFS
|
SUBDIR += pear-VFS
|
||||||
|
SUBDIR += pear-Validate
|
||||||
SUBDIR += pear-XML_Parser
|
SUBDIR += pear-XML_Parser
|
||||||
SUBDIR += pear-XML_RPC
|
SUBDIR += pear-XML_RPC
|
||||||
SUBDIR += pear-XML_RSS
|
SUBDIR += pear-XML_RSS
|
||||||
|
|
44
devel/pear-Validate/Makefile
Normal file
44
devel/pear-Validate/Makefile
Normal file
|
@ -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>
|
2
devel/pear-Validate/distinfo
Normal file
2
devel/pear-Validate/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
MD5 (PEAR/Validate-0.4.1.tgz) = 6203c4285dc8ff0736b823fa6e991de4
|
||||||
|
SIZE (PEAR/Validate-0.4.1.tgz) = 37615
|
12
devel/pear-Validate/pkg-descr
Normal file
12
devel/pear-Validate/pkg-descr
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue