Ticket #10826: 10826.patch

File 10826.patch, 1.1 KB (added by jason, 9 years ago)

FYI Only---already applied to spkg.

  • SPKG.txt

    # HG changeset patch
    # User Jason Grout <jason-sage@creativetrax.com>
    # Date 1299006194 21600
    # Node ID 8e92bbed9cc21b26839e29d028cc975be90b10bb
    # Parent  a9cc0f1058f537daddc3bedf6cec56d10f3261ed
    #10826: Add SAGE_SPKG_INSTALL_DOCS support to build and install docs
    
    diff -r a9cc0f1058f5 -r 8e92bbed9cc2 SPKG.txt
    a b  
    2525
    2626== Changelog ==
    2727
     28=== numpy-1.5.1.p0 (Jason Grout, 22 Feb 2011) ==
     29 * #10826: Add SAGE_SPKG_INSTALL_DOCS support to build and install docs
     30
    2831=== numpy-1.5.1 (Francois Bissey, 18 Feb 2011) ==
    2932 * Update to numpy-1.5.1
    3033 * Upstream tickets #1399, #1605 and #1625 have been fixed in this version,
  • spkg-install

    diff -r a9cc0f1058f5 -r 8e92bbed9cc2 spkg-install
    a b  
    6060    exit 1
    6161fi
    6262
     63if [ "x$SAGE_SPKG_INSTALL_DOCS" = xyes ] ; then
     64    cd doc
     65    make html
     66    if [ $? -ne 0 ]; then
     67        echo "Error building numpy docs."
     68        exit 1
     69    fi
     70    mkdir -p $SAGE_ROOT/local/share/doc/numpy
     71    cp -r build/html $SAGE_ROOT/local/share/doc/numpy
     72fi