summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authoruebayasi <uebayasi@pkgsrc.org>2003-01-13 04:14:21 +0000
committeruebayasi <uebayasi@pkgsrc.org>2003-01-13 04:14:21 +0000
commit3e1c5c154c4775f40a123b29cc1ee69cfc9e6cb2 (patch)
treec0e35ed6cac6daacab2cd31629a95260ab281b34 /devel
parent9692273e36dd27de1cc6c99f4ec5dbd72f56d03b (diff)
downloadpkgsrc-3e1c5c154c4775f40a123b29cc1ee69cfc9e6cb2.tar.gz
Use emacs.mk.
Diffstat (limited to 'devel')
-rw-r--r--devel/ruby-mode/Makefile33
-rw-r--r--devel/ruby-mode/PLIST15
2 files changed, 20 insertions, 28 deletions
diff --git a/devel/ruby-mode/Makefile b/devel/ruby-mode/Makefile
index 8325d7c5a11..f5ad3f7d088 100644
--- a/devel/ruby-mode/Makefile
+++ b/devel/ruby-mode/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2001/12/30 16:46:04 taca Exp $
+# $NetBSD: Makefile,v 1.4 2003/01/13 04:14:21 uebayasi Exp $
#
DISTNAME= ${RUBY_DISTNAME}
@@ -16,35 +16,26 @@ WRKSRC= ${RUBY_WRKSRC}/misc
.include "../../mk/bsd.prefs.mk"
RUBY_VER= 1.6 # always use 1.6 base
-.if defined(USE_XEMACS)
-DEPENDS+= xemacs-[0-9]*:../../editors/xemacs
-EMACS= xemacs
-SITE_LISP= lib/xemacs/xemacs-packages/lisp/prog-modes
-.else
-DEPENDS+= emacs-[0-9]*:../../editors/emacs
-EMACS= emacs
-SITE_LISP= share/emacs/site-lisp
-.endif
-
EXTRACT_ELEMENTS= ${RUBY_DISTNAME}/misc
NO_CONFIGURE= # defined
-SRCS= ruby-mode.el rubydb3x.el inf-ruby.el
+SRCS= ${RUBY_WRKSRC}/misc/ruby-mode.el \
+ ${RUBY_WRKSRC}/misc/rubydb3x.el \
+ ${RUBY_WRKSRC}/misc/inf-ruby.el
PLIST_SUBST+= SITE_LISP=${SITE_LISP}
do-build:
-.for f in ${SRCS}
- cd ${WRKSRC}; ${EMACS} --no-init-file --no-site-file -batch \
- -l ruby-mode.el -f batch-byte-compile ${f}
-.endfor
+ 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} ${PREFIX}/${SITE_LISP}
-.for f in ${SRCS}
- ${INSTALL_DATA} ${RUBY_WRKSRC}/misc/${f} ${PREFIX}/${SITE_LISP}
- ${INSTALL_DATA} ${RUBY_WRKSRC}/misc/${f}c ${PREFIX}/${SITE_LISP}
-.endfor
+ ${INSTALL_DATA_DIR} ${EMACS_LISPPREFIX}/ruby-mode
+ ${INSTALL_DATA} ${SRCS} ${SRCS:.el=.elc} ${EMACS_LISPPREFIX}/ruby-mode
.include "../../lang/ruby-base/Makefile.common"
+.include "../../mk/emacs.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/devel/ruby-mode/PLIST b/devel/ruby-mode/PLIST
index b2715d9cb1a..9ceb2d03386 100644
--- a/devel/ruby-mode/PLIST
+++ b/devel/ruby-mode/PLIST
@@ -1,7 +1,8 @@
-@comment $NetBSD: PLIST,v 1.1 2001/11/01 01:26:21 zuntum Exp $
-${SITE_LISP}/inf-ruby.el
-${SITE_LISP}/inf-ruby.elc
-${SITE_LISP}/ruby-mode.el
-${SITE_LISP}/ruby-mode.elc
-${SITE_LISP}/rubydb3x.el
-${SITE_LISP}/rubydb3x.elc
+@comment $NetBSD: PLIST,v 1.2 2003/01/13 04:14:21 uebayasi Exp $
+${EMACS_LISPPREFIX}/ruby-mode/inf-ruby.el
+${EMACS_LISPPREFIX}/ruby-mode/inf-ruby.elc
+${EMACS_LISPPREFIX}/ruby-mode/ruby-mode.el
+${EMACS_LISPPREFIX}/ruby-mode/ruby-mode.elc
+${EMACS_LISPPREFIX}/ruby-mode/rubydb3x.el
+${EMACS_LISPPREFIX}/ruby-mode/rubydb3x.elc
+@dirrm ${EMACS_LISPPREFIX}/ruby-mode