diff options
author | Aaron Dalton <aaron@FreeBSD.org> | 2006-05-15 16:39:18 +0000 |
---|---|---|
committer | Aaron Dalton <aaron@FreeBSD.org> | 2006-05-15 16:39:18 +0000 |
commit | 449d06989f99c407ac3efc6e1e6f36d26af1f04f (patch) | |
tree | e1f72361435ef774acb3a302b47f47d96f23d168 /textproc/p5-TeX-Encode | |
parent | fe4eb5c6cd17f3a745b315052e3154c1343725ea (diff) | |
download | ports-449d06989f99c407ac3efc6e1e6f36d26af1f04f.tar.gz ports-449d06989f99c407ac3efc6e1e6f36d26af1f04f.zip |
Adding port textproc/p5-TeX-Encode, Encode/decode Perl utf-8 strings into TeX
Approved by: tobez (implicit)
Notes
Notes:
svn path=/head/; revision=162462
Diffstat (limited to 'textproc/p5-TeX-Encode')
-rw-r--r-- | textproc/p5-TeX-Encode/Makefile | 32 | ||||
-rw-r--r-- | textproc/p5-TeX-Encode/distinfo | 3 | ||||
-rw-r--r-- | textproc/p5-TeX-Encode/pkg-descr | 17 | ||||
-rw-r--r-- | textproc/p5-TeX-Encode/pkg-plist | 8 |
4 files changed, 60 insertions, 0 deletions
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 <aaron@FreeBSD.org> +# +# $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 <bsd.port.pre.mk> + +.if ${PERL_LEVEL} < 500800 +IGNORE= requires at least Perl 5.8 due to dependencies. Please install lang/perl5.8 and try again +.endif + +.include <bsd.port.post.mk> 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 <tdb01r@ecs.soton.ac.uk> 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 |