summaryrefslogtreecommitdiff
path: root/devel/ruby-mode/Makefile
blob: 8325d7c5a11914b31292bed323f3d80d25191683 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# $NetBSD: Makefile,v 1.3 2001/12/30 16:46:04 taca Exp $
#

DISTNAME=	${RUBY_DISTNAME}
PKGNAME=	${RUBY_PKGNAMEPREFIX}mode-${RUBY_VERSION}
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_RUBY}

MAINTAINER=	taca@netbsd.org
HOMEPAGE=	http://www2.pos.to/~tosh/ruby/rdtool/
COMMENT=	Ruby editing mode for Emacs

DIST_SUBDIR=	ruby
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

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

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

.include "../../lang/ruby-base/Makefile.common"
.include "../../mk/bsd.pkg.mk"