pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/octave Add REPLACE_OCTAVE feature.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/03268434a6fc
branches:  trunk
changeset: 553239:03268434a6fc
user:      obache <obache%pkgsrc.org@localhost>
date:      Sun Jan 18 02:43:38 2009 +0000

description:
Add REPLACE_OCTAVE feature.

diffstat:

 math/octave/octave.mk |  14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r a7fbc3931e36 -r 03268434a6fc math/octave/octave.mk
--- a/math/octave/octave.mk     Sun Jan 18 01:59:42 2009 +0000
+++ b/math/octave/octave.mk     Sun Jan 18 02:43:38 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: octave.mk,v 1.6 2008/01/11 01:23:43 adam Exp $
+# $NetBSD: octave.mk,v 1.7 2009/01/18 02:43:38 obache Exp $
 
 .include "../../mk/bsd.prefs.mk"
 
@@ -16,3 +16,15 @@
 .    endif
 .  endfor
 .endif
+
+# fix shebang line.
+#
+# REPLACE_OCTAVE       replace shebang line of specified files.
+#
+.if defined(REPLACE_OCTAVE)
+REPLACE_INTERPRETER+=  octave
+REPLACE.octave.old=    .*octave
+REPLACE.octave.new=    ${LOCALBASE}/bin/octave
+REPLACE_FILES.octave=  ${REPLACE_OCTAVE}
+.endif # defined(REPLACE_OCTAVE)
+



Home | Main Index | Thread Index | Old Index