import QtOctave 0.6.3

QtOctave is a front-end for Octave.
This commit is contained in:
steven 2007-10-07 18:37:01 +00:00
parent a69f3f6e2e
commit 6ef4d0d89c
8 changed files with 253 additions and 0 deletions

48
math/qtoctave/Makefile Normal file
View File

@ -0,0 +1,48 @@
# $OpenBSD: Makefile,v 1.1.1.1 2007/10/07 18:37:01 steven Exp $
COMMENT= graphical front-end for octave
DISTNAME= qtoctave-0.6.3
CATEGORIES= math
HOMEPAGE= http://qtoctave.wordpress.com/
# GPL v2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= https://forja.rediris.es/frs/download.php/352/
MODULES= x11/qt4
RUN_DEPENDS= ::math/octave
LIB_DEPENDS= QtGui,QtXml::x11/qt4
WANTLIB= ICE SM X11 Xcursor Xext Xfixes Xi Xinerama Xrandr Xrender \
c fontconfig freetype glib-2.0 gthread-2.0 iconv intl \
m png pthread stdc++ z
WRKDIST= ${WRKDIR}/project
CONFIGURE_STYLE=simple
CONFIGURE_ARGS= --qtdir=${MODQT4_QTDIR}
FAKE_FLAGS= INSTALL_ROOT=${WRKINST}
USE_X11= Yes
QTOCTHELP_PATH= ${PREFIX}/share/doc/qtoctave
OCTHELP_PATH= ${LOCALBASE}/share/doc/octave/interpreter
pre-configure:
@perl -pi -e "s,/home/lucas/usr/,${PREFIX},g" \
${WRKSRC}/qtoctave/qtoctave.pro \
${WRKSRC}/widgetserver/widgetserver.pro \
${WRKSRC}/qtoctave/configure.h
@perl -pi -e "s,!!OCTHELP_PATH!!,${OCTHELP_PATH}/index.html,;" \
-e "s,!!QTOCTHELP_PATH!!,${QTOCTHELP_PATH}/index.html," \
${WRKSRC}/qtoctave/configure.h
@perl -pi -e "s,!!QTOCTHELP_PATH!!,${QTOCTHELP_PATH}," \
${WRKSRC}/qtoctave/qtoctave.pro
.include <bsd.port.mk>

5
math/qtoctave/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (qtoctave-0.6.3.tar.gz) = 2EaMeIELVoc4MltryxhoQg==
RMD160 (qtoctave-0.6.3.tar.gz) = 8EMAbncZx5L+7AiSBSNSMAuOYik=
SHA1 (qtoctave-0.6.3.tar.gz) = T39RwXtpilwrN1XJ4Cnzs7JAL9A=
SHA256 (qtoctave-0.6.3.tar.gz) = 0v83daRSrNHhaJr1Azm3SKMaQLj9jgDnJArxo6aKkhA=
SIZE (qtoctave-0.6.3.tar.gz) = 2281643

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2007/10/07 18:37:01 steven Exp $
--- Makefile.orig Tue Sep 18 21:10:47 2007
+++ Makefile Tue Sep 18 21:12:02 2007
@@ -1,11 +1,11 @@
all:
- cd qtoctave; /usr/lib/qt4//bin/qmake
- cd qtoctave; /usr/bin/gmake
- cd widgetserver; /usr/lib/qt4//bin/qmake
- cd widgetserver; /usr/bin/gmake
+ cd qtoctave; qmake4
+ cd qtoctave; ${MAKE}
+ cd widgetserver; qmake4
+ cd widgetserver; ${MAKE}
install:
- cd qtoctave; /usr/bin/gmake install
- cd widgetserver; /usr/bin/gmake install
+ cd qtoctave; ${MAKE} install
+ cd widgetserver; ${MAKE} install
uninstall:
cd qtoctave; /usr/bin/gmake uninstall
cd widgetserver; /usr/bin/gmake uninstall

View File

