From nobody Thu Jan 12 07:21:32 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 4Nswvx0bhfz2sXbd; Thu, 12 Jan 2023 07:21:33 +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 4Nswvx07Kjz3pG8; Thu, 12 Jan 2023 07:21:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673508093; 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=0seo2zo5rv9vs9k06tICuf4Jcli6NCrkzSfux48jvg0=; b=U4SD/Piythw4btSv8kWVh/Z9O2StU0J0RDOxTUU5JkTlP6m6wznUCik6gZgOlFRn0LzZT0 vw8BRI9StLTi66H1TC0HoIwsD1hhmsOP/E/DTZYG+XCFzd5zGH+6crchZN4C0CS8/4G/Jp C6QYeFw+l2ZMsGJdmbAr1qyJ2bdi1XpDNwUnBnSEVAGbUg7bnEJM/qHYe7hIgJbNE0vUhp WENj40IViwNnXCM3jQC7+5r/tw6aMM/jwM31CVJn7q/GgLKSwa5XZVljHrVG9fFlpHlEmq LMdKpEe9VvGLiAe6dRltVrBvi578Ga0jcpU1D4n6mr0u6f9j6X+FbOQzYBU4Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673508093; 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=0seo2zo5rv9vs9k06tICuf4Jcli6NCrkzSfux48jvg0=; b=G1ppZwqZzldqcUkMzdk2t8uEXzWpyOAqMF72izAuNSVmCFNuEHWeGBqSRKvvc1KJNLyt3E K0GOdH+3OtKoHKPP3AX96gr7AQb6ZRbx3jiqkP8l1mWbAdUX5uTMExa/+EoJKGsPisCKM3 ww38ZfWTojHf1WS8FsPkipjIr4IoBSy/VjBhY9s9TL/BEUYHlkZBCfrXxuaGGChIet4vWL 8UZ3vH22ExUzlyBYE4c2k2kY6RrYJnum7CWTw3i3P1G3/LBL7YHt2/3OOcQdkaRwQWXli1 P82cYfu/u+qeop3j70FIB3hXQ34nogWi9agjPf4AvXNiMUKv03ZL5X/FntkSWw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1673508093; a=rsa-sha256; cv=none; b=pJYy48lQMWyHlyX468HTDxRPCh35pOkr4DQD77ASpce4wZfIsJ6YqdeARRRUwfY69cTfuv Dt1wti9EeChTf22I0V+ASMss4BvJ8pHV1TUznsBz7xF0L4GSRcFaHBUIn+Vc8OSPW2lYB0 mJWds2uBs82mf2R3b8nx/v3INAF20z3rEhWJgdmV438c+0nkJ2G1SOJb2YzHpo/5KRKO0K 7k2SOmvMOnHtY5/cdm8+o32zKkNI4aHH/UiOYVBT+ajGS17H7DqsqevPTM3YG9Hm8RIB+e FRYGyCwmF8F9Sb5tZ/IL7UplBCa40QSmJJVE/5xY7xxtTHFLn9ACIdsx5vhYkA== 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 4Nswvw6B40zKYN; Thu, 12 Jan 2023 07:21:32 +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 30C7LWgv075130; Thu, 12 Jan 2023 07:21:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30C7LWe3075129; Thu, 12 Jan 2023 07:21:32 GMT (envelope-from git) Date: Thu, 12 Jan 2023 07:21:32 GMT Message-Id: <202301120721.30C7LWe3075129@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: a9ea71306345 - main - misc/py-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: a9ea71306345ecfb2312f4a5532d5834b4763840 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=a9ea71306345ecfb2312f4a5532d5834b4763840 commit a9ea71306345ecfb2312f4a5532d5834b4763840 Author: Yuri Victorovich AuthorDate: 2023-01-12 07:20:48 +0000 Commit: Yuri Victorovich CommitDate: 2023-01-12 07:21:29 +0000 misc/py-lightgbm: New port: Gradient boosting framework that uses tree based learning algorithms --- misc/Makefile | 1 + misc/py-lightgbm/Makefile | 42 ++++++++++++++++++++++++++++++++++++++++++ misc/py-lightgbm/distinfo | 9 +++++++++ misc/py-lightgbm/pkg-descr | 8 ++++++++ misc/py-lightgbm/pkg-plist | 1 + 5 files changed, 61 insertions(+) diff --git a/misc/Makefile b/misc/Makefile index 6fae8d2dbd4c..6603fa0ecfe4 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -410,6 +410,7 @@ SUBDIR += py-huepy SUBDIR += py-ipyfastscape SUBDIR += py-kartograph + SUBDIR += py-lightgbm SUBDIR += py-log_symbols SUBDIR += py-mffpy SUBDIR += py-molequeue diff --git a/misc/py-lightgbm/Makefile b/misc/py-lightgbm/Makefile new file mode 100644 index 000000000000..832b6e3241f4 --- /dev/null +++ b/misc/py-lightgbm/Makefile @@ -0,0 +1,42 @@ +PORTNAME= lightgbm +DISTVERSIONPREFIX= v +DISTVERSION= 3.3.4 +CATEGORIES= misc # machine-learning +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +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 + +PY_DEPENDS= ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}scikit-learn>=0.22.0:science/py-scikit-learn@${PY_FLAVOR} +BUILD_DEPENDS= cmake:devel/cmake-core \ + gmake:devel/gmake \ + ${PY_DEPENDS} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PY_DEPENDS} + +USES= eigen:3 python +USE_PYTHON= distutils autoplist + +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 + +WRKSRC_SUBDIR= python-package + +CXXFLAGS+= -I${LOCALBASE}/include/eigen3 + +BINARY_ALIAS= make=${GMAKE} + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/lightgbm/lib_lightgbm.so + +.include diff --git a/misc/py-lightgbm/distinfo b/misc/py-lightgbm/distinfo new file mode 100644 index 000000000000..1523fc870adc --- /dev/null +++ b/misc/py-lightgbm/distinfo @@ -0,0 +1,9 @@ +TIMESTAMP = 1673503825 +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/py-lightgbm/pkg-descr b/misc/py-lightgbm/pkg-descr new file mode 100644 index 000000000000..c37de910f9d7 --- /dev/null +++ b/misc/py-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/py-lightgbm/pkg-plist b/misc/py-lightgbm/pkg-plist new file mode 100644 index 000000000000..675c71203717 --- /dev/null +++ b/misc/py-lightgbm/pkg-plist @@ -0,0 +1 @@ +%%PYTHON_SITELIBDIR%%/lightgbm/lib_lightgbm.so