diff options
Diffstat (limited to 'math/kmplot-kde4')
-rw-r--r-- | math/kmplot-kde4/Makefile | 15 | ||||
-rw-r--r-- | math/kmplot-kde4/distinfo | 2 | ||||
-rw-r--r-- | math/kmplot-kde4/files/patch-git_e903ca5 | 49 | ||||
-rw-r--r-- | math/kmplot-kde4/pkg-descr | 25 | ||||
-rw-r--r-- | math/kmplot-kde4/pkg-plist | 49 |
5 files changed, 140 insertions, 0 deletions
diff --git a/math/kmplot-kde4/Makefile b/math/kmplot-kde4/Makefile new file mode 100644 index 000000000000..d4395f7d7f4f --- /dev/null +++ b/math/kmplot-kde4/Makefile @@ -0,0 +1,15 @@ +# $FreeBSD$ + +PORTNAME= kmplot +PORTVERSION= ${KDE4_VERSION} +PORTREVISION= 3 +CATEGORIES= math kde kde-kde4 + +MAINTAINER= kde@FreeBSD.org +COMMENT= Mathematical function plotter for KDE 4 + +USES= cmake:outsource kde:4 tar:xz +USE_KDE= kdelibs automoc4 +USE_QT4= xml moc_build qmake_build rcc_build uic_build + +.include <bsd.port.mk> diff --git a/math/kmplot-kde4/distinfo b/math/kmplot-kde4/distinfo new file mode 100644 index 000000000000..4fb313337be8 --- /dev/null +++ b/math/kmplot-kde4/distinfo @@ -0,0 +1,2 @@ +SHA256 (KDE/4.14.3/kmplot-4.14.3.tar.xz) = 06ad930e91e8458d62817ee8295d1deb81a8096452e6826e8bce35abe08b52f5 +SIZE (KDE/4.14.3/kmplot-4.14.3.tar.xz) = 659892 diff --git a/math/kmplot-kde4/files/patch-git_e903ca5 b/math/kmplot-kde4/files/patch-git_e903ca5 new file mode 100644 index 000000000000..dce35edbf832 --- /dev/null +++ b/math/kmplot-kde4/files/patch-git_e903ca5 @@ -0,0 +1,49 @@ +Backport of the the commit e903ca5 to old kmplot. + +From e903ca56ad26311fcaeb650acf96046c726fb809 Mon Sep 17 00:00:00 2001 +From: Albert Astals Cid <aacid@kde.org> +Date: Wed, 23 Mar 2016 20:56:55 +0100 +Subject: [PATCH] use std::isnan/isinf since we're including cmath + +--- kmplot/view.cpp.orig 2014-09-17 13:01:07 UTC ++++ kmplot/view.cpp +@@ -477,7 +477,7 @@ QPointF View::toPixel( const QPointF & r + double x = pixel.x(); + double y = pixel.y(); + +- if ( isnan(x) ) ++ if ( std::isnan(x) ) + { + xclipflg = true; + x = pixelIfNaN.x(); +@@ -497,14 +497,14 @@ QPointF View::toPixel( const QPointF & r + } + else + { +- if ( isinf(x) == -1 ) ++ if ( std::isinf(x) == -1 ) + x = 0; + +- else if ( isinf(x) == 1 ) ++ else if ( std::isinf(x) == 1 ) + x = m_clipRect.right(); + } + +- if ( isnan(y) ) ++ if ( std::isnan(y) ) + { + yclipflg = true; + y = pixelIfNaN.y(); +@@ -524,10 +524,10 @@ QPointF View::toPixel( const QPointF & r + } + else + { +- if ( isinf(y) == -1 ) ++ if ( std::isinf(y) == -1 ) + y = 0; + +- else if ( isinf(y) == 1 ) ++ else if ( std::isinf(y) == 1 ) + y = m_clipRect.bottom(); + } + diff --git a/math/kmplot-kde4/pkg-descr b/math/kmplot-kde4/pkg-descr new file mode 100644 index 000000000000..a41ca4b628a0 --- /dev/null +++ b/math/kmplot-kde4/pkg-descr @@ -0,0 +1,25 @@ +KmPlot is a program to draw graphs, their integrals or derivatives. It +supports different systems of coordinates like the cartesian or the +polar coordinate system. The graphs can be colorized and the view is +scalable, so that you are able to zoom to the level you need. + +Features: +- Powerful mathematical parser. +- Precise metric printing. +- Different plot types: cartesian, parametric, polar, implicit, + differential. +- Highly configurable visual settings (plot line, axes, grid). +- Export to bitmap format (BMP and PNG) and scalable vector graphics + (SVG). +- Save/load complete session in readable XML format. +- Trace mode: cross hair following plot, coordinates shown in the + status bar. +- Supports zooming. +- Ability to draw the 1st and 2nd derivative and the integral of a + plot function. +- Supports user defined constants and parameter values. +- Various tools for plot functions: + - Find minimum/maximum point. + - Get y-value and draw the area between the function and the y-axis. + +WWW: http://www.kde.org/applications/education/kmplot diff --git a/math/kmplot-kde4/pkg-plist b/math/kmplot-kde4/pkg-plist new file mode 100644 index 000000000000..bfd246cd3fbb --- /dev/null +++ b/math/kmplot-kde4/pkg-plist @@ -0,0 +1,49 @@ +bin/kmplot +lib/kde4/libkmplotpart.so +man/man1/kmplot.1.gz +share/appdata/kmplot.appdata.xml +share/applications/kde4/kmplot.desktop +share/apps/kmplot/kmplot_part.rc +share/apps/kmplot/kmplot_part_readonly.rc +share/apps/kmplot/kmplot_shell.rc +share/config.kcfg/kmplot.kcfg +share/dbus-1/interfaces/org.kde.kmplot.KmPlot.xml +share/dbus-1/interfaces/org.kde.kmplot.MainDlg.xml +share/dbus-1/interfaces/org.kde.kmplot.Parser.xml +share/dbus-1/interfaces/org.kde.kmplot.View.xml +share/doc/HTML/en/kmplot/commands.docbook +share/doc/HTML/en/kmplot/common +share/doc/HTML/en/kmplot/configuration.docbook +share/doc/HTML/en/kmplot/credits.docbook +share/doc/HTML/en/kmplot/dcop.docbook +share/doc/HTML/en/kmplot/developer.docbook +share/doc/HTML/en/kmplot/edu-logo.png +share/doc/HTML/en/kmplot/firststeps.docbook +share/doc/HTML/en/kmplot/index.cache.bz2 +share/doc/HTML/en/kmplot/index.docbook +share/doc/HTML/en/kmplot/install.docbook +share/doc/HTML/en/kmplot/introduction.docbook +share/doc/HTML/en/kmplot/kfkt.png +share/doc/HTML/en/kmplot/ksys1.png +share/doc/HTML/en/kmplot/ksys2.png +share/doc/HTML/en/kmplot/ksys3.png +share/doc/HTML/en/kmplot/main.png +share/doc/HTML/en/kmplot/man-kmplot.1.docbook +share/doc/HTML/en/kmplot/popup.png +share/doc/HTML/en/kmplot/reference.docbook +share/doc/HTML/en/kmplot/settings-colors.png +share/doc/HTML/en/kmplot/settings-constants.png +share/doc/HTML/en/kmplot/settings-coords.png +share/doc/HTML/en/kmplot/settings-diagram.png +share/doc/HTML/en/kmplot/settings-fonts.png +share/doc/HTML/en/kmplot/settings-general.png +share/doc/HTML/en/kmplot/threeplots.png +share/doc/HTML/en/kmplot/using.docbook +share/icons/hicolor/128x128/apps/kmplot.png +share/icons/hicolor/16x16/apps/kmplot.png +share/icons/hicolor/22x22/apps/kmplot.png +share/icons/hicolor/32x32/apps/kmplot.png +share/icons/hicolor/48x48/apps/kmplot.png +share/icons/hicolor/64x64/apps/kmplot.png +share/icons/hicolor/scalable/apps/kmplot.svgz +share/kde4/services/kmplot_part.desktop |