speedcrunch: new package

speedcrunch is a fast power user calculator.

+66
+38
pkgs/applications/science/math/speedcrunch/default.nix
··· 1 + { stdenv, fetchurl, qt, cmake }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "speedcrunch-0.11-alpha"; 5 + 6 + src = fetchurl { 7 + url = "http://speedcrunch.googlecode.com/files/${name}.tar.gz"; 8 + sha256 = "c6d6328e0c018cd8b98a0e86fb6c49fedbab5dcc831b47fbbc1537730ff80882"; 9 + }; 10 + 11 + patches = [./speedcrunch-0.11-alpha-dso_linking.patch]; 12 + 13 + buildInputs = [cmake qt]; 14 + 15 + dontUseCmakeBuildDir = true; 16 + 17 + cmakeDir = "../src"; 18 + 19 + preConfigure = '' 20 + mkdir -p build 21 + cd build 22 + ''; 23 + 24 + buildFlags = "VERBOSE=1"; 25 + 26 + meta = { 27 + homepage = "http://speedcrunch.digitalfanatics.org"; 28 + license = "GPLv2+"; 29 + description = "A fast power user calculator"; 30 + longDescription = '' 31 + SpeedCrunch is a fast, high precision and powerful desktop calculator. 32 + Among its distinctive features are a scrollable display, up to 50 decimal 33 + precisions, unlimited variable storage, intelligent automatic completion 34 + full keyboard-friendly and more than 15 built-in math function. 35 + ''; 36 + }; 37 + 38 + }
+23
pkgs/applications/science/math/speedcrunch/speedcrunch-0.11-alpha-dso_linking.patch
··· 1 + diff -up speedcrunch-0.11-alpha/src/CMakeLists.txt.dso_linking speedcrunch-0.11-alpha/src/CMakeLists.txt 2 + --- speedcrunch-0.11-alpha/src/CMakeLists.txt.dso_linking 2009-11-04 15:37:15.000000000 -0600 3 + +++ speedcrunch-0.11-alpha/src/CMakeLists.txt 2010-06-25 13:25:07.133460528 -0500 4 + @@ -54,6 +54,10 @@ ENDIF(CMAKE_COMPILER_IS_GNUCXX ) 5 + SET(QT_USE_QTNETWORK TRUE) 6 + #SET(QT_USE_QTXML TRUE) 7 + find_package(Qt4 REQUIRED) 8 + +if (Q_WS_X11) 9 + + find_package(X11 REQUIRED) 10 + +endif (Q_WS_X11) 11 + + 12 + include(${QT_USE_FILE}) 13 + 14 + # build everything 15 + @@ -80,7 +84,7 @@ ENDIF( APPLE ) 16 + 17 + ADD_CUSTOM_TARGET( confclean COMMAND rm -rf Makefile CMakeFiles/ CMakeCache.txt cmake_install.cmake DartTestfile.txt install_manifest.txt ) 18 + 19 + -TARGET_LINK_LIBRARIES(${PROGNAME} ${QT_LIBRARIES}) 20 + +TARGET_LINK_LIBRARIES(${PROGNAME} ${QT_LIBRARIES} ${X11_X11_LIB} ) 21 + # only needed for static builds when directx is enabled in qt and you 22 + # get a linker error because of missing a directx function 23 + #IF(WIN32)
+5
pkgs/top-level/all-packages.nix
··· 9709 9709 9710 9710 yacas = callPackage ../applications/science/math/yacas { }; 9711 9711 9712 + speedcrunch = callPackage ../applications/science/math/speedcrunch { 9713 + qt = qt4; 9714 + cmake = cmakeCurses; 9715 + }; 9716 + 9712 9717 9713 9718 ### SCIENCE / MISC 9714 9719