aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-04-14 15:00:45 +0800
committeredwin <edwin@FreeBSD.org>2003-04-14 15:00:45 +0800
commite6c6a7aca02c4baddca0583a70499771512efb63 (patch)
tree8eb6c8866f6a266a9b92ad42369ae3fa1fef3cf1 /devel
parent69f6ba163d47d4b2f45d92ca346f821fad649b2f (diff)
downloadfreebsd-ports-gnome-e6c6a7aca02c4baddca0583a70499771512efb63.tar.gz
freebsd-ports-gnome-e6c6a7aca02c4baddca0583a70499771512efb63.tar.zst
freebsd-ports-gnome-e6c6a7aca02c4baddca0583a70499771512efb63.zip
new port: p5-Encode-compat, Encode.pm compatibility for perl 5.6.1
PR: ports/50926 Reviewed by: Erwin Lansing <erwin@lansing.dk>
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/p5-Encode-compat/Makefile31
-rw-r--r--devel/p5-Encode-compat/distinfo1
-rw-r--r--devel/p5-Encode-compat/pkg-descr11
-rw-r--r--devel/p5-Encode-compat/pkg-plist9
5 files changed, 53 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 866ff826cecd..778b89ca5fcf 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -518,6 +518,7 @@
SUBDIR += p5-Devel-Symdump
SUBDIR += p5-Devel-ptkdb
SUBDIR += p5-Dialog
+ SUBDIR += p5-Encode-compat
SUBDIR += p5-Errno
SUBDIR += p5-Event
SUBDIR += p5-Exception-Class
diff --git a/devel/p5-Encode-compat/Makefile b/devel/p5-Encode-compat/Makefile
new file mode 100644
index 000000000000..4b552404b4f2
--- /dev/null
+++ b/devel/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/devel/p5-Encode-compat/distinfo b/devel/p5-Encode-compat/distinfo
new file mode 100644
index 000000000000..9b58f4c02f38
--- /dev/null
+++ b/devel/p5-Encode-compat/distinfo
@@ -0,0 +1 @@
+MD5 (Encode-compat-0.05.tar.gz) = 3b2b8c26ea486f656a5d4e79ebd873ae
diff --git a/devel/p5-Encode-compat/pkg-descr b/devel/p5-Encode-compat/pkg-descr
new file mode 100644
index 000000000000..a38351f12f20
--- /dev/null
+++ b/devel/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/devel/p5-Encode-compat/pkg-plist b/devel/p5-Encode-compat/pkg-plist
new file mode 100644
index 000000000000..56d2791f5569
--- /dev/null
+++ b/devel/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