summaryrefslogtreecommitdiff
path: root/devel/ruby-mode
diff options
context:
space:
mode:
authortaca <taca>2001-12-23 15:58:51 +0000
committertaca <taca>2001-12-23 15:58:51 +0000
commit5fe4074fc174595abff199e7baf1eb984b8c2493 (patch)
treec72c231de99e0c420efaa282457a85b919be4da1 /devel/ruby-mode
parent9cfdaf7e41ac5dd017d0314c4915ab9190deed65 (diff)
downloadpkgsrc-5fe4074fc174595abff199e7baf1eb984b8c2493.tar.gz
Make ruby-mode package to ${RUBY_VERSION}nb1, 1.6.4nb1.
o Fix going to infinite loop under some condition. case foo when ?# <insert TAB here> o Use always stable ruby package, currently 1.6.4.
Diffstat (limited to 'devel/ruby-mode')
-rw-r--r--devel/ruby-mode/Makefile8
-rw-r--r--devel/ruby-mode/distinfo5
-rw-r--r--devel/ruby-mode/patches/patch-aa19
3 files changed, 29 insertions, 3 deletions
diff --git a/devel/ruby-mode/Makefile b/devel/ruby-mode/Makefile
index 64f80f43b2a..82c657de9f3 100644
--- a/devel/ruby-mode/Makefile
+++ b/devel/ruby-mode/Makefile
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.1.1.1 2001/06/30 23:32:29 taca Exp $
+# $NetBSD: Makefile,v 1.2 2001/12/23 15:58:51 taca Exp $
#
DISTNAME= ${RUBY_DISTNAME}
PKGNAME= ${RUBY_PKGNAMEPREFIX}mode-${RUBY_VERSION}
+PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_RUBY}
@@ -11,9 +12,11 @@ HOMEPAGE= http://www2.pos.to/~tosh/ruby/rdtool/
COMMENT= Ruby editing mode for Emacs
DIST_SUBDIR= ruby
-DISTINFO_FILE= ${RUBY_DISTINFO}
WRKSRC= ${RUBY_WRKSRC}/misc
+.include "../../mk/bsd.prefs.mk"
+RUBY_VER= 1.6 # always use 1.6 base
+
.if defined(USE_XEMACS)
DEPENDS+= xemacs-[0-9]*:../../editors/xemacs
EMACS= xemacs
@@ -25,7 +28,6 @@ SITE_LISP= share/emacs/site-lisp
.endif
EXTRACT_ELEMENTS= ${RUBY_DISTNAME}/misc
-NO_PATCH= # defined
NO_CONFIGURE= # defined
SRCS= ruby-mode.el rubydb3x.el inf-ruby.el
diff --git a/devel/ruby-mode/distinfo b/devel/ruby-mode/distinfo
new file mode 100644
index 00000000000..da0cda11a71
--- /dev/null
+++ b/devel/ruby-mode/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2001/12/23 15:58:51 taca Exp $
+
+SHA1 (ruby/ruby-1.6.4.tar.gz) = 8cc989b1beb462e3012744e9f4e6a512e5a1d0f9
+Size (ruby/ruby-1.6.4.tar.gz) = 900164 bytes
+SHA1 (patch-aa) = 92dcd3d4fc491337198b64b36e8bb2ab978b28b6
diff --git a/devel/ruby-mode/patches/patch-aa b/devel/ruby-mode/patches/patch-aa
new file mode 100644
index 00000000000..ab45bd326ff
--- /dev/null
+++ b/devel/ruby-mode/patches/patch-aa
@@ -0,0 +1,19 @@
+$NetBSD: patch-aa,v 1.1 2001/12/23 15:58:52 taca Exp $
+
+--- ruby-mode.el.orig Wed Mar 21 17:04:12 2001
++++ ruby-mode.el
+@@ -522,7 +522,14 @@
+ (re-search-backward "#" (save-excursion
+ (beginning-of-line)
+ (point)) t)
++ (save-excursion
++ (forward-char -1)
++ (not (looking-at "\\?")))
+ (skip-chars-backward " \t")
++ (if (save-excursion
++ (forward-char -1)
++ (looking-at "\\?"))
++ (skip-chars-forward " \t"))
+ (setq state (ruby-parse-region parse-start (point)))
+ (nth 0 state)
+ (goto-char pos)))