SpeedCrunch is a multiplatform desktop calculator for power users.

It is designed to be enjoyed using keyboard. Result is shown in
scrollable display, history of expressions is available with up
and down arrow.

Some other features:
optional keypad, syntax highlight, matched parenthesis indicator,
just-in-time calculation (show result even before you finish typing)
and autocomplete for variables.

WWW: http://speedcrunch.digitalfanatics.org/

Note: Moved from science to math at danfe@'s request (no repocopy since there
is no history to preserve).

PR:		ports/114969
Submitted by:	Yinghong.Liu <relaxbsd at gmail.com>
This commit is contained in:
Ion-Mihai Tetcu 2007-08-14 13:34:10 +00:00
parent 959b223649
commit f1d6e589bb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=197663
5 changed files with 118 additions and 0 deletions

View file

@ -350,6 +350,7 @@
SUBDIR += snns
SUBDIR += solitaire
SUBDIR += spar
SUBDIR += speedcrunch
SUBDIR += spooles
SUBDIR += spooles-mpich
SUBDIR += ss

71
math/speedcrunch/Makefile Normal file
View file

@ -0,0 +1,71 @@
# New ports collection makefile for: speedcrunch
# Date created: 27 Jul 2007
# Whom: Yinghong.Liu <relaxbsd@gmail.com>
#
# $FreeBSD$
#
PORTNAME= speedcrunch
DISTVERSION= 0.8
CATEGORIES= math
MASTER_SITES= http://speedcrunch.googlecode.com/files/
MAINTAINER= relaxbsd@gmail.com
COMMENT= A desktop calculator for power users
BUILD_DEPENDS= cmake:${PORTSDIR}/devel/cmake
USE_QT_VER= 4
QT_COMPONENTS= qmake corelib moc gui rcc
CMAKE_ARGS= -DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_C_COMPILER:STRING='${CC}' \
-DCMAKE_CXX_COMPILER:STRING=${CXX} \
-DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS} -pthread" \
-DCMAKE_INSTALL_PREFIX=${PREFIX}
MYPORTDOCS= COPYING ChangeLog HACKING.txt INSTALL.txt LISEZMOI PACKAGERS README \
TRANSLATORS doc/man.docbook doc/speedcrunch.docbook
.if !defined(WITHOUT_NLS)
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif
DESKTOP_ENTRIES= "SpeedCrunch" \
"A desktop calculator for power users" \
"crunch" \
"speedcrunch" \
"Qt;KDE;Education;Math;" \
"false"
post-patch:
@${REINPLACE_CMD} -e 's|qwindowdefs.h|QtGui/qwindowdefs.h|g' \
-e 's|qcolor.h|QtGui/qcolor.h|g' \
-e 's|qfont.h|QtGui/qfont.h|g' \
-e 's|qrect.h|QtCore/qrect.h|g' \
-e 's|qstring.h|QtCore/qstring.h|g' \
-e 's|qstringlist.h|QtCore/qstringlist.h|g' \
${WRKSRC}/src/settings.h
@${REINPLACE_CMD} -e 's|crunch\"|speedcrunch\"|g' \
${WRKSRC}/src/main.cpp
pre-build:
@(cd ${WRKSRC}; \
${SETENV} ${CONFIGURE_ENV} ${LOCALBASE}/bin/cmake ${CMAKE_ARGS} ${WRKSRC}/src)
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/speedcrunch ${PREFIX}/bin
@${INSTALL_DATA} ${WRKSRC}/src/crunch.png ${PREFIX}/share/pixmaps
.if !defined(WITHOUT_NLS)
@${MKDIR} ${DATADIR}
@${INSTALL_DATA} ${WRKSRC}/src/*.qm ${DATADIR}
.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for doc in ${MYPORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
MD5 (speedcrunch-0.8.tar.gz) = 182508151b4d92a0f75b69b90214d3fc
SHA256 (speedcrunch-0.8.tar.gz) = 0a790b0baa58133b0112e94a2eefc0236a6304c95c1728b791eef55aa653ca93
SIZE (speedcrunch-0.8.tar.gz) = 409075

View file

@ -0,0 +1,11 @@
SpeedCrunch is a multiplatform desktop calculator for power users.
It is designed to be enjoyed using keyboard. Result is shown in
scrollable display, history of expressions is available with up
and down arrow.
Some other features:
optional keypad, syntax highlight, matched parenthesis indicator,
just-in-time calculation (show result even before you finish typing)
and autocomplete for variables.
WWW: http://speedcrunch.digitalfanatics.org/

View file

@ -0,0 +1,32 @@
bin/speedcrunch
%%NLS%%%%DATADIR%%/crunch_cs.qm
%%NLS%%%%DATADIR%%/crunch_es_AR.qm
%%NLS%%%%DATADIR%%/crunch_he.qm
%%NLS%%%%DATADIR%%/crunch_nl.qm
%%NLS%%%%DATADIR%%/crunch_pt.qm
%%NLS%%%%DATADIR%%/crunch_ru.qm
%%NLS%%%%DATADIR%%/crunch_de.qm
%%NLS%%%%DATADIR%%/crunch_fi.qm
%%NLS%%%%DATADIR%%/crunch_id.qm
%%NLS%%%%DATADIR%%/crunch_no.qm
%%NLS%%%%DATADIR%%/crunch_pt_BR.qm
%%NLS%%%%DATADIR%%/crunch_sl.qm
%%NLS%%%%DATADIR%%/crunch_es.qm
%%NLS%%%%DATADIR%%/crunch_fr.qm
%%NLS%%%%DATADIR%%/crunch_it.qm
%%NLS%%%%DATADIR%%/crunch_pl.qm
%%NLS%%%%DATADIR%%/crunch_ro.qm
%%NLS%%%%DATADIR%%/crunch_sv.qm
%%PORTDOCS%%%%DOCSDIR%%/COPYING
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
%%PORTDOCS%%%%DOCSDIR%%/HACKING.txt
%%PORTDOCS%%%%DOCSDIR%%/INSTALL.txt
%%PORTDOCS%%%%DOCSDIR%%/LISEZMOI
%%PORTDOCS%%%%DOCSDIR%%/PACKAGERS
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/TRANSLATORS
%%PORTDOCS%%%%DOCSDIR%%/man.docbook
%%PORTDOCS%%%%DOCSDIR%%/speedcrunch.docbook
share/pixmaps/crunch.png
%%NLS%%@dirrm %%DATADIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%