pkgsrc/devel/ruby-mode/Makefile
uebayasi 34004f51e0 Move mk/emacs.mk to editors/emacs/modules.mk.
Don't call pkg_info to get the installed Emacs version; always use the
version matching EMACS_TYPE set by users.  Be DEPENDS to it.  This should
address pkg/37146 by Aleksey Cheusov.

While here convert some emacs lisp packages to user-destdir.
2008-10-11 09:31:54 +00:00

42 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.20 2008/10/11 09:31:55 uebayasi Exp $
#
DISTNAME= ${RUBY_DISTNAME}
PKGNAME= ${EMACS_PKGNAME_PREFIX}${RUBY_PKGPREFIX}-mode-${RUBY_VERSION_SUFFIX}
CATEGORIES= devel ruby
MASTER_SITES= ${MASTER_SITE_RUBY}
MAINTAINER= taca@NetBSD.org
HOMEPAGE= ${RUBY_HOMEPAGE}
COMMENT= Ruby editing mode for Emacs
PKG_DESTDIR_SUPPORT= user-destdir
DISTINFO_FILE= ${RUBY_DISTINFO_FILE}
WRKSRC= ${RUBY_WRKSRC}/misc
EXTRACT_ELEMENTS= ${RUBY_DISTNAME}/misc
RUBY_VERSION= ${RUBY18_VERSION}
RUBY_NOVERSION= yes
NO_CONFIGURE= yes
SRCS= ruby-mode.el rubydb3x.el ruby-electric.el \
inf-ruby.el ruby-style.el
PLIST_SUBST+= SITE_LISP=${SITE_LISP:Q}
do-build:
for f in ${SRCS}; do \
cd ${WRKSRC}; \
${EMACS_BIN} --no-init-file --no-site-file -batch \
-l ruby-mode.el -f batch-byte-compile $$f; \
done
do-install:
${INSTALL_DATA_DIR} ${DESTDIR}${EMACS_LISPPREFIX}/ruby-mode
cd ${WRKSRC}; \
${INSTALL_DATA} ${SRCS} ${SRCS:.el=.elc} \
${DESTDIR}${EMACS_LISPPREFIX}/ruby-mode
.include "../../lang/ruby/rubyversion.mk"
.include "../../lang/ruby/Makefile.common"
.include "../../editors/emacs/modules.mk"
.include "../../mk/bsd.pkg.mk"