? p5-LaTeX-Encode-0.08.diff
? patches
Index: Makefile
===================================================================
RCS file: /cvs/ports/textproc/p5-LaTeX-Encode/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- Makefile    11 Mar 2013 11:42:43 -0000      1.2
+++ Makefile    13 Aug 2013 15:43:41 -0000
@@ -2,14 +2,28 @@
 
 COMMENT=               encode characters for LaTeX formatting
 
-DISTNAME=              LaTeX-Encode-0.03
+DISTNAME=              LaTeX-Encode-0.08
 CATEGORIES=            textproc
 
 MODULES=               cpan
 
-# MIT
+# Perl
 PERMIT_PACKAGE_CDROM=  Yes
 
-TEST_DEPENDS=  devel/p5-Test-Pod-Coverage>=1.08p1
+RUN_DEPENDS=           devel/p5-Readonly
+
+BUILD_DEPENDS=         ${RUN_DEPENDS} \
+                       www/p5-HTML-Parser \
+                       devel/p5-File-Slurp
+
+TEST_DEPENDS=          print/texlive/base
+
+pre-test:
+       ${SUBST_CMD} ${WRKSRC}/t/10-typeset-document.t
+
+post-install:
+# This script and man page are mistakenly installed
+       rm ${PREFIX}/bin/latex-encode
+       rm ${PREFIX}/man/man1/latex-encode.1
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/textproc/p5-LaTeX-Encode/distinfo,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 distinfo
--- distinfo    27 Jun 2012 10:57:54 -0000      1.1.1.1
+++ distinfo    13 Aug 2013 15:43:41 -0000
@@ -1,5 +1,2 @@
-MD5 (LaTeX-Encode-0.03.tar.gz) = o928fLb4RtfhTm+lMyxwaw==
-RMD160 (LaTeX-Encode-0.03.tar.gz) = 4d12bm4q35VrnJwOq+ZZwtyrBnE=
-SHA1 (LaTeX-Encode-0.03.tar.gz) = A9CVsSvEJSmPy1bO9fCiAHz8UVs=
-SHA256 (LaTeX-Encode-0.03.tar.gz) = 
jbvFjR13GJA304upQsxpkwKYA1bk8qP9kBy/Eg+W7K4=
-SIZE (LaTeX-Encode-0.03.tar.gz) = 22547
+SHA256 (LaTeX-Encode-0.08.tar.gz) = 
N8cLKNsXWQd6FROJazW+KrckdqswOBRNooRBu1Xow64=
+SIZE (LaTeX-Encode-0.08.tar.gz) = 46672
Index: pkg/DESCR
===================================================================
RCS file: /cvs/ports/textproc/p5-LaTeX-Encode/pkg/DESCR,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 DESCR
--- pkg/DESCR   27 Jun 2012 10:57:54 -0000      1.1.1.1
+++ pkg/DESCR   13 Aug 2013 15:43:41 -0000
@@ -1,18 +1,10 @@
-TeX::Encode exports the function 'latex_encode' which encodes
-characters in a string, that would be incorrectly interpreted by
-LaTeX.
+This module provides a function 'latex_encode' to encode text to be 
+formatted with LaTeX. The latex_encode function takes a text string and
+an optional reference to a hash of options. It encodes characters that
+are special to LaTeX or that are represented in LaTeX by LaTeX text-mode
+commands.
 
-The latex_encode function takes a text string and an optional
-reference to a hash of options.  The options currently supported
-are "exclude" to specify a list of characters that should not be
-encoded (often this is "\\{}" to allow LaTeX commands to be used
-in the text string), and "iquotes" to enable "intelligent quotes",
-that is double quotes around a phrase will be converted to "``" and
-"''" and single quotes to "`" and "'".
-
-The scripts directory contains scripts to help build the character
-encoding tables used by the module and to create and format a
-document listing the characters that the module encodes with their
-Unicode character value, HTML entity representation, LaTeX encoding
-and visual representation.  These scripts are not installed by "make
-install".
+The special characters are: "\" (command character), "{" (open group),
+"}" (end group), "&" (table column separator), "#" (parameter
+specifier), "%" (comment character), "_" (subscript), "^"
+(superscript), "~" (non-breakable space), "$" (mathematics mode).
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/textproc/p5-LaTeX-Encode/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 PLIST
--- pkg/PLIST   27 Jun 2012 10:57:54 -0000      1.1.1.1
+++ pkg/PLIST   13 Aug 2013 15:43:41 -0000
@@ -1,6 +1,7 @@
-@comment $OpenBSD: PLIST,v 1.1.1.1 2012/06/27 10:57:54 sthen Exp $
+@comment $OpenBSD$
 ${P5SITE}/LaTeX/
 ${P5SITE}/LaTeX/Encode/
 ${P5SITE}/LaTeX/Encode.pm
 ${P5SITE}/LaTeX/Encode/EncodingTable.pm
 @man man/man3p/LaTeX::Encode.3p
+@man man/man3p/LaTeX::Encode::EncodingTable.3p


--- /dev/null   Tue Aug 13 10:40:26 2013
+++ patches/patch-t_10-typeset-document_t       Mon Aug 12 18:49:01 2013
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- t/10-typeset-document.t.orig       Tue Jun  4 15:48:41 2013
++++ t/10-typeset-document.t    Tue Jun  4 15:49:33 2013
+@@ -74,7 +74,7 @@ foreach my $ext (qw(aux dvi log tex)) {
+ 
+ 
+ sub find_latex {
+-    foreach my $dir (qw{ /usr/bin /bin }) {
++    foreach my $dir (qw{ /usr/bin /bin ${LOCALBASE}/bin }) {
+         my $prog = "$dir/latex";
+         return $prog if -x $prog;
+     }


Better?

Reply via email to