ports/70945: New port: devel/pear-Validate Validation class
Antônio Carlos Venâncio Júnior
antonio at php.net
Wed Aug 25 23:30:31 UTC 2004
The following reply was made to PR ports/70945; it has been noted by GNATS.
From: =?ISO-8859-1?Q?Ant=F4nio_Carlos_Ven=E2ncio_J=FAnior?= <antonio at php.net>
To: Thierry Thomas <thierry at pompo.net>
Cc: freebsd-gnats-submit at FreeBSD.org
Subject: Re: ports/70945: New port: devel/pear-Validate Validation class
Date: Wed, 25 Aug 2004 20:21:28 -0300
This is a multi-part message in MIME format.
--------------090203050304000601030902
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Thierry,
Thierry Thomas wrote:
> Hello,
>
> Le Mer 25 aoû 04 à 17:01:53 +0200, Antônio Carlos Venâncio Júnior <antonio at php.net>
> écrivait :
>
>>>Number: 70945
>>>Category: ports
>>>Synopsis: New port: devel/pear-Validate Validation class
>
>
> The files Validate/AT.php and Validate/CH.php contain a string
> @DATADIR@, to be replaced by data_dir; then, the files AT_postcodes.txt
> and CH_postcodes.txt should be installed in this data directory.
here is the full shar file (with @DATADIR@). ;)
> data does not exist in pear-PEAR/Makefile.common: I think it should be
> defined, like you have proposed for sql in PR ports/70915. Could you add
> it, please?
>
> Regards,
--
Cya
Antônio
echo antonio php net | sed 's/ /@/;s/ /./g'
FreeBSD/OpenBSD | PHP/MySQL/Python | PGP Key ID 0x5BBEB073
"Can't buy what I want because its FREE!" - Pearl Jam
--------------090203050304000601030902
Content-Type: text/plain;
name="pear-Validate.shar"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="pear-Validate.shar"
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# pear-Validate
# pear-Validate/Makefile
# pear-Validate/distinfo
# pear-Validate/pkg-descr
#
echo c - pear-Validate
mkdir -p pear-Validate > /dev/null 2>&1
echo x - pear-Validate/Makefile
sed 's/^X//' >pear-Validate/Makefile << 'END-of-pear-Validate/Makefile'
X# Ports collection makefile for: pear-Validate
X# Date created: 25 August 2004
X# Whom: Antonio Carlos Venancio Junior (<antonio at php.net>)
X#
X# $FreeBSD$
X#
X
XPORTNAME= Validate
XPORTVERSION= 0.4.1
XCATEGORIES= devel www pear
X
XMAINTAINER= antonio at php.net
XCOMMENT= Validation class
X
XBUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR
XRUN_DEPENDS= ${BUILD_DEPENDS}
X
XFILES= Validate.php Validate/Finance.php \
X Validate/Finance/IBAN.php Validate/AT.php Validate/CH.php \
X Validate/DE.php Validate/ES.php Validate/FR.php \
X Validate/NL.php Validate/PL.php Validate/ptBR.php \
X Validate/UK.php Validate/US.php
X
XTESTS= number.php date.php credit_card.php validate_AT.php \
X validate_CH.php validate_DE.php validate_NL.php \
X validate_UK.php validate_Finance.php
X
XDOCS= sample_multiple.php
X
XDATA= AT_postcodes.txt CH_postcodes.txt
XDATAFILES= Validate/AT.php Validate/CH.php
X
X.include <bsd.port.pre.mk>
X.include "${PORTSDIR}/devel/pear-PEAR/Makefile.common"
X
XSED_SCRIPT= -i "" 's|@DATADIR@|${LOCALBASE}/${LDATADIR:H}|g'
X
Xpost-extract:
X. for f in ${DATAFILES}
X @${SED} ${SED_SCRIPT} ${WRKSRC}/${f}
X. endfor
X
X.include <bsd.port.post.mk>
END-of-pear-Validate/Makefile
echo x - pear-Validate/distinfo
sed 's/^X//' >pear-Validate/distinfo << 'END-of-pear-Validate/distinfo'
XMD5 (PEAR/Validate-0.4.1.tgz) = 6203c4285dc8ff0736b823fa6e991de4
XSIZE (PEAR/Validate-0.4.1.tgz) = 37615
END-of-pear-Validate/distinfo
echo x - pear-Validate/pkg-descr
sed 's/^X//' >pear-Validate/pkg-descr << 'END-of-pear-Validate/pkg-descr'
XPackage to validate various datas. It includes:
X* numbers (min/max, decimal or not)
X* email (syntax, domain check)
X* string (predifined type alpha upper and/or lowercase, numeric,...)
X* date (min, max)
X* Credit cards
X* uri (RFC2396)
X* possibility valid multiple data with a single method call (::multiple)
X* Locale validation for AT, CH, DE, ES, FR, NL, PL, ptBR, UK, US
X* Finance (e.g. IBAN)
X
XWWW: http://pear.php.net/package/Validate
END-of-pear-Validate/pkg-descr
exit
--------------090203050304000601030902--
More information about the freebsd-ports-bugs
mailing list