summaryrefslogtreecommitdiff
path: root/devel/rsltc
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2009-08-05 09:47:50 +0000
committerminskim <minskim@pkgsrc.org>2009-08-05 09:47:50 +0000
commitd7c73d0e6e00d526c5ed0ff7a00403f1eb01bfc5 (patch)
tree5c6157d461e59c743687f276264bbcfe5d03e0eb /devel/rsltc
parentf580026efbf62db2dc24082e94412e1f4325d9e7 (diff)
downloadpkgsrc-d7c73d0e6e00d526c5ed0ff7a00403f1eb01bfc5.tar.gz
Set load-path during byte-compile to make sure that rsltc.el is found.
Diffstat (limited to 'devel/rsltc')
-rw-r--r--devel/rsltc/Makefile7
-rw-r--r--devel/rsltc/files/path.el1
2 files changed, 6 insertions, 2 deletions
diff --git a/devel/rsltc/Makefile b/devel/rsltc/Makefile
index 68fb248e221..b109f152866 100644
--- a/devel/rsltc/Makefile
+++ b/devel/rsltc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2008/10/11 09:31:55 uebayasi Exp $
+# $NetBSD: Makefile,v 1.11 2009/08/05 09:47:50 minskim Exp $
#
DISTNAME= rsltcsrc
@@ -22,11 +22,14 @@ USE_TOOLS+= gmake lex
WRKSRC= ${WRKDIR}/rsl.2.4
INSTALLATION_DIRS= bin
+post-extract:
+ ${CP} ${FILESDIR}/path.el ${WRKSRC}
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/rsltc ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/emacs/site-lisp/rsl
(cd ${WRKSRC} ; for i in rsltc.el tokenise.el rslconvert.el rsl-mode.el ; do\
- ${EMACS_BIN} -batch -f batch-byte-compile $$i ;\
+ ${EMACS_BIN} -batch -l path.el -f batch-byte-compile $$i ;\
${INSTALL_DATA} $$i ${DESTDIR}${PREFIX}/share/emacs/site-lisp/rsl ;\
${INSTALL_DATA} $${i}c ${DESTDIR}${PREFIX}/share/emacs/site-lisp/rsl ;\
done)
diff --git a/devel/rsltc/files/path.el b/devel/rsltc/files/path.el
new file mode 100644
index 00000000000..bf5f1d6c900
--- /dev/null
+++ b/devel/rsltc/files/path.el
@@ -0,0 +1 @@
+(setq load-path (cons "." load-path))