aboutsummaryrefslogtreecommitdiffstats
path: root/lang/ruby16/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lang/ruby16/Makefile')
-rw-r--r--lang/ruby16/Makefile11
1 files changed, 11 insertions, 0 deletions
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