1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00

Adding RKWard for KDE4.

RKWard prior to v. 0.5 depends on KDE-3, and newer versions
depend on KDE-4.

PR:		ports/134495
This commit is contained in:
Thierry Thomas 2009-05-19 20:19:01 +00:00
parent b2d7b14be9
commit caa743c234
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=234232
11 changed files with 168 additions and 81 deletions

View File

@ -437,6 +437,7 @@
SUBDIR += rascal
SUBDIR += reed-solomon
SUBDIR += rkward
SUBDIR += rkward-kde4
SUBDIR += rngstreams
SUBDIR += rpc
SUBDIR += rpy

View File

@ -6,30 +6,30 @@
#
PORTNAME= rkward
DISTVERSION= 0.4.9a
PORTREVISION= 3
PORTEPOCH= 3
DISTVERSION= 0.5.0d
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
PKGNAMESUFFIX= -kde4
MAINTAINER= thierry@FreeBSD.org
COMMENT= IDE/GUI for the R-project
LIB_DEPENDS= R.0:${PORTSDIR}/math/R
USE_KDELIBS_VER=3
CONFLICTS= rkward-0.4.*
USE_QT_VER= 4
QT_COMPONENTS= qmake_build moc_build rcc_build uic_build
USE_KDE4= automoc4 kdelibs
USE_PHP= yes
WANT_PHP_CLI= yes
USE_GETTEXT= yes
USE_AUTOTOOLS= libtool:15
CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
PTHREAD_LIBS="${PTHREAD_LIBS}"
CONFIGURE_ARGS= --disable-fast-perl
USE_CMAKE= yes
INSTALLS_ICONS= yes
USE_FORTRAN= yes
FORTRANLIBDIR2= `${DIRNAME} \\`${FC} -print-libgcc-file-name\\``/../../../
#USE_FORTRAN= yes
#FORTRANLIBDIR2= `${DIRNAME} \\`${FC} -print-libgcc-file-name\\``/../../../
DOCSDIR= ${PREFIX}/share/doc/HTML/en/rkward
@ -40,21 +40,20 @@ NLS= ""
.endif
PLIST_SUB+= NLS=${NLS}
PHP2FIX= rkward/plugins/makemakefileam.php \
rkward/settings/rksettingsmodulephp.cpp
PHP2FIX= rkward/settings/rksettingsmodulephp.cpp
pre-configure:
${REINPLACE_CMD} -e 's|/usr/bin/php|${LOCALBASE}/bin/php|' \
${PHP2FIX:S|^|${WRKSRC}/|}
${REINPLACE_CMD} -e 's|-lgfortran|-L${FORTRANLIBDIR2} -lgfortran|' \
${WRKSRC}/${CONFIGURE_SCRIPT}
${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' \
${WRKSRC}/rkward/rkward.sh.template
.if defined(NOPORTDOCS)
${REINPLACE_CMD} -e 's|rkward po doc|rkward po|' \
${WRKSRC}/Makefile.in
${REINPLACE_CMD} -e 's|ADD_SUBDIRECTORY(doc)|#ADD_SUBDIRECTORY(doc)|' \
${WRKSRC}/CMakeLists.txt
.endif
.if defined(WITHOUT_NLS)
${REINPLACE_CMD} -e 's|SUBDIRS = rkward po|SUBDIRS = rkward|' \
${WRKSRC}/Makefile.in
${REINPLACE_CMD} -e 's|ADD_SUBDIRECTORY(po)|#ADD_SUBDIRECTORY(po)|' \
${WRKSRC}/CMakeLists.txt
.endif
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
MD5 (rkward-0.4.9a.tar.gz) = 849accb3034bf2e66d26b53eda363112
SHA256 (rkward-0.4.9a.tar.gz) = 1e8b7fde19fc4a60b9e375e428ee9e1a2fffaa426114ad30d66c039f78d82051
SIZE (rkward-0.4.9a.tar.gz) = 1729709
MD5 (rkward-0.5.0d.tar.gz) = ecc6bd1f3066b2a3b5f6020daaf5c1ad
SHA256 (rkward-0.5.0d.tar.gz) = 2c98c0033047b2a382c5a47b789d7940f12ad19b1c288046587a163f1a3aba69
SIZE (rkward-0.5.0d.tar.gz) = 892758

View File

@ -1,38 +0,0 @@
--- configure.orig Mon May 7 13:10:22 2007
+++ configure Mon May 21 17:03:34 2007
@@ -29251,7 +29251,7 @@
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-l$PTHREAD_LIBS $LIBS"
+LIBS="$PTHREAD_LIBS $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -31110,7 +31110,7 @@
withval=$with_r_home; use_r_home="$withval"
else
use_r_home=`R CMD sh -c 'echo $R_HOME'`
- if test "$use_r_home" == "" ; then use_r_home="/usr/local/lib/R" ; fi
+ if test "$use_r_home" = "" ; then use_r_home="/usr/local/lib/R" ; fi
fi
@@ -31189,7 +31189,7 @@
withval=$with_r_includes; use_r_includes="$withval"
else
use_r_includes=`$R_HOMEDIR/bin/R CMD sh -c 'echo $R_INCLUDE_DIR'`
- if test "$use_r_includes" == "" ; then use_r_includes="$R_HOMEDIR/include" ; fi
+ if test "$use_r_includes" = "" ; then use_r_includes="$R_HOMEDIR/include" ; fi
fi
@@ -33235,7 +33235,7 @@
-CPPFLAGS+=" -DQT_NO_ASCII_CAST"
+CPPFLAGS="$CPPFLAGS -DQT_NO_ASCII_CAST"

View File

@ -0,0 +1,11 @@
--- rkward/CMakeLists.txt.orig 2008-01-25 15:49:35.000000000 +0100
+++ rkward/CMakeLists.txt 2009-05-10 23:45:06.000000000 +0200
@@ -11,7 +11,7 @@
ADD_SUBDIRECTORY( windows )
ADD_SUBDIRECTORY( syntax )
-INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} )
+INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} ${X11_X11_INCLUDE_PATH} )
SET(RKWard_Sources
rkward.cpp

View File

@ -0,0 +1,18 @@
--- ./rkward/rbackend/DetectPthreads.cmake.orig 2008-01-21 19:58:24.000000000 +0100
+++ ./rkward/rbackend/DetectPthreads.cmake 2009-05-06 23:51:31.000000000 +0200
@@ -1,7 +1,7 @@
INCLUDE(CheckIncludeFile)
INCLUDE(CheckFunctionExists)
-CHECK_INCLUDE_FILE(phthread_np.h HAVE_PTHREAD_NP_H)
+CHECK_INCLUDE_FILE(pthread_np.h HAVE_PTHREAD_NP_H)
SET (CMAKE_REQUIRED_FLAGS ${CMAKE_THREAD_LIBS_INIT})
CHECK_FUNCTION_EXISTS (pthread_getattr_np HAVE_PTHREAD_GETATTR_NP)
@@ -9,4 +9,4 @@
CHECK_FUNCTION_EXISTS (pthread_get_stacksize_np HAVE_PTHREAD_GET_STACKSIZE_NP)
CHECK_FUNCTION_EXISTS (pthread_get_stackaddr_np HAVE_PTHREAD_GET_STACKADDR_NP)
-CONFIGURE_FILE(pthread_config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/pthread_config.h)
\ No newline at end of file
+CONFIGURE_FILE(pthread_config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/pthread_config.h)

View File

@ -1,13 +0,0 @@
--- ./rkward/rbackend/rembedinternal.cpp.orig 2008-04-10 15:19:08.000000000 +0200
+++ ./rkward/rbackend/rembedinternal.cpp 2009-01-21 10:27:25.000000000 +0100
@@ -87,7 +87,9 @@
#include "R.h"
#include "Rinternals.h"
#include "Rinterface.h"
-#include "Rdevices.h"
+#if (R_VERSION < R_Version(2, 8, 1))
+# include "Rdevices.h"
+#endif
#include "R_ext/Parse.h"
#ifdef R_2_4

View File

@ -0,0 +1,13 @@
--- rkward/rbackend/rksignalsupport.cpp.orig 2008-01-21 19:58:24.000000000 +0100
+++ rkward/rbackend/rksignalsupport.cpp 2009-05-07 19:35:28.000000000 +0200
@@ -23,10 +23,6 @@
#include "../debug.h"
-#ifndef __sighandler_t
-typedef void (*__sighandler_t) (int);
-#endif
-
namespace RKSignalSupportPrivate {
struct sigaction r_sigsegv_action;
struct sigaction default_sigsegv_action;

View File

@ -0,0 +1,10 @@
--- rkward/rbackend/rthread.cpp.orig 2008-11-21 16:31:14.000000000 +0100
+++ rkward/rbackend/rthread.cpp 2009-05-06 23:40:25.000000000 +0200
@@ -33,6 +33,7 @@
#include <QDBusConnection>
#include <QList>
+#include <pthread.h>
#include <signal.h> // needed for pthread_kill
#define MAX_BUF_LENGTH 4000

View File

@ -0,0 +1,8 @@
--- rkward/rkward.sh.template.orig 2008-01-21 19:58:24.000000000 +0100
+++ rkward/rkward.sh.template 2009-05-07 23:31:23.000000000 +0200
@@ -69,4 +69,5 @@
export LC_NUMERIC="C"
## Start rkward. Running through R CMD to set all the relevant R enviroment variables
+cd %%PREFIX%%/share/apps && \
exec $R_binary CMD $debugger $0.bin ${args}

View File

@ -1,6 +1,7 @@
bin/rkward
bin/rkward.bin
share/applications/kde/rkward.desktop
share/applications/kde4/rkward.desktop
share/apps/katepart/syntax/r.xml
share/apps/katepart/syntax/rkward.xml
share/apps/rkward/00saveload/import/import_csv.php
share/apps/rkward/00saveload/import/import_csv.rkh
@ -48,6 +49,45 @@ share/apps/rkward/analysis/crosstab.xml
share/apps/rkward/analysis/crosstab_multi.php
share/apps/rkward/analysis/crosstab_multi.rkh
share/apps/rkward/analysis/crosstab_multi.xml
share/apps/rkward/analysis/irt/dichotomous/par_est_2pl.php
share/apps/rkward/analysis/irt/dichotomous/par_est_2pl.rkh
share/apps/rkward/analysis/irt/dichotomous/par_est_2pl.xml
share/apps/rkward/analysis/irt/dichotomous/par_est_3pl.php
share/apps/rkward/analysis/irt/dichotomous/par_est_3pl.rkh
share/apps/rkward/analysis/irt/dichotomous/par_est_3pl.xml
share/apps/rkward/analysis/irt/dichotomous/par_est_lltm.php
share/apps/rkward/analysis/irt/dichotomous/par_est_lltm.rkh
share/apps/rkward/analysis/irt/dichotomous/par_est_lltm.xml
share/apps/rkward/analysis/irt/dichotomous/par_est_rasch.php
share/apps/rkward/analysis/irt/dichotomous/par_est_rasch.rkh
share/apps/rkward/analysis/irt/dichotomous/par_est_rasch.xml
share/apps/rkward/analysis/irt/polytomous/par_est_grm.php
share/apps/rkward/analysis/irt/polytomous/par_est_grm.rkh
share/apps/rkward/analysis/irt/polytomous/par_est_grm.xml
share/apps/rkward/analysis/irt/polytomous/par_est_lpcm.php
share/apps/rkward/analysis/irt/polytomous/par_est_lpcm.rkh
share/apps/rkward/analysis/irt/polytomous/par_est_lpcm.xml
share/apps/rkward/analysis/irt/polytomous/par_est_lrsm.php
share/apps/rkward/analysis/irt/polytomous/par_est_lrsm.rkh
share/apps/rkward/analysis/irt/polytomous/par_est_lrsm.xml
share/apps/rkward/analysis/irt/polytomous/par_est_pcm.php
share/apps/rkward/analysis/irt/polytomous/par_est_pcm.rkh
share/apps/rkward/analysis/irt/polytomous/par_est_pcm.xml
share/apps/rkward/analysis/irt/polytomous/par_est_rsm.php
share/apps/rkward/analysis/irt/polytomous/par_est_rsm.rkh
share/apps/rkward/analysis/irt/polytomous/par_est_rsm.xml
share/apps/rkward/analysis/irt/tests/eRm_waldtest.php
share/apps/rkward/analysis/irt/tests/eRm_waldtest.xml
share/apps/rkward/analysis/irt/tests/ltm_cronbach_alpha.php
share/apps/rkward/analysis/irt/tests/ltm_cronbach_alpha.xml
share/apps/rkward/analysis/irt/tests/ltm_gof_rasch.php
share/apps/rkward/analysis/irt/tests/ltm_gof_rasch.xml
share/apps/rkward/analysis/irt/tests/ltm_item_fit.php
share/apps/rkward/analysis/irt/tests/ltm_item_fit.xml
share/apps/rkward/analysis/irt/tests/ltm_person_fit.php
share/apps/rkward/analysis/irt/tests/ltm_person_fit.xml
share/apps/rkward/analysis/irt/tests/ltm_unidimensional.php
share/apps/rkward/analysis/irt/tests/ltm_unidimensional.xml
share/apps/rkward/analysis/moments/agostino_test.php
share/apps/rkward/analysis/moments/agostino_test.rkh
share/apps/rkward/analysis/moments/agostino_test.xml
@ -322,8 +362,14 @@ share/apps/rkward/distributions/wilcoxon_probabilities.xml
share/apps/rkward/distributions/wilcoxon_quantiles.php
share/apps/rkward/distributions/wilcoxon_quantiles.xml
share/apps/rkward/embedded.pluginmap
share/apps/rkward/icons/data-factor.png
share/apps/rkward/icons/data-logical.png
share/apps/rkward/icons/data-numeric.png
share/apps/rkward/icons/function.png
share/apps/rkward/icons/list.png
share/apps/rkward/icons/matrix.png
share/apps/rkward/icons/paste_inside_selection.png
share/apps/rkward/icons/paste_inside_table.png
share/apps/rkward/icons/rkward_logo.png
share/apps/rkward/icons/run_all.png
share/apps/rkward/icons/run_line.png
@ -331,6 +377,7 @@ share/apps/rkward/icons/run_selection.png
share/apps/rkward/icons/window_back.png
share/apps/rkward/icons/window_forward.png
share/apps/rkward/import_export.pluginmap
share/apps/rkward/irt.pluginmap
share/apps/rkward/pages/rkward_console.rkh
share/apps/rkward/pages/rkward_for_new_users.rkh
share/apps/rkward/pages/rkward_for_r_users.rkh
@ -372,6 +419,20 @@ share/apps/rkward/plots/histogram.xml
share/apps/rkward/plots/histogram_options.php
share/apps/rkward/plots/histogram_options.rkh
share/apps/rkward/plots/histogram_options.xml
share/apps/rkward/plots/irt/dichotomous/plot_ltm.php
share/apps/rkward/plots/irt/dichotomous/plot_ltm.xml
share/apps/rkward/plots/irt/dichotomous/plot_rasch.php
share/apps/rkward/plots/irt/dichotomous/plot_rasch.xml
share/apps/rkward/plots/irt/dichotomous/plot_tpm.php
share/apps/rkward/plots/irt/dichotomous/plot_tpm.xml
share/apps/rkward/plots/irt/polytomous/plot_grm.php
share/apps/rkward/plots/irt/polytomous/plot_grm.xml
share/apps/rkward/plots/irt/polytomous/plot_pcm.php
share/apps/rkward/plots/irt/polytomous/plot_pcm.xml
share/apps/rkward/plots/irt/polytomous/plot_rsm.php
share/apps/rkward/plots/irt/polytomous/plot_rsm.xml
share/apps/rkward/plots/irt/tests/eRm_plotLR.php
share/apps/rkward/plots/irt/tests/eRm_plotLR.xml
share/apps/rkward/plots/pareto.php
share/apps/rkward/plots/pareto.rkh
share/apps/rkward/plots/pareto.xml
@ -392,6 +453,9 @@ share/apps/rkward/plots/scatterplot.xml
share/apps/rkward/plots/scatterplot_matrix.php
share/apps/rkward/plots/scatterplot_matrix.rkh
share/apps/rkward/plots/scatterplot_matrix.xml
share/apps/rkward/plots/sieve_plot.php
share/apps/rkward/plots/sieve_plot.rkh
share/apps/rkward/plots/sieve_plot.xml
share/apps/rkward/plots/stem.php
share/apps/rkward/plots/stem.rkh
share/apps/rkward/plots/stem.xml
@ -401,6 +465,7 @@ share/apps/rkward/rkcatchedx11windowpart.rc
share/apps/rkward/rkcommandeditorwindowpart.rc
share/apps/rkward/rkcommandlogpart.rc
share/apps/rkward/rkconsolepart.rc
share/apps/rkward/rkdummypart.rc
share/apps/rkward/rkeditordataframepart.rc
share/apps/rkward/rkhelpwindow.rc
share/apps/rkward/rkoutputwindow.rc
@ -424,15 +489,15 @@ share/apps/rkward/x11device/grid.xml
%%PORTDOCS%%%%DOCSDIR%%/menu_hierarchy_example.png
%%PORTDOCS%%%%DOCSDIR%%/t_test_plugin_example.png
%%PORTDOCS%%%%DOCSDIR%%/writing_plugins_introduction.docbook
share/icons/crystalsvg/128x128/apps/rkward.png
share/icons/crystalsvg/16x16/apps/rkward.png
share/icons/crystalsvg/22x22/apps/rkward.png
share/icons/crystalsvg/32x32/apps/rkward.png
share/icons/crystalsvg/48x48/apps/rkward.png
share/icons/crystalsvg/64x64/apps/rkward.png
share/icons/locolor/16x16/apps/rkward.png
share/icons/locolor/32x32/apps/rkward.png
share/icons/hicolor/128x128/apps/rkward.png
share/icons/hicolor/16x16/apps/rkward.png
share/icons/hicolor/22x22/apps/rkward.png
share/icons/hicolor/32x32/apps/rkward.png
share/icons/hicolor/48x48/apps/rkward.png
share/icons/hicolor/64x64/apps/rkward.png
share/icons/hicolor/scalable/apps/rkward.svgz
%%NLS%%share/locale/ca/LC_MESSAGES/rkward.mo
%%NLS%%share/locale/da/LC_MESSAGES/rkward.mo
%%NLS%%share/locale/de/LC_MESSAGES/rkward.mo
%%NLS%%share/locale/el/LC_MESSAGES/rkward.mo
%%NLS%%share/locale/es/LC_MESSAGES/rkward.mo
@ -442,10 +507,16 @@ share/icons/locolor/32x32/apps/rkward.png
%%NLS%%share/locale/tr/LC_MESSAGES/rkward.mo
%%NLS%%share/locale/zh_CN/LC_MESSAGES/rkward.mo
%%PORTDOCS%%@dirrm %%DOCSDIR%%
%%PORTDOCS%%@dirrmtry share/doc/HTML/en
%%PORTDOCS%%@dirrmtry share/doc/HTML
@dirrm share/apps/rkward/x11device
@dirrm share/apps/rkward/uni1.2
@dirrm share/apps/rkward/simple_anova
@dirrm share/apps/rkward/pages
@dirrm share/apps/rkward/plots/irt/tests
@dirrm share/apps/rkward/plots/irt/polytomous
@dirrm share/apps/rkward/plots/irt/dichotomous
@dirrm share/apps/rkward/plots/irt
@dirrm share/apps/rkward/plots
@dirrm share/apps/rkward/phpfiles
@dirrm share/apps/rkward/icons
@ -459,6 +530,10 @@ share/icons/locolor/32x32/apps/rkward.png
@dirrm share/apps/rkward/analysis/regression
@dirrm share/apps/rkward/analysis/outliers
@dirrm share/apps/rkward/analysis/moments
@dirrm share/apps/rkward/analysis/irt/tests
@dirrm share/apps/rkward/analysis/irt/polytomous
@dirrm share/apps/rkward/analysis/irt/dichotomous
@dirrm share/apps/rkward/analysis/irt
@dirrm share/apps/rkward/analysis/ansari_bradley
@dirrm share/apps/rkward/analysis/TESTS
@dirrm share/apps/rkward/analysis
@ -471,6 +546,9 @@ share/icons/locolor/32x32/apps/rkward.png
@dirrm share/apps/rkward
@dirrmtry share/apps/katepart/syntax
@dirrmtry share/apps/katepart
@dirrmtry share/apps
@dirrmtry share/applications/kde4
@dirrmtry share/applications
@cwd %%LOCALBASE%%
lib/R/library/rkward/CONTENTS
lib/R/library/rkward/DESCRIPTION