import geo/p5-Geo-UK-Postcode-Regex, ok landry@

Parse UK postcodes with regular expressions. Handles partial postcodes
(just the outcode or sector), and can test against valid characters and
currently valid outcodes, and determine posttown(s) from a postcode.
This commit is contained in:
sthen 2016-01-11 10:14:43 +00:00
parent f7097e5084
commit f31a891446
4 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,30 @@
# $OpenBSD: Makefile,v 1.1.1.1 2016/01/11 10:14:43 sthen Exp $
COMMENT= regular expressions for handling British postcodes
MODULES= cpan
DISTNAME= Geo-UK-Postcode-Regex-0.015
CATEGORIES= geo
# Perl
PERMIT_PACKAGE_CDROM= Yes
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
BUILD_DEPENDS= devel/p5-File-ShareDir-Install \
devel/p5-Module-Build-Tiny
TEST_DEPENDS= devel/p5-Test-Exception
CONFIGURE_STYLE= modbuild
# Module::Build::Tiny like "--" prefix for CLI options
do-install:
@cd ${WRKSRC} && perl \
${MODPERL_BUILD} ${FAKE_TARGET} \
--destdir "${PREFIX}" \
--install_path lib="libdata/perl5/site_perl" \
--install_path=libdoc="man/man3p" \
--install_path=bindoc="man/man1" \
--install_path script="bin"
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (Geo-UK-Postcode-Regex-0.015.tar.gz) = TehIRh64Ow+35DjsqDUkHf/RWkhyHAu0PzpFAm5DmLU=
SIZE (Geo-UK-Postcode-Regex-0.015.tar.gz) = 41903

View File

@ -0,0 +1,3 @@
Parse UK postcodes with regular expressions. Handles partial postcodes
(just the outcode or sector), and can test against valid characters and
currently valid outcodes, and determine posttown(s) from a postcode.

View File

@ -0,0 +1,16 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2016/01/11 10:14:43 sthen Exp $
${P5SITE}/Geo/
${P5SITE}/Geo/UK/
${P5SITE}/Geo/UK/Postcode/
${P5SITE}/Geo/UK/Postcode/Regex/
${P5SITE}/Geo/UK/Postcode/Regex.pm
${P5SITE}/Geo/UK/Postcode/Regex/Hash.pm
${P5SITE}/Geo/UK/Postcode/Regex/Simple.pm
${P5SITE}/auto/
${P5SITE}/auto/share/
${P5SITE}/auto/share/dist/
${P5SITE}/auto/share/dist/Geo-UK-Postcode-Regex/
${P5SITE}/auto/share/dist/Geo-UK-Postcode-Regex/get_pc_districts.pl
@man man/man3p/Geo::UK::Postcode::Regex.3p
@man man/man3p/Geo::UK::Postcode::Regex::Hash.3p
@man man/man3p/Geo::UK::Postcode::Regex::Simple.3p