diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2001-05-05 22:38:22 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2001-05-05 22:38:22 +0000 |
commit | 9e822619dd0260a6f35b4a20f8248cd5c14ca310 (patch) | |
tree | f7c89bf0a61c681c77e1741695874974c4c6e8c2 /lang/ruby-mode.el | |
parent | 5132dd205f4dafa1a7d88b22a67129ffe7392c6a (diff) | |
download | ports-9e822619dd0260a6f35b4a20f8248cd5c14ca310.tar.gz ports-9e822619dd0260a6f35b4a20f8248cd5c14ca310.zip |
Notes
Diffstat (limited to 'lang/ruby-mode.el')
-rw-r--r-- | lang/ruby-mode.el/Makefile | 43 | ||||
-rw-r--r-- | lang/ruby-mode.el/pkg-comment | 1 | ||||
-rw-r--r-- | lang/ruby-mode.el/pkg-descr | 1 | ||||
-rw-r--r-- | lang/ruby-mode.el/pkg-message | 13 | ||||
-rw-r--r-- | lang/ruby-mode.el/pkg-plist | 14 |
5 files changed, 72 insertions, 0 deletions
diff --git a/lang/ruby-mode.el/Makefile b/lang/ruby-mode.el/Makefile new file mode 100644 index 000000000000..47b07f917fec --- /dev/null +++ b/lang/ruby-mode.el/Makefile @@ -0,0 +1,43 @@ +# New ports collection makefile for: ruby-mode.el +# Date created: 6 May 2001 +# Whom: Akinori MUSHA aka knu <knu@idaemons.org> +# +# $FreeBSD$ +# + +PORTNAME= ruby-mode.el +PORTVERSION= ${RUBY_PORTVERSION} +CATEGORIES= lang ruby elisp +MASTER_SITES= # none +DISTFILES= # none + +MAINTAINER= knu@FreeBSD.org + +BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/${RUBY_PORT}:patch + +USE_RUBY= yes + +WRKSRC= ${WRKDIR}/elisp +NO_BUILD= yes + +ELISP_FILES= inf-ruby.el ruby-mode.el rubydb3x.el + +EMACSLISPDIR= ${PREFIX}/share/emacs/site-lisp +XEMACSLISPDIR= ${PREFIX}/lib/xemacs/site-lisp + +do-extract: + ${MKDIR} ${WRKDIR} + ${LN} -sf `cd ${PORTSDIR}/${RUBY_PORT} && ${MAKE} -V WRKSRC`/misc ${WRKSRC} + +do-install: + ${MKDIR} ${RUBY_EXAMPLESDIR}/elisp + ${INSTALL_DATA} ${WRKSRC}/* ${RUBY_EXAMPLESDIR}/elisp + ${MKDIR} ${EMACSLISPDIR} + ${MKDIR} ${XEMACSLISPDIR} +.for f in ${ELISP_FILES} + ${LN} -sf ${RUBY_EXAMPLESDIR}/elisp/${f} ${EMACSLISPDIR}/ + ${LN} -sf ${RUBY_EXAMPLESDIR}/elisp/${f} ${XEMACSLISPDIR}/ +.endfor + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/lang/ruby-mode.el/pkg-comment b/lang/ruby-mode.el/pkg-comment new file mode 100644 index 000000000000..2a50901265b7 --- /dev/null +++ b/lang/ruby-mode.el/pkg-comment @@ -0,0 +1 @@ +Emacs lisp modules for the Ruby language diff --git a/lang/ruby-mode.el/pkg-descr b/lang/ruby-mode.el/pkg-descr new file mode 100644 index 000000000000..c7940c94f92a --- /dev/null +++ b/lang/ruby-mode.el/pkg-descr @@ -0,0 +1 @@ +Emacs lisp modules for the Ruby language. diff --git a/lang/ruby-mode.el/pkg-message b/lang/ruby-mode.el/pkg-message new file mode 100644 index 000000000000..bb6a8739bddd --- /dev/null +++ b/lang/ruby-mode.el/pkg-message @@ -0,0 +1,13 @@ +==== +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))) +==== diff --git a/lang/ruby-mode.el/pkg-plist b/lang/ruby-mode.el/pkg-plist new file mode 100644 index 000000000000..a4b1b4e39c45 --- /dev/null +++ b/lang/ruby-mode.el/pkg-plist @@ -0,0 +1,14 @@ +%%RUBY_EXAMPLESDIR%%/elisp/README +%%RUBY_EXAMPLESDIR%%/elisp/inf-ruby.el +%%RUBY_EXAMPLESDIR%%/elisp/ruby-mode.el +%%RUBY_EXAMPLESDIR%%/elisp/rubydb2x.el +%%RUBY_EXAMPLESDIR%%/elisp/rubydb3x.el +@dirrm %%RUBY_EXAMPLESDIR%%/elisp +share/emacs/site-lisp/inf-ruby.el +share/emacs/site-lisp/ruby-mode.el +share/emacs/site-lisp/rubydb3x.el +@comment share/emacs/site-lisp is created by mtree +lib/xemacs/site-lisp/inf-ruby.el +lib/xemacs/site-lisp/ruby-mode.el +lib/xemacs/site-lisp/rubydb3x.el +@unexec rmdir -p %D/lib/xemacs/site-lisp 2>/dev/null || true |