summaryrefslogtreecommitdiff
path: root/print/enscript-letter/files
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-03-24 19:20:10 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-03-24 19:20:10 +0000
commit96313570f215e76c4654967b1ea1c945aa91796c (patch)
treeb03a1494d407dbcaac8731d2ebf3080f8631ea3b /print/enscript-letter/files
parent- PATCHDIR was hitch-hiking after recent MASTERDIR change, bring it back home. (diff)
- Update to 1.6.4
PR: ports/63639 Submitted by: Jonathan Noack <noackj@concordiacrusaders.org> Approved by: maintainer timeout (3 weeks)
Notes
Notes: svn path=/head/; revision=105138
Diffstat (limited to 'print/enscript-letter/files')
-rw-r--r--print/enscript-letter/files/patch-Makefile.in15
-rw-r--r--print/enscript-letter/files/patch-enscript.st258
-rw-r--r--print/enscript-letter/files/patch-ruby.st208
3 files changed, 242 insertions, 239 deletions
diff --git a/print/enscript-letter/files/patch-Makefile.in b/print/enscript-letter/files/patch-Makefile.in
new file mode 100644
index 000000000000..c2dcb562a18b
--- /dev/null
+++ b/print/enscript-letter/files/patch-Makefile.in
@@ -0,0 +1,15 @@
+--- states/hl/Makefile.in.orig Wed Mar 5 01:40:07 2003
++++ states/hl/Makefile.in Tue Mar 2 06:33:27 2004
+@@ -186,9 +186,9 @@
+ diffs.st diffu.st elisp.st fortran.st fortran_pp.st haskell.st html.st \
+ idl.st inf.st java.st javascript.st ksh.st m4.st mail.st makefile.st \
+ matlab.st nroff.st objc.st outline.st pascal.st passthrough.st perl.st \
+-postscript.st python.st pyrex.st rfc.st scheme.st sh.st skill.st \
+-sql.st states.st synopsys.st tcl.st tcsh.st tex.st vba.st verilog.st \
+-vhdl.st vrml.st wmlscript.st zsh.st
++postscript.st python.st pyrex.st rfc.st ruby.st scheme.st sh.st \
++skill.st sql.st states.st synopsys.st tcl.st tcsh.st tex.st vba.st \
++verilog.st vhdl.st vrml.st wmlscript.st zsh.st
+
+
+ states = $(misc) $(styles) $(languages) $(highlightings)
diff --git a/print/enscript-letter/files/patch-enscript.st b/print/enscript-letter/files/patch-enscript.st
index c990fd77bba4..24e3b6916151 100644
--- a/print/enscript-letter/files/patch-enscript.st
+++ b/print/enscript-letter/files/patch-enscript.st
@@ -1,239 +1,19 @@
-*** states/enscript.st.bak Mon Feb 5 14:38:08 2001
---- states/enscript.st Wed Feb 7 08:51:50 2001
-***************
-*** 1285,1290 ****
---- 1285,1291 ----
- /\.idl$/ idl;
- /\.(hs|lhs|gs|lgs)$/ haskell;
- /\.(pm|pl)$/ perl;
-+ /\.(rb|rbw)$/ ruby;
- /\.(eps|EPS|ps|PS)$/ postscript;
- /\.py$/ python;
- /\.js$/ javascript;
-***************
-*** 1313,1318 ****
---- 1314,1321 ----
- /-\*- [Ii][Dd][Ll] -\*-/ idl;
- /-\*- [Pp][Ee][Rr][Ll] -\*-/ perl;
- /^#![ \t]*\/.*\/perl/ perl;
-+ /-\*- [Rr][Uu][Bb][Yy] -\*-/ ruby;
-+ /^#![ \t]*\/.*\/(env )?ruby/ ruby;
- /^\04?%!/ postscript;
- /^From:/ mail;
- /^#![ \t]*(\/usr)?\/bin\/[ngmt]?awk/ awk;
-***************
-*** 4530,4535 ****
---- 4533,4745 ----
-
- }
-
-+
-+ /**
-+ * Name: ruby
-+ * Description: Ruby programming language.
-+ * Author: Mike Wilson <m.v.wilson@home.com>
-+ */
-+
-+ state ruby_comment
-+ {
-+ /\*\\\// {
-+ language_print ($0);
-+ return;
-+ }
-+ LANGUAGE_SPECIALS {
-+ language_print ($0);
-+ }
-+ }
-+
-+ state ruby_dquot_string
-+ {
-+ /\\\\./ {
-+ language_print ($0);
-+ }
-+ /\"/ {
-+ language_print ($0);
-+ return;
-+ }
-+ LANGUAGE_SPECIALS {
-+ language_print ($0);
-+ }
-+ }
-+
-+ state ruby_quot_string
-+ {
-+ /\\\\./ {
-+ language_print ($0);
-+ }
-+ /[\']/ {
-+ language_print ($0);
-+ return;
-+ }
-+ LANGUAGE_SPECIALS {
-+ language_print ($0);
-+ }
-+ }
-+
-+ state ruby_bquot_string
-+ {
-+ /\\\\./ {
-+ language_print ($0);
-+ }
-+ /`/ {
-+ language_print ($0);
-+ return;
-+ }
-+ LANGUAGE_SPECIALS {
-+ language_print ($0);
-+ }
-+ }
-+
-+ state ruby
-+ {
-+ BEGIN {
-+ header ();
-+ }
-+ END {
-+ trailer ();
-+ }
-+
-+ /* Comments. */
-+ /#[^{].*$/ {
-+ comment_face (true);
-+ language_print ($0);
-+ comment_face (false);
-+ }
-+
-+ /* Ignore escaped quote marks */
-+ /\\\"/ {
-+ language_print ($0);
-+ }
-+ /\\\'/ {
-+ language_print ($0);
-+ }
-+ /\\\`/ {
-+ language_print ($0);
-+ }
-+
-+ /* In cgi files, JavaScript might be imbedded, so we need to look out
-+ * for the JavaScript comments, because they might contain something
-+ * we don't like, like a contraction (don't, won't, etc.)
-+ * We won't put them in comment face, because they are not ruby
-+ * comments.
-+ */
-+ /\/\// {
-+ language_print ($0);
-+ call (eat_one_line);
-+ }
-+
-+ /* String constants. */
-+ /\"/ {
-+ string_face (true);
-+ language_print ($0);
-+ call (ruby_dquot_string);
-+ string_face (false);
-+ }
-+ /[\']/ {
-+ string_face (true);
-+ language_print ($0);
-+ call (ruby_quot_string);
-+ string_face (false);
-+ }
-+
-+ /* Backquoted command string */
-+ /`/ {
-+ string_face (true);
-+ language_print ($0);
-+ call (ruby_bquot_string);
-+ string_face (false);
-+ }
-+
-+ /* Variables globals and instance */
-+ /[$@]\w+/ {
-+ variable_name_face (true);
-+ language_print ($0);
-+ variable_name_face (false);
-+ }
-+
-+ /* Variables class variable */
-+ /@@\w+/ {
-+ variable_name_face (true);
-+ language_print ($0);
-+ variable_name_face (false);
-+ }
-+
-+ /([ \t]*)(def)([ \t]+)([^(]*)/ {
-+ /* indentation */
-+ language_print ($1);
-+
-+ /* def */
-+ keyword_face (true);
-+ language_print ($2);
-+ keyword_face (false);
-+
-+ /* middle */
-+ language_print ($3);
-+
-+ /* Function name. */
-+ function_name_face (true);
-+ language_print ($4);
-+ function_name_face (false);
-+ }
-+
-+ /\$[!@&`'+~=\/\\,;.<>_*$?:"]/ {
-+ variable_name_face (true);
-+ language_print ($0);
-+ variable_name_face (false);
-+ }
-+
-+ /* Highlighting
-+ --Type face
-+ private protected public
-+
-+ --Builtin face (I consider these to be somewhat special)
-+ alias alias_method attr attr_accessor attr_reader attr_writer
-+ module_alias module_function self super
-+
-+ --Reference face
-+ require include
-+
-+ --Keyword face
-+ and begin break case class def defined? do else elsif end
-+ ensure eval extend false for if in method module next nil not
-+ or redo rescue retry return then true undef unless until when
-+ while yield
-+ */
-+ /\\b(private|protected|public)\\b/ {
-+ type_face (true);
-+ language_print ($0);
-+ type_face (false);
-+ }
-+
-+ /\\b(alias|alias_method|attr|attr_accessor|attr_reader|attr_writer\\
-+ |module_alias|module_function|self|super)\\b/ {
-+ builtin_face (true);
-+ language_print ($0);
-+ builtin_face (false);
-+ }
-+
-+ /\\b(include|require)\\b/ {
-+ reference_face (true);
-+ language_print ($0);
-+ reference_face (false);
-+ }
-+
-+ /\\b(and|begin|break|case|class|def|defined?|do|else|elsif|end|ensure|eval\\
-+ |extend|false|for|if|in|method|module|next|nil|not|or|raise|redo|rescue|retry\\
-+ |return|then|true|undef|unless|until|when|while|yield)\\b/ {
-+ keyword_face (true);
-+ language_print ($0);
-+ keyword_face (false);
-+ }
-+
-+ LANGUAGE_SPECIALS {
-+ language_print ($0);
-+ }
-+ }
-+
-
- /**
- * Name: scheme
+--- states/hl/enscript.st.orig Wed Mar 5 02:31:31 2003
++++ states/hl/enscript.st Tue Mar 2 06:09:12 2004
+@@ -489,6 +489,7 @@
+ /\.idl$/ idl;
+ /\.(hs|lhs|gs|lgs)$/ haskell;
+ /\.(pm|pl)$/ perl;
++ /\.(rb|rbw)$/ ruby;
+ /\.(eps|EPS|ps|PS)$/ postscript;
+ /\.py$/ python;
+ /\.pyx$/ pyrex;
+@@ -530,6 +531,8 @@
+ /-\*- [Ii][Dd][Ll] -\*-/ idl;
+ /-\*- [Pp][Ee][Rr][Ll] -\*-/ perl;
+ /^#![ \t]*\/.*\/perl/ perl;
++ /-\*- [Rr][Uu][Bb][Yy] -\*-/ ruby;
++ /^#![ \t]*\/.*\/(env )?ruby/ ruby;
+ /^From:/ mail;
+ /^#![ \t]*(\/usr)?\/bin\/[ngmt]?awk/ awk;
+ /^#![ \t]*(\/usr)?\/bin\/sh/ sh;
diff --git a/print/enscript-letter/files/patch-ruby.st b/print/enscript-letter/files/patch-ruby.st
new file mode 100644
index 000000000000..a34b4fd61f04
--- /dev/null
+++ b/print/enscript-letter/files/patch-ruby.st
@@ -0,0 +1,208 @@
+--- states/hl/ruby.st.orig Wed Dec 31 18:00:00 1969
++++ states/hl/ruby.st Tue Mar 2 06:11:05 2004
+@@ -0,0 +1,205 @@
++/**
++ * Name: ruby
++ * Description: Ruby programming language.
++ * Author: Mike Wilson <m.v.wilson@home.com>
++ */
++
++state ruby_comment
++{
++ /\*\\\// {
++ language_print ($0);
++ return;
++ }
++ LANGUAGE_SPECIALS {
++ language_print ($0);
++ }
++}
++
++state ruby_dquot_string
++{
++ /\\\\./ {
++ language_print ($0);
++ }
++ /\"/ {
++ language_print ($0);
++ return;
++ }
++ LANGUAGE_SPECIALS {
++ language_print ($0);
++ }
++}
++
++state ruby_quot_string
++{
++ /\\\\./ {
++ language_print ($0);
++ }
++ /[\']/ {
++ language_print ($0);
++ return;
++ }
++ LANGUAGE_SPECIALS {
++ language_print ($0);
++ }
++}
++
++state ruby_bquot_string
++{
++ /\\\\./ {
++ language_print ($0);
++ }
++ /`/ {
++ language_print ($0);
++ return;
++ }
++ LANGUAGE_SPECIALS {
++ language_print ($0);
++ }
++}
++
++state ruby
++{
++ BEGIN {
++ header ();
++ }
++ END {
++ trailer ();
++ }
++
++ /* Comments. */
++ /#[^{].*$/ {
++ comment_face (true);
++ language_print ($0);
++ comment_face (false);
++ }
++
++ /* Ignore escaped quote marks */
++ /\\\"/ {
++ language_print ($0);
++ }
++ /\\\'/ {
++ language_print ($0);
++ }
++ /\\\`/ {
++ language_print ($0);
++ }
++
++ /* In cgi files, JavaScript might be imbedded, so we need to look out
++ * for the JavaScript comments, because they might contain something
++ * we don't like, like a contraction (don't, won't, etc.)
++ * We won't put them in comment face, because they are not ruby
++ * comments.
++ */
++ /\/\// {
++ language_print ($0);
++ call (eat_one_line);
++ }
++
++ /* String constants. */
++ /\"/ {
++ string_face (true);
++ language_print ($0);
++ call (ruby_dquot_string);
++ string_face (false);
++ }
++ /[\']/ {
++ string_face (true);
++ language_print ($0);
++ call (ruby_quot_string);
++ string_face (false);
++ }
++
++ /* Backquoted command string */
++ /`/ {
++ string_face (true);
++ language_print ($0);
++ call (ruby_bquot_string);
++ string_face (false);
++ }
++
++ /* Variables globals and instance */
++ /[$@]\w+/ {
++ variable_name_face (true);
++ language_print ($0);
++ variable_name_face (false);
++ }
++
++ /* Variables class variable */
++ /@@\w+/ {
++ variable_name_face (true);
++ language_print ($0);
++ variable_name_face (false);
++ }
++
++ /([ \t]*)(def)([ \t]+)([^(]*)/ {
++ /* indentation */
++ language_print ($1);
++
++ /* def */
++ keyword_face (true);
++ language_print ($2);
++ keyword_face (false);
++
++ /* middle */
++ language_print ($3);
++
++ /* Function name. */
++ function_name_face (true);
++ language_print ($4);
++ function_name_face (false);
++ }
++
++ /\$[!@&`'+~=\/\\,;.<>_*$?:"]/ {
++ variable_name_face (true);
++ language_print ($0);
++ variable_name_face (false);
++ }
++
++ /* Highlighting
++ --Type face
++ private protected public
++
++ --Builtin face (I consider these to be somewhat special)
++ alias alias_method attr attr_accessor attr_reader attr_writer
++ module_alias module_function self super
++
++ --Reference face
++ require include
++
++ --Keyword face
++ and begin break case class def defined? do else elsif end
++ ensure eval extend false for if in method module next nil not
++ or redo rescue retry return then true undef unless until when
++ while yield
++ */
++/\\b(private|protected|public)\\b/ {
++ type_face (true);
++ language_print ($0);
++ type_face (false);
++ }
++
++/\\b(alias|alias_method|attr|attr_accessor|attr_reader|attr_writer\\
++|module_alias|module_function|self|super)\\b/ {
++ builtin_face (true);
++ language_print ($0);
++ builtin_face (false);
++ }
++
++/\\b(include|require)\\b/ {
++ reference_face (true);
++ language_print ($0);
++ reference_face (false);
++ }
++
++/\\b(and|begin|break|case|class|def|defined?|do|else|elsif|end|ensure|eval\\
++|extend|false|for|if|in|method|module|next|nil|not|or|raise|redo|rescue|retry\\
++|return|then|true|undef|unless|until|when|while|yield)\\b/ {
++ keyword_face (true);
++ language_print ($0);
++ keyword_face (false);
++ }
++
++ LANGUAGE_SPECIALS {
++ language_print ($0);
++ }
++}