Bug 153274 - [maintainer] [patch] math/scilab Update to 5.3.0
Summary: [maintainer] [patch] math/scilab Update to 5.3.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Max Brazhnikov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-18 17:30 UTC by Robert Farmer
Modified: 2010-12-19 12:15 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Farmer 2010-12-18 17:30:10 UTC
Update to 5.3.0

Upstream changes:
http://www.scilab.org/content/download/1791/19327/file/changes5.2.2-5.3.0.pdf

Port changes:
-Drop dependency on readline from ports - this was never removed from the 4.x port and isn't used
-Make UMFPACK off by default - the only reason it was on by default was for consistency among 5.2.x versions, since I didn't expose the knob through OPTIONS properly until 5.2.2
-Update JGraphX to compatible version for Scilab 5.3.0
-Scilab does not start java in the normal way (with javavmwrapper) so the JAVA_HOME environment variable isn't set properly. Explictly set JAVA_HOME to whatever was used to build the port. This seems to correct occasional crashes on startup.
-Use batik-all.jar instead of batik.jar - has some extra classes in it
-Additional dependency: java/jakarta-commons-beanutils
-"bsdjava" (java/jdk16) doesn't work with this version. Require diablo or openjdk.
-Use COMMENT in DESKTOP_ENTRIES
-Switch to a dynamic plist for include/scilab, lib/scilab, and share/scilab. These directories vary quite a bit depending on what options are set but should be exclusive to scilab.
-Reorganize post-patch section so java related substitutions aren't done unless building with java
-Fix NOPORTDOCS to actually do something
-Silence post-patch output
-Remove rename of Visual Basic demos - BSD make couldn't handle the unquoted spaces in the path names, but this port now uses GNU make
-Remove unnecessary find statements in pre-install
-Remove empty directories in DATADIR/modules - toolboxes don't like them
-Fix where threads incorrectly detected as Linux style
-A couple patches are no longer necessary
-ATOMS (package manager for downloading toolboxes in binary form) is not available for FreeBSD. It tries to download a list of available packages from the Scilab website (based on uname). There is no list for FreeBSD and it HTTP 404's. Scilab misinterprets this and says "Please connect to the Internet", which is a bit misleading. Patch to indicate that this will never work. I considered faking the uname to Linux, but there are no RPMs in ports for math-type things, like fortran, blas/lapack, etc. so I doubt anything would run. Porting any desired toolboxs is probably the best route.
-Fix ATOMS to use fetch instead of requiring wget or curl (Due to the previous issue, this will only be useful for 3rd party repositories)
-Fix toolbox build macros to not write to PREFIX/share/scilab when building as root

Fix: 

Can't attach, greater than 100K due to plist changes

http://www.predatorlabs.net/dl/scilab-5.3.0.diff
Comment 1 Max Brazhnikov freebsd_committer freebsd_triage 2010-12-18 21:43:01 UTC
Responsible Changed
From-To: freebsd-ports-bugs->makc

