ports/54653: Update port: math/octave fix pr=ports/54567
Kay Lehmann
kay_lehmann at web.de
Sun Jul 20 10:50:25 UTC 2003
>Number: 54653
>Category: ports
>Synopsis: Update port: math/octave fix pr=ports/54567
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Sun Jul 20 03:50:21 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Kay Lehmann
>Release: FreeBSD 5.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD bippes.wg-berlin.de 5.1-RELEASE FreeBSD 5.1-RELEASE #4: Sat Jun 28 14:33:52 CEST 2003 kay at bippes.wg-berlin.de:/usr/obj/usr/src/sys/bippes i386
>Description:
Fix pr=ports/54567: octave doesn't find its shared libraries. Additional do some cleanups
to make portlint be quiet (replace () with {} for variables).
>How-To-Repeat:
See pr=ports/54567.
>Fix:
Install script in ${PREFIX}/etc/rc.d similar to mysql-client and others. sed code is borrowed
from mysql-client (I am not very familiar with sed). Bump port-revision so there shouldn't
be any questions about that anymore.
--- octave-2.1.50-1.diff begins here ---
diff -urN octave.orig/Makefile octave/Makefile
--- octave.orig/Makefile Tue Jul 15 03:32:22 2003
+++ octave/Makefile Sun Jul 20 12:26:21 2003
@@ -7,7 +7,7 @@
PORTNAME= octave
PORTVERSION= 2.1.50
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= math
MASTER_SITES= ftp://ftp.octave.org/pub/octave/bleeding-edge/ \
ftp://ftp.eos.hokudai.ac.jp/pub/GNU/misc/octave/bleeding-edge/
@@ -61,14 +61,17 @@
@${RM} -f ${WRKSRC}/doc/liboctave/liboctave.info*
post-install:
- $(INSTALL_DATA) $(WRKSRC)/doc/liboctave/liboctave.info $(PREFIX)/info
- install-info --entry='* Octave: (octave). Interactive language for numerical computations.' $(PREFIX)/info/octave.info $(PREFIX)/info/dir
- install-info --entry='* LibOctave: (liboctave). C++ class library for Octave.' $(PREFIX)/info/liboctave.info $(PREFIX)/info/dir
+ @${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/octave.sh > ${WRKDIR}/octave.sh.tmp
+ @${SED} "s|%%OCTAVE_VERSION%%|${OCTAVE_VERSION}|g" <${WRKDIR}/octave.sh.tmp > ${PREFIX}/etc/rc.d/000.octave.sh
+ @${CHMOD} 750 ${PREFIX}/etc/rc.d/000.octave.sh
+ ${INSTALL_DATA} ${WRKSRC}/doc/liboctave/liboctave.info ${PREFIX}/info
+ install-info --entry='* Octave: (octave). Interactive language for numerical computations.' ${PREFIX}/info/octave.info ${PREFIX}/info/dir
+ install-info --entry='* LibOctave: (liboctave). C++ class library for Octave.' ${PREFIX}/info/liboctave.info ${PREFIX}/info/dir
.ifndef NOPORTDOCS
@${MKDIR} ${DOCSDIR}
.for file in faq/Octave-FAQ.ps interpreter/octave.ps liboctave/liboctave.ps \
refcard/refcard-a4.ps refcard/refcard-legal.ps refcard/refcard-letter.ps
- $(INSTALL_DATA) ${WRKSRC}/doc/${file} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
.endfor
.endif
diff -urN octave.orig/files/octave.sh octave/files/octave.sh
--- octave.orig/files/octave.sh Thu Jan 1 01:00:00 1970
+++ octave/files/octave.sh Sun Jul 20 12:26:37 2003
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+case "$1" in
+ start)
+ /sbin/ldconfig -m %%PREFIX%%/lib/octave-%%OCTAVE_VERSION%%
+ ;;
+ stop)
+ ;;
+ *)
+ echo ""
+ echo "Usage: `basename $0` { start | stop }"
+ echo ""
+ exit 64
+ ;;
+esac
diff -urN octave.orig/pkg-plist octave/pkg-plist
--- octave.orig/pkg-plist Sun Jun 15 12:28:37 2003
+++ octave/pkg-plist Sun Jul 20 10:59:00 2003
@@ -6,6 +6,7 @@
bin/octave-bug-%%OCTAVE_VERSION%%
bin/octave-config
bin/octave-config-%%OCTAVE_VERSION%%
+etc/rc.d/000.octave.sh
include/octave-%%OCTAVE_VERSION%%/octave/Array-flags.h
include/octave-%%OCTAVE_VERSION%%/octave/Array-idx.h
include/octave-%%OCTAVE_VERSION%%/octave/Array.cc
--- octave-2.1.50-1.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list