From nobody Thu Jan 12 07:21:31 2023 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 4Nswvv733yz2sXm3; Thu, 12 Jan 2023 07:21:31 +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 4Nswvv6Rpdz3nyt; Thu, 12 Jan 2023 07:21:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673508091; 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=sg+VaYp/gmCjzfT83Jad4SO+pOsjVyPBfs3rQ+HtL00=; b=BMGBaQUGUytR7Y/DjfijDEs21BNZ6WY7wT8tm8nluhDdLK6sNW20FM7V5Hqh/8isbaLWef IhaIx6m9M+fxHkXiS7Hr/LMGFo1rRl4156RqEd7DXlAJ6mHRsRFf18HnPVAp/10DyQNbgX d4YerFUwROMNLbt9fvL/HJurrFKv1RGlhprF6Y6YcEwiAK9mXOrHHyMv8nblkQOxnnLNZR CMkpbpApzryBBZiuJlu1IthYeOZG3XzukOiv6YrDMaRUgO18NL2PTu1Xe/hku/M0GaS1Sn TJJszzg8EKB2e/WipbKVUfhQ1cOewY+0z7ey4ohRXLNP7/Awju1KKQvaagdm3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673508091; 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=sg+VaYp/gmCjzfT83Jad4SO+pOsjVyPBfs3rQ+HtL00=; b=qPZzKncQ6fQhL2qgAkNOQilBFbVF2DuZNz/K36oy0D8QJbRC23iy/eqeOWk9MCEmBGlGSB anM/y2f1pviBetsw3Kr/G2bL9gB1xU+wEmXnJlQ9gyVeMnLJRv06xUxLVJ1tE71One3V/q xrCBqzO8zNSKeLY+XQm9URjTpb94qoduroDFXZRriKJbQ0pVkLLH8nzLwm+AoWp00wmO92 NOulw8OOQ6nzYcV6/Ssu05o/KO3nzNoLIiZsEH64/ApO4TkgLaXIqktWRgWJxPA4Fl+rKB 8Ur+JhqHJDcm2c4Dr55SzZsSk3Tale7qNXxtAmVRYJg2GWtBHBdzOyXjYiCrkA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1673508091; a=rsa-sha256; cv=none; b=LQUU0YRZ6dDvQ6vPmBCOlUWzf0Zoq4h1ZmXwmVCT7nYXawQ3iBbD19csxTwUQQ/c8QIdaZ EUY+0fIdrEBC5fWZbF91FevDEZ/pVbEObeJD4cUSXrCEyFXcl6ZAPxxf5qIdyCc43wCCFH yiLqk8e0R8/8lw//meJTyTI2aaOAMV19htTlkN/gfz0q124uiyem0zzmC8n3LxaUBdZWSv uG5uurXzXQr7C3zhHDWtwqFv65TFAuUjjzKFDeJOzo7Tj/oXX7+A9utBTDIvBSglwtkQSQ QlHRGMyQud2b1Jt9tvA3q8V56DagrxloNA+77RQ89PZlgBuAZ3p1jnseogahCg== 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 4Nswvv5VWpzKHX; Thu, 12 Jan 2023 07:21:31 +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 30C7LVqQ075106; Thu, 12 Jan 2023 07:21:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30C7LVjG075105; Thu, 12 Jan 2023 07:21:31 GMT (envelope-from git) Date: Thu, 12 Jan 2023 07:21:31 GMT Message-Id: <202301120721.30C7LVjG075105@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: f0937002c523 - main - misc/lightgbm: New port: Gradient boosting framework that uses tree based learning algorithms 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: f0937002c523c10b90f5528a5624c2ce78747028 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=f0937002c523c10b90f5528a5624c2ce78747028 commit f0937002c523c10b90f5528a5624c2ce78747028 Author: Yuri Victorovich AuthorDate: 2023-01-12 06:19:28 +0000 Commit: Yuri Victorovich CommitDate: 2023-01-12 07:21:28 +0000 misc/lightgbm: New port: Gradient boosting framework that uses tree based learning algorithms --- misc/Makefile | 1 + misc/lightgbm/Makefile | 32 ++++++++++++++++++++++++++++ misc/lightgbm/distinfo | 9 ++++++++ misc/lightgbm/files/patch-CMakeLists.txt | 11 ++++++++++ misc/lightgbm/pkg-descr | 8 +++++++ misc/lightgbm/pkg-plist | 36 ++++++++++++++++++++++++++++++++ 6 files changed, 97 insertions(+) diff --git a/misc/Makefile b/misc/Makefile index 61e7aa3de93f..6fae8d2dbd4c 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -236,6 +236,7 @@ SUBDIR += libutf SUBDIR += libxdf SUBDIR += lifelines + SUBDIR += lightgbm SUBDIR += lingoteach SUBDIR += locale-en_DK SUBDIR += localedata diff --git a/misc/lightgbm/Makefile b/misc/lightgbm/Makefile new file mode 100644 index 000000000000..e6cb6977cec3 --- /dev/null +++ b/misc/lightgbm/Makefile @@ -0,0 +1,32 @@ +PORTNAME= lightgbm +DISTVERSIONPREFIX= v +DISTVERSION= 3.3.4 +CATEGORIES= misc # machine-learning + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Gradient boosting framework that uses tree based learning algorithms +WWW= https://lightgbm.readthedocs.io/en/latest/ + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +TEST_DEPENDS= googletest>0:devel/googletest + +USES= cmake:testing compiler:c++11-lang eigen:3 + +USE_GITHUB= yes +GH_ACCOUNT= microsoft +GH_PROJECT= LightGBM +GH_TUPLE= boostorg:compute:36350b7:boostorg_compute/external_libs/compute \ + fmtlib:fmt:b6f4cea:fmt/external_libs/fmt \ + lemire:fast_double_parser:ace6064:fast_double_parser/external_libs/fast_double_parser + +CMAKE_TESTING_ON= BUILD_CPP_TEST +CMAKE_TESTING_TARGET= + +CXXFLAGS+= -I${LOCALBASE}/include/eigen3 + +post-test: + ${WRKSRC}/testlightgbm + +.include diff --git a/misc/lightgbm/distinfo b/misc/lightgbm/distinfo new file mode 100644 index 000000000000..d05fc2231597 --- /dev/null +++ b/misc/lightgbm/distinfo @@ -0,0 +1,9 @@ +TIMESTAMP = 1673502081 +SHA256 (microsoft-LightGBM-v3.3.4_GH0.tar.gz) = ad7e4ebf54e223542682f2be0f25f2bad112ebcd4c2a2db949645a356218b8de +SIZE (microsoft-LightGBM-v3.3.4_GH0.tar.gz) = 6874102 +SHA256 (boostorg-compute-36350b7_GH0.tar.gz) = b82330296614fe9222bcdee60c5f71362d6fc16f17b0fb6fb5901b6531d1df90 +SIZE (boostorg-compute-36350b7_GH0.tar.gz) = 377110 +SHA256 (fmtlib-fmt-b6f4cea_GH0.tar.gz) = 121577275e29f0302dcda9c0fa4e6d33cad5f238777d8c2a7623a8cd88be8aa2 +SIZE (fmtlib-fmt-b6f4cea_GH0.tar.gz) = 826134 +SHA256 (lemire-fast_double_parser-ace6064_GH0.tar.gz) = a53e6ebeb1d37d700cfebf98b2afb98d2c92df742c6ae45c27354d950cd02988 +SIZE (lemire-fast_double_parser-ace6064_GH0.tar.gz) = 635218 diff --git a/misc/lightgbm/files/patch-CMakeLists.txt b/misc/lightgbm/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..683e41a31528 --- /dev/null +++ b/misc/lightgbm/files/patch-CMakeLists.txt @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2022-12-29 04:59:34 UTC ++++ CMakeLists.txt +@@ -507,7 +507,7 @@ endif(__BUILD_FOR_R) + + #-- Google C++ tests + if(BUILD_CPP_TEST) +- find_package(GTest CONFIG) ++ find_package(GTest) + if(NOT GTEST_FOUND) + message(STATUS "Did not find Google Test in the system root. Fetching Google Test now...") + include(FetchContent) diff --git a/misc/lightgbm/pkg-descr b/misc/lightgbm/pkg-descr new file mode 100644 index 000000000000..c37de910f9d7 --- /dev/null +++ b/misc/lightgbm/pkg-descr @@ -0,0 +1,8 @@ +LightGBM is a gradient boosting framework that uses tree based learning +algorithms. It is designed to be distributed and efficient with the +following advantages: +* Faster training speed and higher efficiency. +* Lower memory usage. +* Better accuracy. +* Support of parallel, distributed, and GPU learning. +* Capable of handling large-scale data. diff --git a/misc/lightgbm/pkg-plist b/misc/lightgbm/pkg-plist new file mode 100644 index 000000000000..61da587e1ce4 --- /dev/null +++ b/misc/lightgbm/pkg-plist @@ -0,0 +1,36 @@ +bin/lightgbm +include/LightGBM/application.h +include/LightGBM/bin.h +include/LightGBM/boosting.h +include/LightGBM/c_api.h +include/LightGBM/config.h +include/LightGBM/cuda/cuda_utils.h +include/LightGBM/cuda/vector_cudahost.h +include/LightGBM/dataset.h +include/LightGBM/dataset_loader.h +include/LightGBM/export.h +include/LightGBM/feature_group.h +include/LightGBM/meta.h +include/LightGBM/metric.h +include/LightGBM/network.h +include/LightGBM/objective_function.h +include/LightGBM/prediction_early_stop.h +include/LightGBM/train_share_states.h +include/LightGBM/tree.h +include/LightGBM/tree_learner.h +include/LightGBM/utils/array_args.h +include/LightGBM/utils/chunked_array.hpp +include/LightGBM/utils/common.h +include/LightGBM/utils/common_legacy_solaris.h +include/LightGBM/utils/file_io.h +include/LightGBM/utils/json11.h +include/LightGBM/utils/log.h +include/LightGBM/utils/openmp_wrapper.h +include/LightGBM/utils/pipeline_reader.h +include/LightGBM/utils/random.h +include/LightGBM/utils/text_reader.h +include/LightGBM/utils/threading.h +include/LightGBM/utils/yamc/alternate_shared_mutex.hpp +include/LightGBM/utils/yamc/yamc_rwlock_sched.hpp +include/LightGBM/utils/yamc/yamc_shared_lock.hpp +lib/lib_lightgbm.so