Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew outdated ossp-uuid || brew upgrade ossp-uuid; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install pcre jsoncpp python3 gtkmm3 gnome-icon-theme; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install boost-python --with-python3; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then wget http://mirror.ctan.org/systems/mac/mactex/BasicTeX.pkg -O "/tmp/BasicTeX.pkg"; sudo installer -pkg "/tmp/BasicTeX.pkg" -target /; rm /tmp/BasicTeX.pkg; export PATH=/usr/texbin:$PATH; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y texlive-latex-base; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then if [[ "`${CC} --version |grep gcc`" != "" ]]; then sudo apt-get install --yes doxygen graphviz texlive-font-utils; ./config/publish-doxygen; fi; fi

install:
Expand Down
18 changes: 6 additions & 12 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Linux (Debian/Ubuntu/Mint)

On Debian/Ubuntu you can install all that is needed with::

sudo apt-get install cmake python3-dev g++ libpcre3 libpcre3-dev libgmp3-dev
sudo apt-get install cmake python3-dev g++ libpcre3 libpcre3-dev libgmp3-dev
sudo apt-get install libgtkmm-3.0-dev libboost-all-dev libgmp-dev
sudo apt-get install python-sympy libsqlite3-dev uuid-dev
sudo apt-get install texlive texlive-latex-extra python3-matplotlib python3-mpmath dvipng
Expand All @@ -73,7 +73,7 @@ On Fedora/CentOS/Scientific Linux you can install the dependencies with::

sudo yum install cmake gcc-c++ python-devel pcre-devel gmp-devel
sudo yum install libuuid-devel sqlite-devel
sudo yum install gtkmm30-devel boost-devel
sudo yum install gtkmm30-devel boost-devel
sudo yum install texlive python3-matplotlib

This platform receives less testing so please get in touch if you run
Expand Down Expand Up @@ -119,10 +119,10 @@ Cadabra builds with the standard Apple compiler, but in order to
build on OS X you need a number of packages from Homebrew (see
http://brew.sh). Install these packages with::

brew install cmake boost pcre gmp python3
brew install cmake boost pcre gmp python3
brew uninstall boost-python
brew install boost-python --with-python3
brew install pkgconfig ossp-uuid
brew install pkgconfig ossp-uuid
brew install gtkmm3 adwaita-icon-theme

The uninstall of boost-python in the 2nd line is to ensure that you
Expand All @@ -146,7 +146,7 @@ done with the standard::
sudo make install

This will produce the command line app ``cadabra2`` and the Gtk
notebook interface ``cadabra-gtk``.
notebook interface ``cadabra-gtk``.

I am still planning a native OS X interface, but because building the
Gtk interface is so easy and the result looks relatively decent, this
Expand All @@ -165,12 +165,6 @@ and all other documentation, and http://kpeeters.github.io/cadabra2
for doxygen documentation of the current master branch. The latter can
also be generated locally; you will need (on Debian and derivatives)::

sudo apt-get install doxygen libjs-mathjax
sudo apt-get install doxygen libjs-mathjax

For any questions, please contact info@cadabra.science .






2 changes: 2 additions & 0 deletions frontend/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ endif(GTKMM3_FOUND)
# endif(APPLE)

execute_process(COMMAND kpsewhich -var-value=TEXMFLOCAL OUTPUT_VARIABLE INSTALL_LATEX_DIR OUTPUT_STRIP_TRAILING_WHITESPACE)
string(REPLACE ":" ";" INSTALL_LATEX_DIR "${INSTALL_LATEX_DIR}")
list(GET INSTALL_LATEX_DIR -1 INSTALL_LATEX_DIR)
set(INSTALL_LATEX_DIR "${INSTALL_LATEX_DIR}/tex/latex/cadabra2")
message("-- Installing LaTeX style files in ${INSTALL_LATEX_DIR}")
install(DIRECTORY DESTINATION ${INSTALL_LATEX_DIR} DIRECTORY_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
Expand Down