aboutsummaryrefslogtreecommitdiff
path: root/converters/p5-Encode-compat
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-04-14 07:00:45 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-04-14 07:00:45 +0000
commit1c841e8918df53f48a18bf2f0e878c93d4a68fc7 (patch)
tree864b51f3e6ce454fe2dfb7dfe9cf1c9e9cb87ce7 /converters/p5-Encode-compat
parent7fcc8327fa0d4948d00a6a8eacc540ffcf15e4a7 (diff)
downloadports-1c841e8918df53f48a18bf2f0e878c93d4a68fc7.tar.gz
ports-1c841e8918df53f48a18bf2f0e878c93d4a68fc7.zip
new port: p5-Encode-compat, Encode.pm compatibility for perl 5.6.1
PR: ports/50926 Reviewed by: Erwin Lansing <erwin@lansing.dk>
Notes
Notes: svn path=/head/; revision=78944
Diffstat (limited to 'converters/p5-Encode-compat')
-rw-r--r--converters/p5-Encode-compat/Makefile31
-rw-r--r--converters/p5-Encode-compat/distinfo1
-rw-r--r--converters/p5-Encode-compat/pkg-descr11
-rw-r--r--converters/p5-Encode-compat/pkg-plist9
4 files changed, 52 insertions, 0 deletions
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 <erwin@lansing.dk>
+#
+# $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 <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} != 500601
+IGNORE= This module only support perl 5.6.1
+.endif
+
+.include <bsd.port.post.mk>
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