diff options
-rw-r--r-- | math/Makefile | 1 | ||||
-rw-r--r-- | math/speedcrunch/Makefile | 71 | ||||
-rw-r--r-- | math/speedcrunch/distinfo | 3 | ||||
-rw-r--r-- | math/speedcrunch/pkg-descr | 11 | ||||
-rw-r--r-- | math/speedcrunch/pkg-plist | 32 |
5 files changed, 118 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile index 348bf1c17355..e8fc4d173a8d 100644 --- a/math/Makefile +++ b/math/Makefile @@ -350,6 +350,7 @@ SUBDIR += snns SUBDIR += solitaire SUBDIR += spar + SUBDIR += speedcrunch SUBDIR += spooles SUBDIR += spooles-mpich SUBDIR += ss diff --git a/math/speedcrunch/Makefile b/math/speedcrunch/Makefile new file mode 100644 index 000000000000..939d64afcf75 --- /dev/null +++ b/math/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= 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> diff --git a/math/speedcrunch/distinfo b/math/speedcrunch/distinfo new file mode 100644 index 000000000000..b78deae2d2aa --- /dev/null +++ b/math/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/math/speedcrunch/pkg-descr b/math/speedcrunch/pkg-descr new file mode 100644 index 000000000000..391fe695e4ab --- /dev/null +++ b/math/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/math/speedcrunch/pkg-plist b/math/speedcrunch/pkg-plist new file mode 100644 index 000000000000..78ece43c80ed --- /dev/null +++ b/math/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%% |