Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
SpeedCrunch is a simple but powerful calculator.
Among its features are:
- high precision, up to 50 decimal digits
- to be enjoyed using keyboard
- result shown in scrollable window
- history of last expressions (use up and down arrow)
- built-in functions: abs, sqrt, pi, log, exp, ln, sin, cos, tan, sinh,
cosh, tanh, asin, acos, atan, arsinh, arcosh, artanh
- postfix operator ! lets you compute factorials
- support for variables, e.g try x=pi/3 and then sin(x)
- special variable ans holds the last calculation result
- percent operator, try e.g. 45%*75 or price/80%
- angle mode: Alt+D for degrees, Alt+R for radians
- automatic parentheses closing, e.g. cos(pi/4 becomes cos(pi/4)
+29
View File
@@ -0,0 +1,29 @@
# $NetBSD: Makefile,v 1.21 2013/06/06 12:54:44 wiz Exp $
#
DISTNAME= speedcrunch-0.10.1
PKGREVISION= 19
CATEGORIES= math
MASTER_SITES= http://speedcrunch.googlecode.com/files/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.speedcrunch.org/
COMMENT= Calculator
LICENSE= gnu-gpl-v2
WRKSRC= ${WRKDIR}/speedcrunch-0.10.1/src
USE_LANGUAGES= c c++
USE_CMAKE= yes
SUBST_CLASSES+= prefix
SUBST_STAGE.prefix= pre-configure
SUBST_FILES.prefix= gui/mainwindow.cpp
SUBST_VARS.prefix= PREFIX
post-build:
(cd ${WRKSRC} && ${QTDIR}/bin/lrelease speedcrunch.pro)
.include "../../x11/qt4-libs/buildlink3.mk"
.include "../../x11/qt4-tools/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"
+260
View File
@@ -0,0 +1,260 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2010/02/03 14:09:17 drochner Exp $
bin/speedcrunch
share/applications/speedcrunch.desktop
share/pixmaps/speedcrunch.png
share/speedcrunch/books/books.css
share/speedcrunch/books/ca/circle.html
share/speedcrunch/books/ca/cone.html
share/speedcrunch/books/ca/cube.html
share/speedcrunch/books/ca/cylinder.html
share/speedcrunch/books/ca/math_index.html
share/speedcrunch/books/ca/quadratic_equation.html
share/speedcrunch/books/ca/right_triangle.html
share/speedcrunch/books/ca/sector.html
share/speedcrunch/books/ca/sphere.html
share/speedcrunch/books/cs/circle.html
share/speedcrunch/books/cs/cone.html
share/speedcrunch/books/cs/cube.html
share/speedcrunch/books/cs/cylinder.html
share/speedcrunch/books/cs/index.html
share/speedcrunch/books/cs/math_index.html
share/speedcrunch/books/cs/quadratic_equation.html
share/speedcrunch/books/cs/right_triangle.html
share/speedcrunch/books/cs/sector.html
share/speedcrunch/books/cs/sphere.html
share/speedcrunch/books/de/circle.html
share/speedcrunch/books/de/cone.html
share/speedcrunch/books/de/cube.html
share/speedcrunch/books/de/cylinder.html
share/speedcrunch/books/de/index.html
share/speedcrunch/books/de/math_index.html
share/speedcrunch/books/de/quadratic_equation.html
share/speedcrunch/books/de/right_triangle.html
share/speedcrunch/books/de/sector.html
share/speedcrunch/books/de/sphere.html
share/speedcrunch/books/en/circle.html
share/speedcrunch/books/en/cone.html
share/speedcrunch/books/en/cube.html
share/speedcrunch/books/en/cylinder.html
share/speedcrunch/books/en/index.html
share/speedcrunch/books/en/math_index.html
share/speedcrunch/books/en/quadratic_equation.html
share/speedcrunch/books/en/right_triangle.html
share/speedcrunch/books/en/sector.html
share/speedcrunch/books/en/sphere.html
share/speedcrunch/books/es/circle.html
share/speedcrunch/books/es/cone.html
share/speedcrunch/books/es/cube.html
share/speedcrunch/books/es/cylinder.html
share/speedcrunch/books/es/index.html
share/speedcrunch/books/es/math_index.html
share/speedcrunch/books/es/quadratic_equation.html
share/speedcrunch/books/es/right_triangle.html
share/speedcrunch/books/es/sector.html
share/speedcrunch/books/es/sphere.html
share/speedcrunch/books/es_AR/circle.html
share/speedcrunch/books/es_AR/cone.html
share/speedcrunch/books/es_AR/cube.html
share/speedcrunch/books/es_AR/cylinder.html
share/speedcrunch/books/es_AR/index.html
share/speedcrunch/books/es_AR/math_index.html
share/speedcrunch/books/es_AR/quadratic_equation.html
share/speedcrunch/books/es_AR/right_triangle.html
share/speedcrunch/books/es_AR/sector.html
share/speedcrunch/books/es_AR/sphere.html
share/speedcrunch/books/eu/circle.html
share/speedcrunch/books/eu/cone.html
share/speedcrunch/books/eu/cube.html
share/speedcrunch/books/eu/cylinder.html
share/speedcrunch/books/eu/math_index.html
share/speedcrunch/books/eu/quadratic_equation.html
share/speedcrunch/books/eu/right_triangle.html
share/speedcrunch/books/eu/sector.html
share/speedcrunch/books/eu/sphere.html
share/speedcrunch/books/fi/circle.html
share/speedcrunch/books/fi/cone.html
share/speedcrunch/books/fi/cube.html
share/speedcrunch/books/fi/cylinder.html
share/speedcrunch/books/fi/index.html
share/speedcrunch/books/fi/math_index.html
share/speedcrunch/books/fi/quadratic_equation.html
share/speedcrunch/books/fi/right_triangle.html
share/speedcrunch/books/fi/sector.html
share/speedcrunch/books/fi/sphere.html
share/speedcrunch/books/fr/circle.html
share/speedcrunch/books/fr/cone.html
share/speedcrunch/books/fr/cube.html
share/speedcrunch/books/fr/cylinder.html
share/speedcrunch/books/fr/index.html
share/speedcrunch/books/fr/math_index.html
share/speedcrunch/books/fr/quadratic_equation.html
share/speedcrunch/books/fr/right_triangle.html
share/speedcrunch/books/fr/sector.html
share/speedcrunch/books/fr/sphere.html
share/speedcrunch/books/he/circle.html
share/speedcrunch/books/he/cone.html
share/speedcrunch/books/he/cube.html
share/speedcrunch/books/he/cylinder.html
share/speedcrunch/books/he/index.html
share/speedcrunch/books/he/math_index.html
share/speedcrunch/books/he/quadratic_equation.html
share/speedcrunch/books/he/right_triangle.html
share/speedcrunch/books/he/sector.html
share/speedcrunch/books/he/sphere.html
share/speedcrunch/books/id/circle.html
share/speedcrunch/books/id/cone.html
share/speedcrunch/books/id/cube.html
share/speedcrunch/books/id/cylinder.html
share/speedcrunch/books/id/index.html
share/speedcrunch/books/id/math_index.html
share/speedcrunch/books/id/quadratic_equation.html
share/speedcrunch/books/id/right_triangle.html
share/speedcrunch/books/id/sector.html
share/speedcrunch/books/id/sphere.html
share/speedcrunch/books/images/circle.png
share/speedcrunch/books/images/circle.svgz
share/speedcrunch/books/images/cone.png
share/speedcrunch/books/images/cone.svgz
share/speedcrunch/books/images/cube.png
share/speedcrunch/books/images/cube.svgz
share/speedcrunch/books/images/cylinder.png
share/speedcrunch/books/images/cylinder.svgz
share/speedcrunch/books/images/make_math_pngs.sh
share/speedcrunch/books/images/quadratic_equation.mml
share/speedcrunch/books/images/quadratic_equation.png
share/speedcrunch/books/images/right_triangle.png
share/speedcrunch/books/images/right_triangle.svgz
share/speedcrunch/books/images/sector.png
share/speedcrunch/books/images/sector.svgz
share/speedcrunch/books/images/sphere.png
share/speedcrunch/books/images/sphere.svgz
share/speedcrunch/books/it/circle.html
share/speedcrunch/books/it/cone.html
share/speedcrunch/books/it/cube.html
share/speedcrunch/books/it/cylinder.html
share/speedcrunch/books/it/index.html
share/speedcrunch/books/it/math_index.html
share/speedcrunch/books/it/quadratic_equation.html
share/speedcrunch/books/it/right_triangle.html
share/speedcrunch/books/it/sector.html
share/speedcrunch/books/it/sphere.html
share/speedcrunch/books/nb/circle.html
share/speedcrunch/books/nb/cone.html
share/speedcrunch/books/nb/cube.html
share/speedcrunch/books/nb/cylinder.html
share/speedcrunch/books/nb/index.html
share/speedcrunch/books/nb/math_index.html
share/speedcrunch/books/nb/quadratic_equation.html
share/speedcrunch/books/nb/right_triangle.html
share/speedcrunch/books/nb/sector.html
share/speedcrunch/books/nb/sphere.html
share/speedcrunch/books/nl/circle.html
share/speedcrunch/books/nl/cone.html
share/speedcrunch/books/nl/cube.html
share/speedcrunch/books/nl/cylinder.html
share/speedcrunch/books/nl/index.html
share/speedcrunch/books/nl/math_index.html
share/speedcrunch/books/nl/quadratic_equation.html
share/speedcrunch/books/nl/right_triangle.html
share/speedcrunch/books/nl/sector.html
share/speedcrunch/books/nl/sphere.html
share/speedcrunch/books/pl/circle.html
share/speedcrunch/books/pl/cone.html
share/speedcrunch/books/pl/cube.html
share/speedcrunch/books/pl/cylinder.html
share/speedcrunch/books/pl/index.html
share/speedcrunch/books/pl/math_index.html
share/speedcrunch/books/pl/quadratic_equation.html
share/speedcrunch/books/pl/right_triangle.html
share/speedcrunch/books/pl/sector.html
share/speedcrunch/books/pl/sphere.html
share/speedcrunch/books/pt/circle.html
share/speedcrunch/books/pt/cone.html
share/speedcrunch/books/pt/cube.html
share/speedcrunch/books/pt/cylinder.html
share/speedcrunch/books/pt/index.html
share/speedcrunch/books/pt/math_index.html
share/speedcrunch/books/pt/quadratic_equation.html
share/speedcrunch/books/pt/right_triangle.html
share/speedcrunch/books/pt/sector.html
share/speedcrunch/books/pt/sphere.html
share/speedcrunch/books/pt_BR/circle.html
share/speedcrunch/books/pt_BR/cone.html
share/speedcrunch/books/pt_BR/cube.html
share/speedcrunch/books/pt_BR/cylinder.html
share/speedcrunch/books/pt_BR/index.html
share/speedcrunch/books/pt_BR/math_index.html
share/speedcrunch/books/pt_BR/quadratic_equation.html
share/speedcrunch/books/pt_BR/right_triangle.html
share/speedcrunch/books/pt_BR/sector.html
share/speedcrunch/books/pt_BR/sphere.html
share/speedcrunch/books/ro/circle.html
share/speedcrunch/books/ro/cone.html
share/speedcrunch/books/ro/cube.html
share/speedcrunch/books/ro/cylinder.html
share/speedcrunch/books/ro/index.html
share/speedcrunch/books/ro/math_index.html
share/speedcrunch/books/ro/quadratic_equation.html
share/speedcrunch/books/ro/right_triangle.html
share/speedcrunch/books/ro/sector.html
share/speedcrunch/books/ro/sphere.html
share/speedcrunch/books/ru/circle.html
share/speedcrunch/books/ru/cone.html
share/speedcrunch/books/ru/cube.html
share/speedcrunch/books/ru/cylinder.html
share/speedcrunch/books/ru/index.html
share/speedcrunch/books/ru/math_index.html
share/speedcrunch/books/ru/quadratic_equation.html
share/speedcrunch/books/ru/right_triangle.html
share/speedcrunch/books/ru/sector.html
share/speedcrunch/books/ru/sphere.html
share/speedcrunch/books/sv/circle.html
share/speedcrunch/books/sv/cone.html
share/speedcrunch/books/sv/cube.html
share/speedcrunch/books/sv/cylinder.html
share/speedcrunch/books/sv/index.html
share/speedcrunch/books/sv/math_index.html
share/speedcrunch/books/sv/quadratic_equation.html
share/speedcrunch/books/sv/right_triangle.html
share/speedcrunch/books/sv/sector.html
share/speedcrunch/books/sv/sphere.html
share/speedcrunch/books/tr/circle.html
share/speedcrunch/books/tr/cone.html
share/speedcrunch/books/tr/cube.html
share/speedcrunch/books/tr/cylinder.html
share/speedcrunch/books/tr/index.html
share/speedcrunch/books/tr/math_index.html
share/speedcrunch/books/tr/quadratic_equation.html
share/speedcrunch/books/tr/right_triangle.html
share/speedcrunch/books/tr/sector.html
share/speedcrunch/books/tr/sphere.html
share/speedcrunch/books/zh_CN/circle.html
share/speedcrunch/books/zh_CN/cone.html
share/speedcrunch/books/zh_CN/cube.html
share/speedcrunch/books/zh_CN/cylinder.html
share/speedcrunch/books/zh_CN/math_index.html
share/speedcrunch/books/zh_CN/quadratic_equation.html
share/speedcrunch/books/zh_CN/right_triangle.html
share/speedcrunch/books/zh_CN/sector.html
share/speedcrunch/books/zh_CN/sphere.html
share/speedcrunch/locale/ca.qm
share/speedcrunch/locale/cs.qm
share/speedcrunch/locale/de.qm
share/speedcrunch/locale/es.qm
share/speedcrunch/locale/es_AR.qm
share/speedcrunch/locale/eu.qm
share/speedcrunch/locale/fi.qm
share/speedcrunch/locale/fr.qm
share/speedcrunch/locale/he.qm
share/speedcrunch/locale/id.qm
share/speedcrunch/locale/it.qm
share/speedcrunch/locale/nb.qm
share/speedcrunch/locale/nl.qm
share/speedcrunch/locale/pl.qm
share/speedcrunch/locale/pt.qm
share/speedcrunch/locale/pt_BR.qm
share/speedcrunch/locale/ro.qm
share/speedcrunch/locale/ru.qm
share/speedcrunch/locale/sv.qm
share/speedcrunch/locale/tr.qm
share/speedcrunch/locale/zh_CN.qm
+6
View File
@@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.1.1.1 2010/02/03 14:09:17 drochner Exp $
SHA1 (speedcrunch-0.10.1.tar.gz) = 385828ae8900dd4caee7fa437a2fb35f224d540a
RMD160 (speedcrunch-0.10.1.tar.gz) = 1a3b81d979b95a0c88e65add28736e5960c19bad
Size (speedcrunch-0.10.1.tar.gz) = 1722124 bytes
SHA1 (patch-aa) = ca2f19a98b74fa5d8f2250c6914b72c68f2b73aa
+49
View File
@@ -0,0 +1,49 @@
$NetBSD: patch-aa,v 1.1.1.1 2010/02/03 14:09:17 drochner Exp $
--- gui/mainwindow.cpp.orig 2008-05-22 21:45:21.000000000 +0000
+++ gui/mainwindow.cpp
@@ -341,16 +341,20 @@ QTranslator * MainWindow::Private::creat
return translator;
#else
+#if 0
BrInitError error;
if ( br_init( & error ) == 0 && error != BR_INIT_ERROR_DISABLED )
{
qDebug( "Warning: BinReloc failed to initialize (error code %d)", error );
qDebug( "Will fallback to hardcoded default path." );
}
+#endif
- char * dataDir = br_find_data_dir( 0 );
+ char * dataDir = "@PREFIX@/share";
QString localeDir = QString( dataDir ) + "/speedcrunch/locale";
+#if 0
free( dataDir );
+#endif
if ( translator->load( localeFile, localeDir ) )
return translator;
else
@@ -1004,17 +1008,21 @@ void MainWindow::Private::createBookDock
appPath.remove( ii, appPath.length() );
booksDir = appPath + '/' + QString( "books/" );
#else
+#if 0
BrInitError error;
if ( br_init( & error ) == 0 && error != BR_INIT_ERROR_DISABLED )
{
qDebug( "Warning: BinReloc failed to initialize (error code %d)", error );
qDebug( "Will fallback to hardcoded default path." );
}
+#endif
- char * dataDir = br_find_data_dir( 0 );
+ char * dataDir = "@PREFIX@/share";
booksDir = QString( dataDir ) + "/speedcrunch/books/";
+#if 0
free( dataDir );
#endif
+#endif
docks.book = new BookDock( booksDir, "math_index.html", settings.language,
p );