From nobody Tue Aug 09 00:54:37 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4M1vjT61LYz4YmJF; Tue, 9 Aug 2022 00:54:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4M1vjT5Wc6z3Skm; Tue, 9 Aug 2022 00:54:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660006477; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aTqxkSHkAYP9yW7O0EcuNxpkwWTP58XRTTgHUbadDHY=; b=fMiqYVuEvI762rrgrpqCEQlxzgzwQuRfC/NBJjme6gJTAtHsmEOO52YtKhj4wKZlX8zAq2 JtM4Mm9BV8uV0JN1ZjYDmrY3saVjTyPA2Oga5fnTAp/lJsBm9WwPpoVl59xk0h4PmZ+4UO /IphgxXbs/QP5KFv1EgkNaILNq7pEl+ra74AQ9F7NUUS+wYo/iTYdSnHANxle5lIMMmqKZ aSMnvu9Wun4DJ1ldFyRDQ41wGt3ougRNxvmJTvmyvKVZ6FGoSqyY34P28p2pdZQd5UQADm 5tP4GpdSHc9pXvnKT05ChPHiZrY3+Un8wFTBFRqYqpKtDJwQMPeBg+e8y+85gQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4M1vjT4Sb7z1CHx; Tue, 9 Aug 2022 00:54:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2790sbY0072154; Tue, 9 Aug 2022 00:54:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2790sbdN072153; Tue, 9 Aug 2022 00:54:37 GMT (envelope-from git) Date: Tue, 9 Aug 2022 00:54:37 GMT Message-Id: <202208090054.2790sbdN072153@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 240569d0a2e9 - main - graphics/matplotlib-cpp: New port: Header-only C++ plotting library built on the popular matplotlib List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 240569d0a2e932a6b46f827c945c3a3b566615b7 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660006477; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aTqxkSHkAYP9yW7O0EcuNxpkwWTP58XRTTgHUbadDHY=; b=B6u5URK6AtgKJdmUIAudDO3P/57rzQCIOwVBD6nZzU6UKg7GCcZX1U37fTeplT2xv8GxnE 77Z7KQ79H8faqJQjJzRe/PQ5R/PhUgbjOPAaJqucTsUWiRqHTnu/zKx9SDCJ9PV/meSPcY S6Yw/774XF0CXUvdf6h+Fnm1eO5+Z4vEO9mI+qko+9Oj94RjPf4a2mtI+xzXNwPoXEF1qc 6iSbZQBNxRnxVEgSqz58dE8ItHHLgxNXsFlpxbfF6x7CPjEom/IBE4hh1CPjniL/ewlyzg +NRG5Dl7ll444ht63WsSYIF8jgFdTIV+CUlSpohkxGMfwUZuMoXuD7h1sV2aOA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660006477; a=rsa-sha256; cv=none; b=bpMIBEhd17JFEagzCfJnfPLcwFoUwofPAJsfg9U1osviuDb9CXEAEXBl9sjgfQ8hxAxzh8 +UBXG1sOJJcJvBFwivQG5I8ry92USSGX3esvXhwsQoue7KiBlfRh5lP960zgNIaUZbciDk LmbirUUAtAobzPGf/sdH/VyaARe1ukE8IJtq4fhwn1GTWXRsOn3J0JgjKZDjU+axOB2Lb/ uZ9j8LA4kSe7NzWpnp499XncIibwTkhtUuHM0jEKJR1gfwqZVFgrhCTibTygHkYYLhSrjl Ndw6/pNE7aXod2dzNN+NNXdGhEuWjd9I2zPST4w4TtQkBUf/+EOQVuPs737J2A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=240569d0a2e932a6b46f827c945c3a3b566615b7 commit 240569d0a2e932a6b46f827c945c3a3b566615b7 Author: Yuri Victorovich AuthorDate: 2022-08-09 00:54:00 +0000 Commit: Yuri Victorovich CommitDate: 2022-08-09 00:54:35 +0000 graphics/matplotlib-cpp: New port: Header-only C++ plotting library built on the popular matplotlib --- graphics/Makefile | 1 + graphics/matplotlib-cpp/Makefile | 29 ++++++++++++++++++++++ graphics/matplotlib-cpp/distinfo | 3 +++ graphics/matplotlib-cpp/files/patch-CMakeLists.txt | 18 ++++++++++++++ graphics/matplotlib-cpp/pkg-descr | 4 +++ 5 files changed, 55 insertions(+) diff --git a/graphics/Makefile b/graphics/Makefile index 4863e09f4268..211774884ec0 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -544,6 +544,7 @@ SUBDIR += mapcache SUBDIR += mapserver SUBDIR += mapyrus + SUBDIR += matplotlib-cpp SUBDIR += matplotplusplus SUBDIR += megapov SUBDIR += meh diff --git a/graphics/matplotlib-cpp/Makefile b/graphics/matplotlib-cpp/Makefile new file mode 100644 index 000000000000..8fb5eb6264c4 --- /dev/null +++ b/graphics/matplotlib-cpp/Makefile @@ -0,0 +1,29 @@ +PORTNAME= matplotlib-cpp +PORTVERSION= g20210422 +CATEGORIES= graphics devel + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Header-only C++ plotting library built on the popular matplotlib + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \ + ${PYNUMPY} + +USES= cmake:testing compiler:c++17-lang python + +USE_GITHUB= yes +GH_ACCOUNT= lava +GH_TAGNAME= ef0383f + +CMAKE_TESTING_ON= FREEBSD_BUILD_EXAMPLES +CMAKE_TESTING_TARGET= ${ALL_TARGET} + +NO_ARCH= yes + +PLIST_FILES= include/matplotlibcpp.h \ + lib/matplotlib_cpp/cmake/matplotlib_cppConfig.cmake \ + lib/matplotlib_cpp/cmake/matplotlib_cppTargets.cmake + +.include diff --git a/graphics/matplotlib-cpp/distinfo b/graphics/matplotlib-cpp/distinfo new file mode 100644 index 000000000000..03ac3f317212 --- /dev/null +++ b/graphics/matplotlib-cpp/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1660004600 +SHA256 (lava-matplotlib-cpp-g20210422-ef0383f_GH0.tar.gz) = 1ea2f58a955577cf14772ef3a7c961356c979eb8df55d0e96f49e734ebc7e1ac +SIZE (lava-matplotlib-cpp-g20210422-ef0383f_GH0.tar.gz) = 512367 diff --git a/graphics/matplotlib-cpp/files/patch-CMakeLists.txt b/graphics/matplotlib-cpp/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..046a5b805367 --- /dev/null +++ b/graphics/matplotlib-cpp/files/patch-CMakeLists.txt @@ -0,0 +1,18 @@ +--- CMakeLists.txt.orig 2022-08-09 00:24:38 UTC ++++ CMakeLists.txt +@@ -37,6 +37,7 @@ install( + + + # Examples ++if (FREEBSD_BUILD_EXAMPLES) + add_executable(minimal examples/minimal.cpp) + target_link_libraries(minimal PRIVATE matplotlib_cpp) + set_target_properties(minimal PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin") +@@ -101,6 +102,7 @@ if(Python3_NumPy_FOUND) + target_link_libraries(spy PRIVATE matplotlib_cpp) + set_target_properties(spy PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin") + endif() ++endif(FREEBSD_BUILD_EXAMPLES) + + + # Install headers diff --git a/graphics/matplotlib-cpp/pkg-descr b/graphics/matplotlib-cpp/pkg-descr new file mode 100644 index 000000000000..8c20bd38851a --- /dev/null +++ b/graphics/matplotlib-cpp/pkg-descr @@ -0,0 +1,4 @@ +matplotlib-cpp is possibly the simplest C++ plotting library. It is built to +resemble the plotting API used by Matlab and matplotlib. + +WWW: https://github.com/lava/matplotlib-cpp