Commit e0989e26 authored by Christian Stenger's avatar Christian Stenger
Browse files

Update speedcrunch to release-0.12.0

parent 57b9abe1
<p align="center"><img src="/src/resources/speedcrunch.png"></p>
# SpeedCrunch
A cross-platform, keyboard-oriented desktop scientific calculator.
## Installing
For release package downloads see the [official page](http://www.speedcrunch.org/).
SpeedCrunch is a high-precision scientific calculator. It features a syntax-highlighted
scrollable display and is designed to be fully used via keyboard. Some distinctive
features are auto-completion of functions and variables, a formula book, and quick
insertion of constants from various fields of knowledge. It is available for Windows, OS X,
and Linux in a number of languages.
To build from source, use either CMake or QMake to build the project:
![capture.png](https://bitbucket.org/repo/dR7BnG/images/3654665019-capture.png)
cd src && cmake . && make
## Building
To build SpeedCrunch, you need:
or
- A C++11-capable compiler (e.g. Microsoft Visual C++ 2013 or later, GCC 4.8 or later)
- [Qt](http://qt.io) 5.2 or later
- [CMake](http://cmake.org) 2.8.12 or later
cd src && qmake speedcrunch.pro && make
In order to have your application settings stored in the same location as
the executable for portability (e.g. running from a USB drive or a directory
without requiring installation and special permissions), configure the project
as below:
To build SpeedCrunch in a dedicated build directory and install it, run the following
commands from the root of the source directory:
cmake -DCMAKE_CXX_FLAGS:STRING="-DSPEEDCRUNCH_PORTABLE"
mkdir build
cd build
cmake ../src
make install
or
When building against a Qt version that is not the system default Qt installation,
point CMake towards the Qt installation to use by setting the `CMAKE_PREFIX_PATH`
environment variable to the prefix directory of the Qt installation when running CMake.
qmake "DEFINES+=SPEEDCRUNCH_PORTABLE" speedcrunch.pro
You can customize the build using the following variables. These are specified when
running CMake, in the form `cmake ../src -Dvariable=value`.
- **PORTABLE_SPEEDCRUNCH**: Set this to `on` to have the application settings stored
in the same location as the executable, e.g. for running from a USB drive without
requiring installation.
- **CMAKE_INSTALL_PREFIX**: Change the installation prefix for SpeedCrunch.
- **REBUILD_MANUAL**: Set to `on` to also rebuild the included manual. By default,
a bundled prebuilt copy is used to minimize dependencies. Rebuilding the manual
requires the following additional software:
- [Python](http://python.org) 3.4 or later
- [Sphinx](http://sphinx-doc.org) 1.3 or later
- [the Quark theme](https://pypi.python.org/pypi/quark-sphinx-theme) 0.2 or later
## Contributing
- Report bugs or request features in the [issue tracker](http://code.google.com/p/speedcrunch/issues/list).
- Report bugs or request features in the
[issue tracker](https://bitbucket.org/heldercorreia/speedcrunch/issues).
- Add or improve a [translation](https://www.transifex.com/projects/p/speedcrunch/).
- Send a message to the [forum](https://groups.google.com/group/speedcrunch).
- Follow the news on the [blog](http://speedcrunch.blogspot.com).
......@@ -40,4 +56,4 @@ the Free Software Foundation; either version 2 of the License, or
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
GNU General Public License for more details.
\ No newline at end of file
cd ../doc/src
make html
cd -
# Tested on Debian-based systems (Ubuntu 16.04). Your package names may vary slightly.
install-app-dependencies.sh && install-doc-dependencies.sh && install-intl-dependencies.sh
# Tested on Debian-based systems (Ubuntu 16.04). Your package names may vary slightly.
sudo apt-get install libqt5widgets5 libqt5help5 cmake
# Tested on Debian-based systems (Ubuntu 16.04). Your package names may vary slightly.
sudo apt-get install python3 python3-pip python3-sphinx
pip3 install quark-sphinx-theme --upgrade
# Tested on Debian-based systems (Ubuntu 16.04). Your package names may vary slightly.
sudo apt-get install transifex-client gettext intltool-debian
pip install urllib3 --upgrade
TRANSIFEXRCFILE="$HOME/.transifexrc"
if [ ! -f $TRANSIFEXRCFILE ]; then
echo -e \
"[https://www.transifex.com]\n"\
"hostname = https://www.transifex.com\n"\
"username = <USERNAME>\n"\
"password = <PASSWORD>\n"\
"token =\n" > $TRANSIFEXRCFILE
echo File $TRANSIFEXRCFILE created. Please edit it accordingly before proceeding.
fi
VERSION=${1:-master}
sed -i '/set(speedcrunch_VERSION/c\set(speedcrunch_VERSION "'"$VERSION"'")' ../src/CMakeLists.txt
sed -i '/DEFINES += SPEEDCRUNCH_VERSION/c\DEFINES += SPEEDCRUNCH_VERSION=\\\\\\"'"$VERSION"'\\\\\\"' ../src/speedcrunch.pro
sed -i '/RELEASE_VERSION=/c\RELEASE_VERSION='"$VERSION" ../pkg/cross-linux/build-speedcrunch.sh
sed -i '/version =/c\version = '"'$VERSION'" ../doc/src/conf.py
sed -i '/release =/c\release = '"'$VERSION'" ../doc/src/conf.py
SCRIPTDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOTDIR="$(dirname "$SCRIPTDIR")"
SOURCEDIR="$ROOTDIR/src"
LOCALEDIR="$SOURCEDIR/resources/locale"
PROJECTFILE="$SOURCEDIR/speedcrunch.pro"
APPDATADIR="$ROOTDIR/pkg/desktop-appdata"
# UI strings.
cd $LOCALEDIR
tx pull -f
cd $SOURCEDIR
lupdate -no-obsolete $PROJECTFILE
lrelease -removeidentical -compress $PROJECTFILE
cd $LOCALEDIR
tx push -s -t
# Linux AppData strings.
tx pull -f
./metadata-tool.sh update-metadata-files
./metadata-tool.sh extract-strings
tx push -s -t
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment