summaryrefslogtreecommitdiffstats
path: root/lang/ruby-ri/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lang/ruby-ri/Makefile')
-rw-r--r--lang/ruby-ri/Makefile49
1 files changed, 49 insertions, 0 deletions
diff --git a/lang/ruby-ri/Makefile b/lang/ruby-ri/Makefile
new file mode 100644
index 0000000..c2bc524
--- /dev/null
+++ b/lang/ruby-ri/Makefile
@@ -0,0 +1,49 @@
+# New ports collection makefile for: ri
+# Date created: 5 April 2001
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= ri
+PORTVERSION= 0.7a
+CATEGORIES= lang ruby
+MASTER_SITES= ftp://www.pragmaticprogrammer.com/ruby/downloads/files/
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+EXTRACT_SUFX= .tgz
+DIST_SUBDIR= ruby
+
+MAINTAINER= knu@FreeBSD.org
+
+USE_RUBY= yes
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
+NO_BUILD= yes
+
+DOCS= COPYING ChangeLog README
+EMACS_DOCS= Changelog DESCRIPTION
+
+EMACSLISPDIR= ${PREFIX}/share/emacs/site-lisp
+XEMACSLISPDIR= ${PREFIX}/lib/xemacs/site-lisp
+
+post-patch:
+ ${RUBY} -i -pe 'gsub /!!PREFIX!!/, "${PREFIX}"' \
+ ${WRKSRC}/contrib/dblack/emacs/ri.el
+
+do-install:
+ cd ${WRKSRC} && ${RUBY} install.rb
+ ${INSTALL_DATA} ${WRKSRC}/contrib/dblack/emacs/Emacs.rb ${RUBY_SITELIBDIR}/${PORTNAME}/op/
+ ${INSTALL_DATA} ${WRKSRC}/contrib/dblack/emacs/ri.el ${EMACSLISPDIR}/
+ ${INSTALL_DATA} ${EMACSLISPDIR}/ri.el ${XEMACSLISPDIR}/
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}/emacs
+.for f in ${DOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/
+.endfor
+.for f in ${EMACS_DOCS}
+ ${INSTALL_DATA} ${WRKSRC}/contrib/dblack/emacs/${f} ${RUBY_DOCDIR}/${PORTNAME}/emacs/
+.endfor
+.endif
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
OpenPOWER on IntegriCloud