aboutsummaryrefslogtreecommitdiff
path: root/devel/ruby-slang/files
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2000-08-23 04:35:50 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2000-08-23 04:35:50 +0000
commit36e15f0cc852bca8ae201961efb10796b271cba8 (patch)
tree44cc5b0adbbcbda0c93c5512adfb4b6b79b72296 /devel/ruby-slang/files
parentff07eb140090568924207c103059d1f153388ea1 (diff)
downloadports-36e15f0cc852bca8ae201961efb10796b271cba8.tar.gz
ports-36e15f0cc852bca8ae201961efb10796b271cba8.zip
Notes
Diffstat (limited to 'devel/ruby-slang/files')
-rw-r--r--devel/ruby-slang/files/patch-aa40
-rw-r--r--devel/ruby-slang/files/patch-ab11
2 files changed, 51 insertions, 0 deletions
diff --git a/devel/ruby-slang/files/patch-aa b/devel/ruby-slang/files/patch-aa
new file mode 100644
index 000000000000..05b3f23aba77
--- /dev/null
+++ b/devel/ruby-slang/files/patch-aa
@@ -0,0 +1,40 @@
+--- extconf.rb.orig Mon Dec 20 09:45:03 1999
++++ extconf.rb Wed Aug 23 12:52:07 2000
+@@ -1,19 +1,8 @@
+ require "mkmf"
+
+-$CFLAGS="-I"+ENV['HOME']+"/include -I/usr/include/slang-ja -I/usr/include/slang -I/usr/include -I/usr/local/include/slang-ja -I/usr/local/include/slang -I/usr/local/include"
+-$LDFLAGS="-L"+ENV['HOME']+"/lib -L/usr/lib -L/usr/local/lib"
++dir_config("slang")
+
+ if have_header("slang.h")
+- if have_library("slang-ja", "SLsmg_refresh")
+- $LDFLAGS += " -lslang-ja"
+- elsif have_library("slang", "SLsmg_refresh")
+- $LDFLAGS += " -lslang"
+- else
+- exit
+- end
+- for f in ["kanji_pos", "IsKcode"]
+- have_func(f)
+- end
+ termcap = true
+ for mid in %w(lib share share/lib local/lib)
+ if FileTest.directory? "/usr/#{mid}/terminfo"
+@@ -23,6 +12,16 @@
+ end
+ if termcap
+ $libs += " -ltermcap "
++ end
++ if have_library("slang-ja", "SLsmg_refresh")
++ $LDFLAGS += " -lslang-ja"
++ elsif have_library("slang", "SLsmg_refresh")
++ $LDFLAGS += " -lslang"
++ else
++ exit
++ end
++ for f in ["kanji_pos", "IsKcode"]
++ have_func(f)
+ end
+ create_makefile("slanglib")
+ end
diff --git a/devel/ruby-slang/files/patch-ab b/devel/ruby-slang/files/patch-ab
new file mode 100644
index 000000000000..a244cc67a551
--- /dev/null
+++ b/devel/ruby-slang/files/patch-ab
@@ -0,0 +1,11 @@
+--- slmodule.c.orig Sat Dec 18 17:35:32 1999
++++ slmodule.c Thu Feb 3 23:22:05 2000
+@@ -1321,7 +1321,7 @@
+ tab_pos = SLsmg_Tab_Width;
+ d_end = buf + buf_size;
+ for (d = buf, pp = s;
+- pp < d_end -1 && *pp != '\n' && *pp != '\0';)
++ d < d_end -1 && *pp != '\n' && *pp != '\0';)
+ if ('\t' == *pp) {
+ while (d - buf + cur_col >= tab_pos)
+ tab_pos += SLsmg_Tab_Width;