@ -0,0 +1,75 @@
$OpenBSD: patch-configure,v 1.1.1.1 2007/10/07 18:37:01 steven Exp $
--- configure.orig Tue Jun 5 21:20:28 2007
+++ configure Thu Sep 20 21:23:06 2007
@@ -270,71 +270,6 @@ class qc_qtoctavedep : public ConfObj
EOT
}
-#Builds install-tool
-export PREFIX
-export BINDIR
-export DATADIR
-export OCTAVEHELP
-export EX_QTDIR
-export QC_DEBUG
-
-cd install-tool
-(
- $qm -project
- $qm
- $MAKE
-)
-
-if [ "$?" != "0" ]; then
- rm -rf .qconftemp
- if [ "$QC_DEBUG" = "Y" ]; then
- echo " -> fail"
- else
- echo "fail"
- fi
- printf "\n"
- printf "Reason: There was an error compiling 'conf'. See conf.log for details.\n"
- printf "\n"
- show_qt_info
- if [ "$QC_DEBUG" = "Y" ]; then
- echo "conf.log:"
- cat conf.log
- fi
- exit 1;
-fi
-
-cd ..
-
-#Export variables for install-tool
-
-QC_COMMAND=$0
-export QC_COMMAND
-QMAKE=$qm
-export QMAKE
-MAKETOOL=$MAKE
-export MAKETOOL
-
-
-install-tool/install-tool $ASSISTANT
-ret="$?"
-if [ "$ret" = "1" ]; then
- echo
- exit 1;
-else
- if [ "$ret" != "0" ]; then
- if [ "$QC_DEBUG" = "Y" ]; then
- echo " -> fail"
- else
- echo "fail"
- fi
- echo
- echo "Reason: Unexpected error launching 'conf'"
- echo
- exit 1;
- fi
-fi
-
-
echo
echo "Good, your configure finished. Now run $MAKE."
echo

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-qtoctave_configure_h,v 1.1.1.1 2007/10/07 18:37:01 steven Exp $
--- qtoctave/configure.h.orig Tue Jun 12 09:01:23 2007
+++ qtoctave/configure.h Sun Oct 7 19:36:11 2007
@@ -1,5 +1,5 @@
#define CONFIG_PATH "/home/lucas/usr//share/qtoctave"
#define ICON_PATH "/home/lucas/usr//share/qtoctave/images"
-#define QTOCTAVE_HELP_PATH "/home/lucas/usr//share/qtoctave/qtoctave_doc/index.html"
-#define HELP_PATH "/home/lucas/usr//share/qtoctave/octave_doc/octave.html"
+#define QTOCTAVE_HELP_PATH "!!QTOCTHELP_PATH!!"
+#define HELP_PATH "!!OCTHELP_PATH!!"

View File

