Skip to content

Commit

Permalink
graphics/sciplot: New port: Modern C++ scientific plotting library po…
Browse files Browse the repository at this point in the history
…wered by gnuplot
  • Loading branch information
yurivict committed Nov 9, 2022
1 parent b8ae344 commit bc87463
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 0 deletions.
1 change: 1 addition & 0 deletions graphics/Makefile
Expand Up @@ -1050,6 +1050,7 @@
SUBDIR += sane-epkowa
SUBDIR += scale2x
SUBDIR += scantailor
SUBDIR += sciplot
SUBDIR += scr2png
SUBDIR += scrot
SUBDIR += scwm-icons
Expand Down
28 changes: 28 additions & 0 deletions graphics/sciplot/Makefile
@@ -0,0 +1,28 @@
PORTNAME= sciplot
DISTVERSIONPREFIX= v
DISTVERSION= 0.3.1
CATEGORIES= graphics
PKGNAMESUFFIX= -plotting-library

MAINTAINER= yuri@FreeBSD.org
COMMENT= Modern C++ scientific plotting library powered by gnuplot
WWW= https://sciplot.github.io/

LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE

RUN_DEPENDS= gnuplot:math/gnuplot

USES= cmake:testing compiler:c++17-lang
USE_GITHUB= yes

CMAKE_OFF= SCIPLOT_BUILD_TESTS SCIPLOT_BUILD_EXAMPLES SCIPLOT_BUILD_DOCS
CMAKE_TESTING_ON= SCIPLOT_BUILD_TESTS
CMAKE_TESTING_TARGET= ${ALL_TARGET} # no test target, see https://github.com/sciplot/sciplot/issues/105

NO_ARCH= yes

post-test:
@cd ${TEST_WRKSRC} && tests/sciplot-cpptests

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions graphics/sciplot/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1668023049
SHA256 (sciplot-sciplot-v0.3.1_GH0.tar.gz) = d5f8fa7783920c0db4f54d8d9cea8a5e50be99153e81dcaccf91532994ebbad0
SIZE (sciplot-sciplot-v0.3.1_GH0.tar.gz) = 1801509
5 changes: 5 additions & 0 deletions graphics/sciplot/pkg-descr
@@ -0,0 +1,5 @@
The goal of the sciplot project is to enable C++ programs to conveniently plot
beautiful graphs as easy as in other high-level programming languages. sciplot
is a header-only library that needs a C++17-capable compiler, but has no
external dependencies for compiling. The only external runtime dependencies are
gnuplot-palettes for providing color palettes and a gnuplot executable.
43 changes: 43 additions & 0 deletions graphics/sciplot/pkg-plist
@@ -0,0 +1,43 @@
include/sciplot/Canvas.hpp
include/sciplot/ColumnIndex.hpp
include/sciplot/Constants.hpp
include/sciplot/Default.hpp
include/sciplot/Enums.hpp
include/sciplot/Figure.hpp
include/sciplot/Palettes.hpp
include/sciplot/Plot.hpp
include/sciplot/Plot2D.hpp
include/sciplot/Plot3D.hpp
include/sciplot/StringOrDouble.hpp
include/sciplot/Utils.hpp
include/sciplot/Vec.hpp
include/sciplot/sciplot.hpp
include/sciplot/specs/AxisLabelSpecs.hpp
include/sciplot/specs/BorderSpecs.hpp
include/sciplot/specs/DepthSpecsOf.hpp
include/sciplot/specs/DrawSpecs.hpp
include/sciplot/specs/FillSpecsOf.hpp
include/sciplot/specs/FillStyleSpecs.hpp
include/sciplot/specs/FilledCurvesSpecsOf.hpp
include/sciplot/specs/FontSpecsOf.hpp
include/sciplot/specs/FrameSpecsOf.hpp
include/sciplot/specs/GridSpecs.hpp
include/sciplot/specs/GridSpecsBase.hpp
include/sciplot/specs/HistogramStyleSpecs.hpp
include/sciplot/specs/LabelSpecs.hpp
include/sciplot/specs/LayoutSpecs.hpp
include/sciplot/specs/LegendSpecs.hpp
include/sciplot/specs/LineSpecsOf.hpp
include/sciplot/specs/OffsetSpecsOf.hpp
include/sciplot/specs/PointSpecsOf.hpp
include/sciplot/specs/ShowSpecsOf.hpp
include/sciplot/specs/Specs.hpp
include/sciplot/specs/TextSpecsOf.hpp
include/sciplot/specs/TicsSpecs.hpp
include/sciplot/specs/TicsSpecsBaseOf.hpp
include/sciplot/specs/TicsSpecsMajor.hpp
include/sciplot/specs/TicsSpecsMinor.hpp
include/sciplot/specs/TitleSpecsOf.hpp
%%DATADIR%%/sciplotConfig.cmake
%%DATADIR%%/sciplotConfigVersion.cmake
%%DATADIR%%/sciplotTargets.cmake

0 comments on commit bc87463

Please sign in to comment.