diff options
author | knu <knu@FreeBSD.org> | 2000-08-16 03:53:08 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2000-08-16 03:53:08 +0800 |
commit | d9d00fe59e4fdee8e5066a5d1dd1435c690f5966 (patch) | |
tree | eefd2581d15084d81b6f877292baf8b9505ce0ee /lang | |
parent | de2bb2b9afd0f2b19e1382a53375497162f5bcfc (diff) | |
download | freebsd-ports-gnome-d9d00fe59e4fdee8e5066a5d1dd1435c690f5966.tar.gz freebsd-ports-gnome-d9d00fe59e4fdee8e5066a5d1dd1435c690f5966.tar.zst freebsd-ports-gnome-d9d00fe59e4fdee8e5066a5d1dd1435c690f5966.zip |
Install Emacs Lisp files (*.el) to share/emacs/site-lisp/ and
lib/xemacs/site-lisp so Emacs/XEmacs can easily find them to load.
Instruct users how to use them.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/ruby/Makefile | 11 | ||||
-rw-r--r-- | lang/ruby/pkg-message | 22 | ||||
-rw-r--r-- | lang/ruby/pkg-plist | 8 | ||||
-rw-r--r-- | lang/ruby14/Makefile | 11 | ||||
-rw-r--r-- | lang/ruby14/pkg-message | 22 | ||||
-rw-r--r-- | lang/ruby14/pkg-plist | 8 | ||||
-rw-r--r-- | lang/ruby16/Makefile | 11 | ||||
-rw-r--r-- | lang/ruby16/pkg-message | 22 | ||||
-rw-r--r-- | lang/ruby16/pkg-plist | 8 |
9 files changed, 123 insertions, 0 deletions
diff --git a/lang/ruby/Makefile b/lang/ruby/Makefile index 8cb8924bb6d4..5ed40558ffcc 100644 --- a/lang/ruby/Makefile +++ b/lang/ruby/Makefile @@ -32,6 +32,11 @@ BRANCH_NAME= 1.4 DOCDIR= ${PREFIX}/share/doc/ruby EXAMPLESDIR= ${PREFIX}/share/examples/ruby +ELISP_FILES= inf-ruby.el ruby-mode.el rubydb3x.el + +EMACSLISPDIR= ${PREFIX}/share/emacs/site-lisp +XEMACSLISPDIR= ${PREFIX}/lib/xemacs/site-lisp + .include <bsd.port.pre.mk> .if ${OSVERSION} >= 400014 @@ -50,6 +55,12 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/sample/* ${EXAMPLESDIR} ${MKDIR} ${EXAMPLESDIR}/misc ${INSTALL_DATA} ${WRKSRC}/misc/* ${EXAMPLESDIR}/misc + ${MKDIR} ${EMACSLISPDIR} + ${MKDIR} ${XEMACSLISPDIR} +.for f in ${ELISP_FILES} + ${LN} -sf ${EXAMPLESDIR}/misc/${f} ${EMACSLISPDIR}/ + ${LN} -sf ${EXAMPLESDIR}/misc/${f} ${XEMACSLISPDIR}/ +.endfor ${MKDIR} ${EXAMPLESDIR}/curses ${INSTALL_DATA} ${WRKSRC}/ext/curses/hello.rb ${WRKSRC}/ext/curses/rain.rb ${WRKSRC}/ext/curses/view.rb ${EXAMPLESDIR}/curses ${MKDIR} ${EXAMPLESDIR}/pty diff --git a/lang/ruby/pkg-message b/lang/ruby/pkg-message index 564cf52f2485..743115d2f064 100644 --- a/lang/ruby/pkg-message +++ b/lang/ruby/pkg-message @@ -1,4 +1,26 @@ ==== +To use ruby-mode, inf-ruby and rubydb in Emacs/XEmacs, add the +following lines to your ~/.emacs: + +;; Taken from the comment section in inf-ruby.el + +(setq ruby-program-name "/usr/local/bin/ruby") + +(autoload 'ruby-mode "ruby-mode" + "Mode for editing ruby source files") +(add-to-list 'auto-mode-alist '("\\.rb$" . ruby-mode)) +(add-to-list 'interpreter-mode-alist '("ruby" . ruby-mode)) + +(autoload 'run-ruby "inf-ruby" + "Run an inferior Ruby process") +(autoload 'inf-ruby-keys "inf-ruby" + "Set local key defs for inf-ruby in ruby-mode") +(add-hook 'ruby-mode-hook + '(lambda () + (inf-ruby-keys) + )) + +==== NOTE: This package does NOT contain irb (the interactive Ruby) and Ruby/Tk (an interface to Tk GUI toolkits); You need to install separate packages to use them. diff --git a/lang/ruby/pkg-plist b/lang/ruby/pkg-plist index e4eb7b019122..88a53e321aaf 100644 --- a/lang/ruby/pkg-plist +++ b/lang/ruby/pkg-plist @@ -174,3 +174,11 @@ share/examples/ruby/pty/shl.rb @dirrm share/examples/ruby/curses @dirrm share/examples/ruby/pty @dirrm share/examples/ruby +share/emacs/site-lisp/inf-ruby.el +share/emacs/site-lisp/ruby-mode.el +share/emacs/site-lisp/rubydb3x.el +lib/xemacs/site-lisp/inf-ruby.el +lib/xemacs/site-lisp/ruby-mode.el +lib/xemacs/site-lisp/rubydb3x.el +@unexec rmdir -p %D/share/emacs/site-lisp 2>/dev/null || true +@unexec rmdir -p %D/lib/xemacs/site-lisp 2>/dev/null || true diff --git a/lang/ruby14/Makefile b/lang/ruby14/Makefile index 8cb8924bb6d4..5ed40558ffcc 100644 --- a/lang/ruby14/Makefile +++ b/lang/ruby14/Makefile @@ -32,6 +32,11 @@ BRANCH_NAME= 1.4 DOCDIR= ${PREFIX}/share/doc/ruby EXAMPLESDIR= ${PREFIX}/share/examples/ruby +ELISP_FILES= inf-ruby.el ruby-mode.el rubydb3x.el + +EMACSLISPDIR= ${PREFIX}/share/emacs/site-lisp +XEMACSLISPDIR= ${PREFIX}/lib/xemacs/site-lisp + .include <bsd.port.pre.mk> .if ${OSVERSION} >= 400014 @@ -50,6 +55,12 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/sample/* ${EXAMPLESDIR} ${MKDIR} ${EXAMPLESDIR}/misc ${INSTALL_DATA} ${WRKSRC}/misc/* ${EXAMPLESDIR}/misc + ${MKDIR} ${EMACSLISPDIR} + ${MKDIR} ${XEMACSLISPDIR} +.for f in ${ELISP_FILES} + ${LN} -sf ${EXAMPLESDIR}/misc/${f} ${EMACSLISPDIR}/ + ${LN} -sf ${EXAMPLESDIR}/misc/${f} ${XEMACSLISPDIR}/ +.endfor ${MKDIR} ${EXAMPLESDIR}/curses ${INSTALL_DATA} ${WRKSRC}/ext/curses/hello.rb ${WRKSRC}/ext/curses/rain.rb ${WRKSRC}/ext/curses/view.rb ${EXAMPLESDIR}/curses ${MKDIR} ${EXAMPLESDIR}/pty diff --git a/lang/ruby14/pkg-message b/lang/ruby14/pkg-message index 564cf52f2485..743115d2f064 100644 --- a/lang/ruby14/pkg-message +++ b/lang/ruby14/pkg-message @@ -1,4 +1,26 @@ ==== +To use ruby-mode, inf-ruby and rubydb in Emacs/XEmacs, add the +following lines to your ~/.emacs: + +;; Taken from the comment section in inf-ruby.el + +(setq ruby-program-name "/usr/local/bin/ruby") + +(autoload 'ruby-mode "ruby-mode" + "Mode for editing ruby source files") +(add-to-list 'auto-mode-alist '("\\.rb$" . ruby-mode)) +(add-to-list 'interpreter-mode-alist '("ruby" . ruby-mode)) + +(autoload 'run-ruby "inf-ruby" + "Run an inferior Ruby process") +(autoload 'inf-ruby-keys "inf-ruby" + "Set local key defs for inf-ruby in ruby-mode") +(add-hook 'ruby-mode-hook + '(lambda () + (inf-ruby-keys) + )) + +==== NOTE: This package does NOT contain irb (the interactive Ruby) and Ruby/Tk (an interface to Tk GUI toolkits); You need to install separate packages to use them. diff --git a/lang/ruby14/pkg-plist b/lang/ruby14/pkg-plist index e4eb7b019122..88a53e321aaf 100644 --- a/lang/ruby14/pkg-plist +++ b/lang/ruby14/pkg-plist @@ -174,3 +174,11 @@ share/examples/ruby/pty/shl.rb @dirrm share/examples/ruby/curses @dirrm share/examples/ruby/pty @dirrm share/examples/ruby +share/emacs/site-lisp/inf-ruby.el +share/emacs/site-lisp/ruby-mode.el +share/emacs/site-lisp/rubydb3x.el +lib/xemacs/site-lisp/inf-ruby.el +lib/xemacs/site-lisp/ruby-mode.el +lib/xemacs/site-lisp/rubydb3x.el +@unexec rmdir -p %D/share/emacs/site-lisp 2>/dev/null || true +@unexec rmdir -p %D/lib/xemacs/site-lisp 2>/dev/null || true diff --git a/lang/ruby16/Makefile b/lang/ruby16/Makefile index 8cb8924bb6d4..5ed40558ffcc 100644 --- a/lang/ruby16/Makefile +++ b/lang/ruby16/Makefile @@ -32,6 +32,11 @@ BRANCH_NAME= 1.4 DOCDIR= ${PREFIX}/share/doc/ruby EXAMPLESDIR= ${PREFIX}/share/examples/ruby +ELISP_FILES= inf-ruby.el ruby-mode.el rubydb3x.el + +EMACSLISPDIR= ${PREFIX}/share/emacs/site-lisp +XEMACSLISPDIR= ${PREFIX}/lib/xemacs/site-lisp + .include <bsd.port.pre.mk> .if ${OSVERSION} >= 400014 @@ -50,6 +55,12 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/sample/* ${EXAMPLESDIR} ${MKDIR} ${EXAMPLESDIR}/misc ${INSTALL_DATA} ${WRKSRC}/misc/* ${EXAMPLESDIR}/misc + ${MKDIR} ${EMACSLISPDIR} + ${MKDIR} ${XEMACSLISPDIR} +.for f in ${ELISP_FILES} + ${LN} -sf ${EXAMPLESDIR}/misc/${f} ${EMACSLISPDIR}/ + ${LN} -sf ${EXAMPLESDIR}/misc/${f} ${XEMACSLISPDIR}/ +.endfor ${MKDIR} ${EXAMPLESDIR}/curses ${INSTALL_DATA} ${WRKSRC}/ext/curses/hello.rb ${WRKSRC}/ext/curses/rain.rb ${WRKSRC}/ext/curses/view.rb ${EXAMPLESDIR}/curses ${MKDIR} ${EXAMPLESDIR}/pty diff --git a/lang/ruby16/pkg-message b/lang/ruby16/pkg-message index 564cf52f2485..743115d2f064 100644 --- a/lang/ruby16/pkg-message +++ b/lang/ruby16/pkg-message @@ -1,4 +1,26 @@ ==== +To use ruby-mode, inf-ruby and rubydb in Emacs/XEmacs, add the +following lines to your ~/.emacs: + +;; Taken from the comment section in inf-ruby.el + +(setq ruby-program-name "/usr/local/bin/ruby") + +(autoload 'ruby-mode "ruby-mode" + "Mode for editing ruby source files") +(add-to-list 'auto-mode-alist '("\\.rb$" . ruby-mode)) +(add-to-list 'interpreter-mode-alist '("ruby" . ruby-mode)) + +(autoload 'run-ruby "inf-ruby" + "Run an inferior Ruby process") +(autoload 'inf-ruby-keys "inf-ruby" + "Set local key defs for inf-ruby in ruby-mode") +(add-hook 'ruby-mode-hook + '(lambda () + (inf-ruby-keys) + )) + +==== NOTE: This package does NOT contain irb (the interactive Ruby) and Ruby/Tk (an interface to Tk GUI toolkits); You need to install separate packages to use them. diff --git a/lang/ruby16/pkg-plist b/lang/ruby16/pkg-plist index e4eb7b019122..88a53e321aaf 100644 --- a/lang/ruby16/pkg-plist +++ b/lang/ruby16/pkg-plist @@ -174,3 +174,11 @@ share/examples/ruby/pty/shl.rb @dirrm share/examples/ruby/curses @dirrm share/examples/ruby/pty @dirrm share/examples/ruby +share/emacs/site-lisp/inf-ruby.el +share/emacs/site-lisp/ruby-mode.el +share/emacs/site-lisp/rubydb3x.el +lib/xemacs/site-lisp/inf-ruby.el +lib/xemacs/site-lisp/ruby-mode.el +lib/xemacs/site-lisp/rubydb3x.el +@unexec rmdir -p %D/share/emacs/site-lisp 2>/dev/null || true +@unexec rmdir -p %D/lib/xemacs/site-lisp 2>/dev/null || true |