I'll take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2010-12-19 08:51:26 UTC
makc        2010-12-19 08:51:20 UTC

  FreeBSD ports repository

  Modified files:
    math/scilab          Makefile distinfo pkg-plist 
    math/scilab/files    patch-build.incl.xml 
                         patch-etc-librarypath.xml 
  Added files:
    math/scilab/files    extra-patch-NOPORTDOCS 
                         extra-patch-bin-JAVA_HOME 
                         patch-modules-atoms-macros-atoms_gui-atomsGui.sci 
                         patch-modules-atoms-macros-atoms_internals-atomsAUWriteAccess.sci 
                         patch-modules-atoms-macros-atoms_internals-atomsDownload.sci 
                         patch-modules-core-includes-Thread_Wrapper.h 
                         patch-modules-dynamic_link-macros-ilib_gen_Make_unix.sci 
  Removed files:
    math/scilab/files    patch-modules-core-src-c-getmemory.c 
                         patch-modules-hdf5-src-java-org-scilab-modules-hdf5-read-H5Read.java 
                         patch-modules-xcos-src-java-org-scilab-modules-graph-ScilabCanvas.java 
  Log:
  Update to 5.3.0
  
  Upstream changes:
  http://www.scilab.org/content/download/1791/19327/file/changes5.2.2-5.3.0.pdf
  
  Port changes:
   -Drop dependency on readline from ports - this was never removed from the 4.x
    port and isn't used
   -Make UMFPACK off by default - the only reason it was on by default was for
    consistency among 5.2.x versions, since I didn't expose the knob through
    OPTIONS properly until 5.2.2
   -Update JGraphX to compatible version for Scilab 5.3.0
   -Scilab does not start java in the normal way (with javavmwrapper) so the
    JAVA_HOME environment variable isn't set properly. Explictly set JAVA_HOME
    to whatever was used to build the port. This seems to correct occasional
    crashes on startup.
   -Use batik-all.jar instead of batik.jar - has some extra classes in it
   -Additional dependency: java/jakarta-commons-beanutils
   -"bsdjava" (java/jdk16) doesn't work with this version. Require diablo or
    openjdk.
   -Use COMMENT in DESKTOP_ENTRIES
   -Switch to a dynamic plist for include/scilab, lib/scilab, and share/scilab.
    These directories vary quite a bit depending on what options are set but
    should be exclusive to scilab.
   -Reorganize post-patch section so java related substitutions aren't done
    unless building with java
   -Fix NOPORTDOCS to actually do something
   -Silence post-patch output
   -Remove rename of Visual Basic demos - BSD make couldn't handle the unquoted
    spaces in the path names, but this port now uses GNU make
   -Remove unnecessary find statements in pre-install
   -Remove empty directories in DATADIR/modules - toolboxes don't like them
   -Fix where threads incorrectly detected as Linux style
   -A couple patches are no longer necessary
   -ATOMS (package manager for downloading toolboxes in binary form) is not
    available for FreeBSD. It tries to download a list of available packages
    from the Scilab website (based on uname). There is no list for FreeBSD and
    it HTTP 404's. Scilab misinterprets this and says "Please connect to the
    Internet", which is a bit misleading. Patch to indicate that this will never
    work. I considered faking the uname to Linux, but there are no RPMs in ports
    for math-type things, like fortran, blas/lapack, etc. so I doubt anything
    would run. Porting any desired toolboxs is probably the best route.
   -Fix ATOMS to use fetch instead of requiring wget or curl (Due to the
    previous issue, this will only be useful for 3rd party repositories)
   -Fix toolbox build macros to not write to PREFIX/share/scilab when building
    as root
  
  PR:             ports/153274
  Submitted by:   Rob Farmer (maintainer)
  
  Revision  Changes     Path
  1.73      +82 -83     ports/math/scilab/Makefile
  1.19      +4 -6       ports/math/scilab/distinfo
  1.1       +28 -0      ports/math/scilab/files/extra-patch-NOPORTDOCS (new)
  1.1       +30 -0      ports/math/scilab/files/extra-patch-bin-JAVA_HOME (new)
  1.2       +7 -7       ports/math/scilab/files/patch-build.incl.xml
  1.2       +9 -6       ports/math/scilab/files/patch-etc-librarypath.xml
  1.1       +11 -0      ports/math/scilab/files/patch-modules-atoms-macros-atoms_gui-atomsGui.sci (new)
  1.1       +32 -0      ports/math/scilab/files/patch-modules-atoms-macros-atoms_internals-atomsAUWriteAccess.sci (new)
  1.1       +84 -0      ports/math/scilab/files/patch-modules-atoms-macros-atoms_internals-atomsDownload.sci (new)
  1.1       +16 -0      ports/math/scilab/files/patch-modules-core-includes-Thread_Wrapper.h (new)
  1.2       +0 -28      ports/math/scilab/files/patch-modules-core-src-c-getmemory.c (dead)
  1.1       +42 -0      ports/math/scilab/files/patch-modules-dynamic_link-macros-ilib_gen_Make_unix.sci (new)
  1.2       +0 -12      ports/math/scilab/files/patch-modules-hdf5-src-java-org-scilab-modules-hdf5-read-H5Read.java (dead)
  1.2       +0 -11      ports/math/scilab/files/patch-modules-xcos-src-java-org-scilab-modules-graph-ScilabCanvas.java (dead)
  1.21      +27 -14575  ports/math/scilab/pkg-plist
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Max Brazhnikov freebsd_committer freebsd_triage 2010-12-19 12:15:00 UTC
State Changed
From-To: open->closed

Committed. Thanks!