diff options
author | Max Brazhnikov <makc@FreeBSD.org> | 2014-09-04 18:20:53 +0000 |
---|---|---|
committer | Max Brazhnikov <makc@FreeBSD.org> | 2014-09-04 18:20:53 +0000 |
commit | 57a37508d64df473440f50a1a100f8e2fde75e83 (patch) | |
tree | db50ff5a576642bdf908099008ccc9591ab66ca8 /math/scilab/files/patch-xdg-open | |
parent | Fix misleading option name: the option uses plotutils, not gnuplot (diff) |
math/scilab:
- Update to 5.5.0
- Populate USES with desktop-file-utils, iconv, libtool, pathfix,
and shared-mime-info
- Add dependency on xdg-utils
- Remove needless USE_LDCONFIG
- Clean up CONFIGURE_ENV from stale stuff
- Update options:
. remove DOCS, FFTW, MATIO, UMFPACK (always build with them for simplicity)
. remove NLS (doesn't build without it)
. merge HELP with GUI
. PVM is not supported anymore
. Enable OCAML and TK by default
- Use options heplers
- Clean up post-patch section from stale fixes
- Convert to static pkg-plist
Notes
Notes:
svn path=/head/; revision=367295
Diffstat (limited to 'math/scilab/files/patch-xdg-open')
-rw-r--r-- | math/scilab/files/patch-xdg-open | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/math/scilab/files/patch-xdg-open b/math/scilab/files/patch-xdg-open new file mode 100644 index 000000000000..a6be94d82fd7 --- /dev/null +++ b/math/scilab/files/patch-xdg-open @@ -0,0 +1,28 @@ +--- ./modules/gui/src/java/org/scilab/modules/gui/utils/WebBrowser.java.orig 2014-07-24 22:44:04.242274707 +0000 ++++ ./modules/gui/src/java/org/scilab/modules/gui/utils/WebBrowser.java 2014-07-24 22:50:25.305278583 +0000 +@@ -98,14 +98,14 @@ + // We have <pierre.marechal@scilab.org> + String mail = "mailto:" + url.substring(1, url.length() - 1); + if (webprefs.defaultMailer) { +- Desktop.getDesktop().mail(new URI(mail)); ++ Runtime.getRuntime().exec("xdg-email " + new URI(mail).toString()); + } else { + Runtime.getRuntime().exec(webprefs.cmdMailer + " " + new URI(mail).toString()); + } + } + } else if (protocol.equals("mailto")) { + if (webprefs.defaultMailer) { +- Desktop.getDesktop().mail(new URI(url)); ++ Runtime.getRuntime().exec("xdg-open " + new URI(url).toString()); + } else { + Runtime.getRuntime().exec(webprefs.cmdMailer + " " + new URI(url).toString()); + } +@@ -113,7 +113,7 @@ + if (webprefs.defaultBrowser) { + // Under Windows, ShellExecute is called with the URI and under Linux it is gnome_url_show. + // So to handle different protocol in URI, user must config its OS to handle them. +- Desktop.getDesktop().browse(new URI(url)); ++ Runtime.getRuntime().exec("xdg-open " + new URI(url).toString()); + } else { + Runtime.getRuntime().exec(webprefs.cmdBrowser + " " + new URI(url).toString()); + } |