summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIon-Mihai Tetcu <itetcu@FreeBSD.org>2007-08-14 11:40:35 +0000
committerIon-Mihai Tetcu <itetcu@FreeBSD.org>2007-08-14 11:40:35 +0000
commit33be154cdc2b787ae48da325fca3de7659d05abe (patch)
treec66b0a5aa2b973385c7d8a583b8bb5dbe1021972
parentFix clamav-milter startup script to don't wait clamd socket when it's using tcp (diff)
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/ PR: ports/114969 Submitted by: Yinghong.Liu <relaxbsd at gmail.com>
-rw-r--r--science/Makefile1
-rw-r--r--science/speedcrunch/Makefile71
-rw-r--r--science/speedcrunch/distinfo3
-rw-r--r--science/speedcrunch/pkg-descr11
-rw-r--r--science/speedcrunch/pkg-plist32
5 files changed, 118 insertions, 0 deletions
diff --git a/science/Makefile b/science/Makefile
index caa20ca259d5..472af50d5e3b 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -101,6 +101,7 @@
SUBDIR += ruby-dcl
SUBDIR += ruby-gphys
SUBDIR += simlib
+ SUBDIR += speedcrunch
SUBDIR += svmlight
SUBDIR += szip
SUBDIR += udunits
diff --git a/science/speedcrunch/Makefile b/science/speedcrunch/Makefile
new file mode 100644
index 000000000000..10127c0c00e3
--- /dev/null
+++ b/science/speedcrunch/Makefile
@@ -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= science
+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>
diff --git a/science/speedcrunch/distinfo b/science/speedcrunch/distinfo
new file mode 100644
index 000000000000..b78deae2d2aa
--- /dev/null
+++ b/science/speedcrunch/distinfo
@@ -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
diff --git a/science/speedcrunch/pkg-descr b/science/speedcrunch/pkg-descr
new file mode 100644
index 000000000000..391fe695e4ab
--- /dev/null
+++ b/science/speedcrunch/pkg-descr
@@ -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/
diff --git a/science/speedcrunch/pkg-plist b/science/speedcrunch/pkg-plist
new file mode 100644
index 000000000000..78ece43c80ed
--- /dev/null
+++ b/science/speedcrunch/pkg-plist
@@ -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%%