aboutsummaryrefslogtreecommitdiff
path: root/math/octave
diff options
context:
space:
mode:
Diffstat (limited to 'math/octave')
-rw-r--r--math/octave/Makefile6
-rw-r--r--math/octave/pkg-plist2
2 files changed, 6 insertions, 2 deletions
diff --git a/math/octave/Makefile b/math/octave/Makefile
index 634a77477d17..c4a97a077a34 100644
--- a/math/octave/Makefile
+++ b/math/octave/Makefile
@@ -1,5 +1,6 @@
PORTNAME= octave
PORTVERSION= ${OCTAVE_VERSION}
+PORTREVISION= 2
CATEGORIES= math
MASTER_SITES= GNU
@@ -49,7 +50,7 @@ LIB_DEPENDS= libamd.so:math/suitesparse-amd \
USES= charsetfix compiler:c++17-lang desktop-file-utils fortran gl \
gmake iconv libtool localbase:ldflags ncurses octave:env perl5 \
- pkgconfig readline tar:xz xorg
+ pkgconfig readline tar:xz xorg python:3.0+
USE_LDCONFIG= ${PREFIX}/lib/${PORTNAME}/${PORTVERSION}
USE_PERL5= build
GNU_CONFIGURE= yes
@@ -112,6 +113,9 @@ ATLAS_USES= blaslapack:atlas
BINARY_ALIAS= sed=gsed
+post-patch:
+ ${REINPLACE_CMD} -e s+python3+${PYTHON_CMD}+g ${WRKSRC}/scripts/miscellaneous/python.m
+
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in liboctave/liboctave.ps refcard/refcard-a4.ps \
diff --git a/math/octave/pkg-plist b/math/octave/pkg-plist
index cee832842413..c203eaaac32a 100644
--- a/math/octave/pkg-plist
+++ b/math/octave/pkg-plist
@@ -1786,7 +1786,7 @@ share/metainfo/org.octave.Octave.metainfo.xml
%%DATADIR%%/%%OCTAVE_VERSION%%/m/java/javaclasspath.m
%%DATADIR%%/%%OCTAVE_VERSION%%/m/java/javamem.m
%%DATADIR%%/%%OCTAVE_VERSION%%/m/java/javarmpath.m
-%%DATADIR%%/%%OCTAVE_VERSION%%/m/java/octave.jar
+%%JAVA%%%%DATADIR%%/%%OCTAVE_VERSION%%/m/java/octave.jar
%%DATADIR%%/%%OCTAVE_VERSION%%/m/java/usejava.m
%%DATADIR%%/%%OCTAVE_VERSION%%/m/legacy/.oct-config
%%DATADIR%%/%%OCTAVE_VERSION%%/m/legacy/@inline/argnames.m