aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorstas <stas@FreeBSD.org>2009-06-17 20:50:27 +0800
committerstas <stas@FreeBSD.org>2009-06-17 20:50:27 +0800
commitc91fabaf9154a919e6842b1a65f7a95089b8d91d (patch)
treebf38f5ba3e7f2477b32adbcbf0f3bfc0c3d450c9 /devel
parent97f0d5b41815fc19ac5eab238d1cf9d9544eeeaa (diff)
downloadfreebsd-ports-gnome-c91fabaf9154a919e6842b1a65f7a95089b8d91d.tar.gz
freebsd-ports-gnome-c91fabaf9154a919e6842b1a65f7a95089b8d91d.tar.zst
freebsd-ports-gnome-c91fabaf9154a919e6842b1a65f7a95089b8d91d.zip
- Add ri-emacs, an Emacs extension to work with ruby RDoc RI documentation.
Author: Kristof Bastiaensen <kristof@vleeuwen.org> WWW: http://rubyforge.org/projects/ri-emacs/
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/ri-emacs/Makefile42
-rw-r--r--devel/ri-emacs/distinfo3
-rw-r--r--devel/ri-emacs/files/pkg-message.in16
-rw-r--r--devel/ri-emacs/pkg-descr6
-rw-r--r--devel/ri-emacs/pkg-plist9
6 files changed, 77 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 17cb33d88331..0b7741eace97 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -2513,6 +2513,7 @@
SUBDIR += regexxer
SUBDIR += replay
SUBDIR += rhtvision
+ SUBDIR += ri-emacs
SUBDIR += rinfo
SUBDIR += rlog
SUBDIR += rlwrap
diff --git a/devel/ri-emacs/Makefile b/devel/ri-emacs/Makefile
new file mode 100644
index 000000000000..1fc9796ad47d
--- /dev/null
+++ b/devel/ri-emacs/Makefile
@@ -0,0 +1,42 @@
+# New ports collection makefile for: ri-emacs
+# Date created: 16 June 2009
+# Whom: stas
+#
+# $FreeBSD$
+#
+
+PORTNAME= ri-emacs
+PORTVERSION= 0.2.3
+CATEGORIES= devel ruby elisp
+MASTER_SITES= ${MASTER_SITE_RUBYFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DIST_SUBDIR= ruby
+
+MAINTAINER= stas@FreeBSD.org
+COMMENT= An emacs extension to work with RDoc ri documentation
+
+USE_RUBY= yes
+RUBY_NO_BUILD_DEPENDS= yes
+NO_BUILD= yes
+WRKSRC= ${WRKDIR}
+
+EMACSLISPDIR= ${PREFIX}/share/emacs/site-lisp
+XEMACSLISPDIR= ${PREFIX}/lib/xemacs/site-lisp
+
+ELISP_FILES= ri-ruby.el
+SUB_FILES= pkg-message
+
+do-install:
+ ${MKDIR} ${RUBY_ELISPDIR}/
+ ${INSTALL_DATA} ${ELISP_FILES:S,^,${WRKSRC}/,} ${RUBY_ELISPDIR}/
+ ${MKDIR} ${XEMACSLISPDIR}
+.for f in ${ELISP_FILES}
+ ${LN} -sf ${RUBY_ELISPDIR}/${f} ${EMACSLISPDIR}/
+ ${LN} -sf ${RUBY_ELISPDIR}/${f} ${XEMACSLISPDIR}/
+.endfor
+ ${MKDIR} ${DATADIR}/
+ ${INSTALL_DATA} ${WRKSRC}/ri-emacs.rb ${DATADIR}/
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/devel/ri-emacs/distinfo b/devel/ri-emacs/distinfo
new file mode 100644
index 000000000000..803bfe4f7f48
--- /dev/null
+++ b/devel/ri-emacs/distinfo
@@ -0,0 +1,3 @@
+MD5 (ruby/ri-emacs-0.2.3.tar.gz) = 6c5afcd54fa7f2706b96bb3c8cf3769a
+SHA256 (ruby/ri-emacs-0.2.3.tar.gz) = c497295c6df124890d38a4b1e656c13b4a65e988665e4e5cfeb0bfe243acb469
+SIZE (ruby/ri-emacs-0.2.3.tar.gz) = 5324
diff --git a/devel/ri-emacs/files/pkg-message.in b/devel/ri-emacs/files/pkg-message.in
new file mode 100644
index 000000000000..fe3ce5fa6e4e
--- /dev/null
+++ b/devel/ri-emacs/files/pkg-message.in
@@ -0,0 +1,16 @@
+====
+
+To use ri-emacs add the following lines to your emacs
+startup script:
+
+ (setq ri-ruby-script "%%DATADIR%%/ri-emacs.rb")
+ (autoload 'ri "ri-ruby" nil t)
+
+You may want to bind the ri command to a key. For example to bind it
+to F1 in ruby-mode and enable autocomplition:
+ (add-hook 'ruby-mode-hook (lambda ()
+ (local-set-key 'f1 'ri)
+ (local-set-key "\M-\C-i" 'ri-ruby-complete-symbol)
+ (local-set-key 'f4 'ri-ruby-show-args)))
+
+====
diff --git a/devel/ri-emacs/pkg-descr b/devel/ri-emacs/pkg-descr
new file mode 100644
index 000000000000..69e0befc361f
--- /dev/null
+++ b/devel/ri-emacs/pkg-descr
@@ -0,0 +1,6 @@
+Ri for (X)Emacs is a (X)Emacs extension that acts as a convenient wrapper
+around ri. It has autocompletion, nice colored output, it will ask for a
+class name if needed. It is indispensible when coding Ruby with Emacs!
+
+Author: Kristof Bastiaensen <kristof@vleeuwen.org>
+WWW: http://rubyforge.org/projects/ri-emacs/
diff --git a/devel/ri-emacs/pkg-plist b/devel/ri-emacs/pkg-plist
new file mode 100644
index 000000000000..198f2aa30bce
--- /dev/null
+++ b/devel/ri-emacs/pkg-plist
@@ -0,0 +1,9 @@
+%%RUBY_ELISPDIR%%/ri-ruby.el
+lib/xemacs/site-lisp/ri-ruby.el
+share/emacs/site-lisp/ri-ruby.el
+%%DATADIR%%/ri-emacs.rb
+@dirrm %%DATADIR%%
+@dirrmtry lib/xemacs/site-lisp
+@dirrmtry lib/xemacs
+@dirrmtry %%RUBY_ELISPDIR%%
+@dirrmtry lib/ruby