Package: matlab-support
Version: 0.0.19
Severity: wishlist

I do not remember what was our decision originally (I believe we had some
discussion about this), but why don't we have something like: 

# ls -ld /etc/profile.d/matlab-support.sh
-rw-r--r-- 1 root root 81 Jun 23 21:39 /etc/profile.d/matlab-support.sh

# cat /etc/profile.d/matlab-support.sh
#!/bin/sh
export MATLABPATH=$MATLABPATH${MATLABPATH:+:}/usr/share/matlab/site/m/

then we could either

1. add to corresponding packages path adjusting scripts (e.g.
enable_ptb3.m) under that directory making it easy to enable those modules.
Yes -- it would be a Debian-specific solution, but it would provide our users
often missing convinience.

2. create a more generic helper enable_module.m which given an argument with
the module name would:
  - check if directory exist under /usr/share/matlab/site/m/, if not -- report 
error
  - if there is a file e.g. MODULE/.__startup__.m, it would run it expecting to 
offload
    path setup to it; if it doesn't exist then simply adding that MODULE/ 
directory
    to the matlab's path thus providing easy solution for flat matlab modules 
which
    do not need multiple directories to be added to the path

What do you think?



-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (900, 'testing'), (600, 'unstable'), (300, 'experimental'), (100, 
'stable'), (100, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages matlab-support depends on:
ii  debconf [debconf-2.0]  1.5.50
ii  libxp6                 1:1.0.1-2+deb7u1
ii  sudo                   1.8.5p2-1+nmu1

Versions of packages matlab-support recommends:
ii  libstdc++-4.8-dev [libstdc++-dev]   4.8.1-3
ii  libstdc++6-4.4-dev [libstdc++-dev]  4.4.7-3
ii  libstdc++6-4.6-dev [libstdc++-dev]  4.6.4-2
ii  libstdc++6-4.7-dev [libstdc++-dev]  4.7.3-4

matlab-support suggests no packages.

-- debconf information:
* matlab-support/default-version: Matlab R2008b @ /home/soft/matlab/matlab2008b
* matlab-support/rename-libs: false
* matlab-support/mexbuild-user: yoh
* matlab-support/matlab-install-glob: /home/soft/matlab/*
  matlab-support/no-matlab-found:
  matlab-support/title:


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to