Ticket #10828: 10828.patch

File 10828.patch, 1.3 KB (added by jason, 11 years ago)

FYI Only---already applied to spkg.

  • SPKG.txt

    # HG changeset patch
    # User Jason Grout <jason-sage@creativetrax.com>
    # Date 1299007199 21600
    # Node ID 661e32a5c0501dad7a360eaeb8ea8d1d3eb80711
    # Parent  cd80018a5dc7c103eef841f7e617c04f9a5ab77e
    #10828: Add SAGE_SPKG_INSTALL_DOCS support to build and install docs in $SAGE_ROOT/local/share/doc/
    
    diff -r cd80018a5dc7 -r 661e32a5c050 SPKG.txt
    a b  
    3030  some name clashes on OSX.
    3131
    3232== Changelog ==
     33
     34=== matplotlib 1.0.1.p0 (Jason Grout, 22 Feb 2011) ===
     35 * #10828: Add SAGE_SPKG_INSTALL_DOCS support to build and install docs in $SAGE_ROOT/local/share/doc/
     36
    3337=== matplotlib 1.0.1 (Ryan Grout, 10 Jan 2011) ===
    3438 * Update to matplotlib 1.0.1.  Fixes a handful of annoying bugs in SAGE.
    3539
  • spkg-install

    diff -r cd80018a5dc7 -r 661e32a5c050 spkg-install
    a b  
    3131
    3232# Finally install
    3333python setup.py install
     34
     35if [ $? -ne 0 ]; then
     36    echo "Error building matplotlib."
     37    exit 1
     38fi
     39
     40if [ "x$SAGE_SPKG_INSTALL_DOCS" = xyes ] ; then
     41    cd doc
     42    python make.py html
     43    if [ $? -ne 0 ]; then
     44        echo "Error building matplotlib docs."
     45        exit 1
     46    fi
     47    mkdir -p $SAGE_ROOT/local/share/doc/matplotlib
     48    cp -r build/html $SAGE_ROOT/local/share/doc/matplotlib
     49fi