From 449d06989f99c407ac3efc6e1e6f36d26af1f04f Mon Sep 17 00:00:00 2001 From: Aaron Dalton Date: Mon, 15 May 2006 16:39:18 +0000 Subject: Adding port textproc/p5-TeX-Encode, Encode/decode Perl utf-8 strings into TeX Approved by: tobez (implicit) --- textproc/p5-TeX-Encode/Makefile | 32 ++++++++++++++++++++++++++++++++ textproc/p5-TeX-Encode/distinfo | 3 +++ textproc/p5-TeX-Encode/pkg-descr | 17 +++++++++++++++++ textproc/p5-TeX-Encode/pkg-plist | 8 ++++++++ 4 files changed, 60 insertions(+) create mode 100644 textproc/p5-TeX-Encode/Makefile create mode 100644 textproc/p5-TeX-Encode/distinfo create mode 100644 textproc/p5-TeX-Encode/pkg-descr create mode 100644 textproc/p5-TeX-Encode/pkg-plist (limited to 'textproc/p5-TeX-Encode') diff --git a/textproc/p5-TeX-Encode/Makefile b/textproc/p5-TeX-Encode/Makefile new file mode 100644 index 000000000000..38263df5ac24 --- /dev/null +++ b/textproc/p5-TeX-Encode/Makefile @@ -0,0 +1,32 @@ +# New ports collection makefile for: TeX-Encode +# Date created: 15 May2006 +# Whom: Aaron Dalton +# +# $FreeBSD$ +# + +PORTNAME= TeX-Encode +PORTVERSION= 0.4 +CATEGORIES= textproc perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= ../../authors/id/T/TI/TIMBRODY +PKGNAMEPREFIX= p5- + +MAINTAINER= aaron@FreeBSD.org +COMMENT= Encode/decode Perl utf-8 strings into TeX + +BUILD_DEPENDS= ${SITE_PERL}/Pod/LaTeX.pm:${PORTSDIR}/textproc/p5-Pod-LaTeX \ + ${SITE_PERL}/${PERL_ARCH}/HTML/Entities.pm:${PORTSDIR}/www/p5-HTML-Parser +RUN_DEPENDS= ${BUILD_DEPENDS} + +MAN3= TeX::Encode.3 + +PERL_CONFIGURE= yes + +.include + +.if ${PERL_LEVEL} < 500800 +IGNORE= requires at least Perl 5.8 due to dependencies. Please install lang/perl5.8 and try again +.endif + +.include diff --git a/textproc/p5-TeX-Encode/distinfo b/textproc/p5-TeX-Encode/distinfo new file mode 100644 index 000000000000..ca7e224b5aa0 --- /dev/null +++ b/textproc/p5-TeX-Encode/distinfo @@ -0,0 +1,3 @@ +MD5 (TeX-Encode-0.4.tar.gz) = 1f77d612ccaf5c48a68d52bd406dfb28 +SHA256 (TeX-Encode-0.4.tar.gz) = 749f0414e843f9b5976859754d70e47a0518003b29e7479ad608189aced51a57 +SIZE (TeX-Encode-0.4.tar.gz) = 4824 diff --git a/textproc/p5-TeX-Encode/pkg-descr b/textproc/p5-TeX-Encode/pkg-descr new file mode 100644 index 000000000000..46603feb628e --- /dev/null +++ b/textproc/p5-TeX-Encode/pkg-descr @@ -0,0 +1,17 @@ +This module provides encoding to LaTeX escapes from utf8 using mapping +tables in Pod::LaTeX and HTML::Entities. This covers only a subset of the +Unicode character table (undef warnings will occur for non-mapped chars). + +Mileage will vary when decoding (converting TeX to utf8), as TeX is in +essence a programming language, and this module does not implement TeX. + +I use this module to encode author names in BibTeX and to do a rough job +at presenting LaTeX abstracts in HTML. Using decode rather than seeing +$\sqrt{\Omega^2\zeta_n}$ you get something that looks like the formula. + +The next logical step for this module is to integrate some level of TeX +grammar to improve the decoding, in particular to handle fractions and +font changes (which should probably be dropped). + +WWW: http://search.cpan.org/dist/TeX-Encode +Author: Timothy D Brody diff --git a/textproc/p5-TeX-Encode/pkg-plist b/textproc/p5-TeX-Encode/pkg-plist new file mode 100644 index 000000000000..8e69392d170a --- /dev/null +++ b/textproc/p5-TeX-Encode/pkg-plist @@ -0,0 +1,8 @@ +%%SITE_PERL%%/TeX/Encode.pm +%%SITE_PERL%%/auto/TeX/Encode/autosplit.ix +%%SITE_PERL%%/%%PERL_ARCH%%/auto/TeX/Encode/.packlist +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/TeX/Encode +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/TeX +@dirrm %%SITE_PERL%%/auto/TeX/Encode +@dirrmtry %%SITE_PERL%%/auto/TeX +@dirrmtry %%SITE_PERL%%/TeX -- cgit v1.2.3