@ -0,0 +1,18 @@
$OpenBSD: patch-qtoctave_qtoctave_pro,v 1.1.1.1 2007/10/07 18:37:01 steven Exp $
--- qtoctave/qtoctave.pro.orig Sun Oct 7 19:35:02 2007
+++ qtoctave/qtoctave.pro Sun Oct 7 19:35:34 2007
@@ -51,12 +51,12 @@ SOURCES += autocomplete.cpp \
operations/table_plot.cpp
DEFINES+=USER_CONFIG
QT+=xml
-qtoctave_help.path = /home/lucas/usr//share/qtoctave/qtoctave_doc/
+qtoctave_help.path = !!QTOCTHELP_PATH!!
qtoctave_help.files = ./qtoctave_doc/*
INSTALLS+=qtoctave_help
octave_help.path = /home/lucas/usr//share/qtoctave/octave_doc/
octave_help.files = ./octave_doc/*
-INSTALLS+=octave_help
+#INSTALLS+=octave_help
images.path = /home/lucas/usr//share/qtoctave/images/
images.files = ./images/*
INSTALLS+=images

3
math/qtoctave/pkg/DESCR Normal file
View File

@ -0,0 +1,3 @@
QtOctave is a front-end for Octave. Octave is a high-level language,
primarily intended for numerical computations like Matlab. QtOctave
tries, using menus and forms, to make Octave easy.

72
math/qtoctave/pkg/PLIST Normal file
View File

@ -0,0 +1,72 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2007/10/07 18:37:01 steven Exp $
bin/qtoctave
bin/widgetserver
share/doc/qtoctave/
share/doc/qtoctave/english-widgetserver_tutorial.html
share/doc/qtoctave/english-widgetserver_tutorial_html_5bec7cbb.png
share/doc/qtoctave/english-widgetserver_tutorial_html_7bce8785.png
share/doc/qtoctave/english-widgetserver_tutorial_html_m1ce99c8a.png
share/doc/qtoctave/english-widgetserver_tutorial_html_m3de00801.png
share/doc/qtoctave/english-widgetserver_tutorial_html_m40330946.png
share/doc/qtoctave/english-widgetserver_tutorial_html_m479e7fa.png
share/doc/qtoctave/english-widgetserver_tutorial_html_m4b94e42c.png
share/doc/qtoctave/english-widgetserver_tutorial_html_m5afe5f5d.png
share/doc/qtoctave/english-widgetserver_tutorial_html_m66cff71a.png
share/doc/qtoctave/english-widgetserver_tutorial_html_m71bb9fc8.png
share/doc/qtoctave/english-widgetserver_tutorial_html_mc27ccf0.png
share/doc/qtoctave/index.html
share/doc/qtoctave/menu_integrate_easy.png
share/doc/qtoctave/menus.html
share/qtoctave/
share/qtoctave/autocomplete.lst
share/qtoctave/config.rc
share/qtoctave/images/
share/qtoctave/images/back.png
share/qtoctave/images/button_cancel.png
share/qtoctave/images/connect_established.png
share/qtoctave/images/editcopy
share/qtoctave/images/editcut
share/qtoctave/images/editpaste
share/qtoctave/images/eraser.png
share/qtoctave/images/filenew.png
share/qtoctave/images/fileopen
share/qtoctave/images/filesave
share/qtoctave/images/filesaveas.png
share/qtoctave/images/forward.png
share/qtoctave/images/gohome.png
share/qtoctave/images/help.png
share/qtoctave/images/help_index.png
share/qtoctave/images/konsole.png
share/qtoctave/images/personal.png
share/qtoctave/images/print
share/qtoctave/images/reload.png
share/qtoctave/images/run.png
share/qtoctave/images/search.png
share/qtoctave/images/table.png
share/qtoctave/images/taskbar.png
share/qtoctave/images/undo.png
share/qtoctave/images/xedit.png
share/qtoctave/menus/
share/qtoctave/menus/Analysis/
share/qtoctave/menus/Analysis/Integrate
share/qtoctave/menus/Analysis/Integrate function/
share/qtoctave/menus/Analysis/Integrate function/Easy integrate.menu
share/qtoctave/menus/Analysis/Integrate function/Integrate function.menu
share/qtoctave/menus/Analysis/Integrate function/integrate_simpson.menu
share/qtoctave/menus/Analysis/Integrate.m
share/qtoctave/menus/Analysis/Integrate.ws
share/qtoctave/menus/Analysis/Ordinary Differential Equations/
share/qtoctave/menus/Analysis/Ordinary Differential Equations/edo.menu
share/qtoctave/menus/Analysis/Ordinary Differential Equations/euler.menu
share/qtoctave/menus/Data/
share/qtoctave/menus/Equations/
share/qtoctave/menus/Equations/equation_by_bisection.menu
share/qtoctave/menus/Equations/linear_equation.menu
share/qtoctave/menus/Equations/nonlinear_equation.menu
share/qtoctave/menus/Help/
share/qtoctave/menus/Help/About.menu
share/qtoctave/menus/Help/About.menu.png
share/qtoctave/menus/Matrix/
share/qtoctave/menus/Plot/
share/qtoctave/menus/Statistics/
share/qtoctave/octave.xml