From e6c6a7aca02c4baddca0583a70499771512efb63 Mon Sep 17 00:00:00 2001 From: edwin Date: Mon, 14 Apr 2003 07:00:45 +0000 Subject: new port: p5-Encode-compat, Encode.pm compatibility for perl 5.6.1 PR: ports/50926 Reviewed by: Erwin Lansing --- converters/p5-Encode-compat/Makefile | 31 +++++++++++++++++++++++++++++++ converters/p5-Encode-compat/distinfo | 1 + converters/p5-Encode-compat/pkg-descr | 11 +++++++++++ converters/p5-Encode-compat/pkg-plist | 9 +++++++++ 4 files changed, 52 insertions(+) create mode 100644 converters/p5-Encode-compat/Makefile create mode 100644 converters/p5-Encode-compat/distinfo create mode 100644 converters/p5-Encode-compat/pkg-descr create mode 100644 converters/p5-Encode-compat/pkg-plist (limited to 'converters/p5-Encode-compat') diff --git a/converters/p5-Encode-compat/Makefile b/converters/p5-Encode-compat/Makefile new file mode 100644 index 000000000000..4b552404b4f2 --- /dev/null +++ b/converters/p5-Encode-compat/Makefile @@ -0,0 +1,31 @@ +# New ports collection makefile for: p5-Encode-compat +# Date created: Mon April 14th, 2003 +# Whom: Erwin Lansing +# +# $FreeBSD$ +# + +PORTNAME= Encode-compat +PORTVERSION= 0.05 +CATEGORIES= devel perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= Encode +PKGNAMEPREFIX= p5- + +MAINTAINER= erwin@lansing.dk +COMMENT= Compatibility interfaces for Encode.pm on Perl < 5.7.1 + +BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Text/Iconv.pm:${PORTSDIR}/converters/p5-Text-Iconv +RUN_DEPENDS= ${BUILD_DEPENDS} + +PERL_CONFIGURE= yes + +MAN3= Encode::compat.3 Encode::compat::Alias.3 + +.include + +.if ${PERL_LEVEL} != 500601 +IGNORE= This module only support perl 5.6.1 +.endif + +.include diff --git a/converters/p5-Encode-compat/distinfo b/converters/p5-Encode-compat/distinfo new file mode 100644 index 000000000000..9b58f4c02f38 --- /dev/null +++ b/converters/p5-Encode-compat/distinfo @@ -0,0 +1 @@ +MD5 (Encode-compat-0.05.tar.gz) = 3b2b8c26ea486f656a5d4e79ebd873ae diff --git a/converters/p5-Encode-compat/pkg-descr b/converters/p5-Encode-compat/pkg-descr new file mode 100644 index 000000000000..a38351f12f20 --- /dev/null +++ b/converters/p5-Encode-compat/pkg-descr @@ -0,0 +1,11 @@ +This module provide a compatibility layer for Encode.pm users +on perl versions earlier than v5.7.1. It translates whatever +call it receives into Text::Iconv, or (in the future) +Unicode::MapUTF8 to perform the actual work. + +Currently, this module only support 5.6.1, and merely provides +the three utility function above (encode(), decode() and from_to()), +with a very kludgy FB_HTMLCREF fallback against latin-1 in from_to(). + + +WWW: http://search.cpan.org/dist/Encode-compat/ diff --git a/converters/p5-Encode-compat/pkg-plist b/converters/p5-Encode-compat/pkg-plist new file mode 100644 index 000000000000..56d2791f5569 --- /dev/null +++ b/converters/p5-Encode-compat/pkg-plist @@ -0,0 +1,9 @@ +%%SITE_PERL%%/mach/auto/Encode/compat/.packlist +%%SITE_PERL%%/Encode/compat.pm +%%SITE_PERL%%/Encode/compat/5006001.pm +%%SITE_PERL%%/Encode/compat/common.pm +%%SITE_PERL%%/Encode/compat/Alias.pm +@dirrm %%SITE_PERL%%/mach/auto/Encode/compat +@unexec rmdir %D/%%SITE_PERL%%/mach/auto/Encode 2>/dev/null || true +@dirrm %%SITE_PERL%%/Encode/compat +@unexec rmdir %D/%%SITE_PERL%%/Encode 2>/dev/null || true -- cgit