1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00
freebsd-ports/devel/ri-emacs/Makefile

40 lines
937 B
Makefile

# Created by: 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= ports@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
NO_STAGE= yes
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>