2001-04-05 16:11:09 +02:00
|
|
|
# New ports collection makefile for: ri
|
|
|
|
# Date created: 5 April 2001
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ri
|
2002-11-24 08:34:56 +01:00
|
|
|
PORTVERSION= 0.8a
|
2001-04-05 16:11:09 +02:00
|
|
|
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
|
2003-02-18 06:42:05 +01:00
|
|
|
COMMENT= Ruby Interactive reference
|
2001-04-05 16:11:09 +02:00
|
|
|
|
2004-09-26 04:56:05 +02:00
|
|
|
BROKEN= Does not build
|
2004-12-19 00:02:35 +01:00
|
|
|
EXPIRATION_DATE=2005-02-18
|
|
|
|
DEPRECATED= ${BROKEN}
|
2004-09-26 04:56:05 +02:00
|
|
|
|
2001-04-05 16:11:09 +02:00
|
|
|
USE_RUBY= yes
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
2001-06-09 04:37:04 +02:00
|
|
|
ELISP_FILES= ri.el
|
|
|
|
|
2001-04-05 16:11:09 +02:00
|
|
|
DOCS= COPYING ChangeLog README
|
|
|
|
EMACS_DOCS= Changelog DESCRIPTION
|
|
|
|
|
|
|
|
EMACSLISPDIR= ${PREFIX}/share/emacs/site-lisp
|
|
|
|
XEMACSLISPDIR= ${PREFIX}/lib/xemacs/site-lisp
|
|
|
|
|
|
|
|
post-patch:
|
2001-04-06 20:09:38 +02:00
|
|
|
${RUBY} -i -pe 'gsub %r|/usr/local|, "${PREFIX}"' \
|
2001-04-05 16:11:09 +02:00
|
|
|
${WRKSRC}/contrib/dblack/emacs/ri.el
|
|
|
|
|
|
|
|
do-install:
|
2002-03-30 13:12:53 +01:00
|
|
|
cd ${WRKSRC}; ${RUBY} install.rb
|
2001-04-05 16:11:09 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/dblack/emacs/Emacs.rb ${RUBY_SITELIBDIR}/${PORTNAME}/op/
|
2001-06-16 10:46:37 +02:00
|
|
|
${MKDIR} ${XEMACSLISPDIR}
|
2001-06-09 04:37:04 +02:00
|
|
|
.for f in ${ELISP_FILES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/dblack/emacs/${f} ${RUBY_ELISPDIR}/
|
|
|
|
${LN} -sf ${RUBY_ELISPDIR}/${f} ${EMACSLISPDIR}/
|
|
|
|
${LN} -sf ${RUBY_ELISPDIR}/${f} ${XEMACSLISPDIR}/
|
|
|
|
.endfor
|
2001-04-05 16:11:09 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-10-06 23:38:34 +02:00
|
|
|
${MKDIR} ${RUBY_MODDOCDIR}/emacs
|
2001-04-05 16:11:09 +02:00
|
|
|
.for f in ${DOCS}
|
2002-10-06 23:38:34 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
|
2001-04-05 16:11:09 +02:00
|
|
|
.endfor
|
|
|
|
.for f in ${EMACS_DOCS}
|
2002-10-06 23:38:34 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/dblack/emacs/${f} ${RUBY_MODDOCDIR}/emacs/
|
2001-04-05 16:11:09 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|