view snap/snapcraft.yaml @ 1:9f0143ed0bfe

Actual first working revision Inject OCTAVE_HOME and LD_LIBRARY_PATH environment values needed to run relocated snap binaries. Add minimal build and runtime dependencies.
author Mike Miller <mtmiller@octave.org>
date Tue, 11 Jun 2019 16:39:39 -0400
parents 42a4ce3eb618
children fb09ab721b0c
line wrap: on
line source

name: octave
base: core18
version: '5.1.0'
summary: Interactive programming environment for numerical computations
description: |
  GNU Octave is a high-level interpreted language, primarily intended for
  numerical computations. It provides capabilities for the numerical
  solution of linear and nonlinear problems, and for performing other
  numerical experiments. It also provides extensive graphics capabilities
  for data visualization and manipulation. Octave is normally used through
  its interactive command line interface, but it can also be used to write
  non-interactive programs. The Octave language is quite similar to
  Matlab so that most programs are easily portable.

grade: stable
confinement: strict

apps:
  octave:
    command: bin/octave
    environment:
      LD_LIBRARY_PATH: "$SNAP/lib/octave/5.1.0:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET"
      OCTAVE_HOME: "$SNAP"
  octave-cli:
    command: bin/octave-cli
    environment:
      LD_LIBRARY_PATH: "$SNAP/lib/octave/5.1.0:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET"
      OCTAVE_HOME: "$SNAP"

parts:
  octave:
    plugin: autotools
    source-type: tar
    source: https://ftpmirror.gnu.org/octave/octave-5.1.0.tar.xz
    build-packages:
      - libfftw3-dev
      - libopenblas-dev
      - libpcre3-dev
      - libreadline-dev
    stage-packages:
      - libfftw3-double3
      - libfftw3-single3
      - libopenblas-base
      - libpcre3