From nobody Sat Mar 04 03:33:06 2023 X-Original-To: dev-commits-ports-all@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 4PT9Qq13Xtz3whmv; Sat, 4 Mar 2023 03:33:07 +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 4PT9Qq0Yl4z3Fmd; Sat, 4 Mar 2023 03:33:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677900787; 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=ZmEMBhFrCOft/biJsE3AE3SAgx6k0agQIyekjqK/Syw=; b=sQ+rZ0E0jRsNir2PnVBk9u3r1x9m+fVopxTSpvu9RSw79+VUdi65TCpo1WlzuzPTKYj2Di yGaIPkXr3wvaozX2DQprq3E+tcRMlCxcBu9sBMDstwCorAntfJKp7MhPqPGgLizmerC23Y wONdDS0Ddf+nJah/wfVL/ASAXWOm54N8L/g6P1KJlQ3dDZ6xxfklMloYg0d2czJQ5XeSUH MTDUiZqgjTjLxA/Or94mVC4TIybhbpNnCQKIymntP/Ucwp9c9k+y4HTXYmnVJCHo6tdHgu gBY1NI8trjDK0411uhFqu62RQBbcacqcNsy4mexns5a1reuotq/gnBkyNWLeGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677900787; 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=ZmEMBhFrCOft/biJsE3AE3SAgx6k0agQIyekjqK/Syw=; b=lGF4DxRgN6ivozaK0oQfCnkqFnraGl3y552ATZ0ZjqhkemmzFuMEKvr4phYgAfotRUY01v O5fgsUjc9fqwN0F45C75ahlaMPa4bJYeUlEHPjoWhn0wDil2BsP2hSNqzabpR2bpgeREhj PF7t9lDR9sUR72Yt7raVePgkn7gtdVvTWOE4bKX8Kmf+v+4ZZn+pElYDXPDNoVN3VTZOMf 5tCyDo3bL6LSYcXaMCTD1MGAnja7JpRHT5bfrPtzth8ZHa/0hEaP1hHokEvazITZosQtN+ BxcS9AH70ujjpjsl8ItoacLkUrvBc4boufX4uT1XTT/h1Y8wcy3ihTJ91xvh6w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677900787; a=rsa-sha256; cv=none; b=W7gGm372wbAvK+MWl11NkJgBncssJnHmuvpITy5ZdWUu/I6CRQBQGL2P52XXniEZ1IbYoB BqFJ3XKOVTKWL35wrVggQS5jlKfJvqqfCSeVjqM6ZpIFYW+Tv7kTE8/z7S59YWztSKveqe FY33gXo9xq66xBtGwCU2JtOn0MMYPoVPAetAYZ3slpRO9jhq/AUCC+3AxVDWhl+++T9gNx 5rCF12F7vtr2Mxtk47MGhiw63BuIoql3mCQXG5JmfUl4qoq2Dh4OZi+78jXnQFWBnMkFZM cKznDLKkZkqaJB1p50xVbjo4Hd+MgIt4FbLFnXSpUzKij8wuBDgyuge4ijFtug== 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 4PT9Qp6kHnzPBF; Sat, 4 Mar 2023 03:33:06 +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 3243X6WR021797; Sat, 4 Mar 2023 03:33:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 3243X6tN021796; Sat, 4 Mar 2023 03:33:06 GMT (envelope-from git) Date: Sat, 4 Mar 2023 03:33:06 GMT Message-Id: <202303040333.3243X6tN021796@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Wen Heping Subject: git: 8447f6cc7bd7 - main - misc/p5-OpenAI-API: Add new port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wen X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8447f6cc7bd7fea75a907405f48df72adae13bf5 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by wen: URL: https://cgit.FreeBSD.org/ports/commit/?id=8447f6cc7bd7fea75a907405f48df72adae13bf5 commit 8447f6cc7bd7fea75a907405f48df72adae13bf5 Author: Wen Heping AuthorDate: 2023-03-04 03:31:40 +0000 Commit: Wen Heping CommitDate: 2023-03-04 03:31:40 +0000 misc/p5-OpenAI-API: Add new port OpenAI::API is a Perl module that provides an interface to the OpenAI API, which allows you to generate text, translate languages, summarize text, and perform other tasks using the language models developed by OpenAI. --- misc/Makefile | 1 + misc/p5-OpenAI-API/Makefile | 29 +++++++++++++++++++++++++++++ misc/p5-OpenAI-API/distinfo | 3 +++ misc/p5-OpenAI-API/pkg-descr | 4 ++++ misc/p5-OpenAI-API/pkg-plist | 12 ++++++++++++ 5 files changed, 49 insertions(+) diff --git a/misc/Makefile b/misc/Makefile index d3bbfe709910..4770371ba29d 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -354,6 +354,7 @@ SUBDIR += p5-Locale-US SUBDIR += p5-Net-vCard SUBDIR += p5-OSSP-uuid + SUBDIR += p5-OpenAI-API SUBDIR += p5-Software-License SUBDIR += p5-Software-License-CCpack SUBDIR += p5-Test-Dir diff --git a/misc/p5-OpenAI-API/Makefile b/misc/p5-OpenAI-API/Makefile new file mode 100644 index 000000000000..0656b2e57086 --- /dev/null +++ b/misc/p5-OpenAI-API/Makefile @@ -0,0 +1,29 @@ +PORTNAME= OpenAI-API +PORTVERSION= 0.19 +CATEGORIES= misc perl5 +MASTER_SITES= CPAN +MASTER_SITE_SUBDIR= CPAN:NFERRAZ +PKGNAMEPREFIX= p5- + +MAINTAINER= wen@FreeBSD.org +COMMENT= Perl interface to OpenAI API +WWW= https://metacpan.org/release/OpenAI-API + +LICENSE= ART10 GPLv1+ +LICENSE_COMB= dual + +BUILD_DEPENDS= ${RUN_DEPENDS} +RUN_DEPENDS= p5-JSON-MaybeXS>=0:converters/p5-JSON-MaybeXS \ + p5-Moo>=2.005005:devel/p5-Moo \ + p5-Type-Tiny>=2.002001:devel/p5-Type-Tiny \ + p5-libwww>=6.47:www/p5-libwww \ + p5-namespace-clean>=0.27:devel/p5-namespace-clean \ + p5-strictures>=2.000006:devel/p5-strictures +TEST_DEPENDS= p5-Test-Deep>=0:devel/p5-Test-Deep \ + p5-Test-Exception>=0:devel/p5-Test-Exception \ + p5-Test-RequiresInternet>=0:devel/p5-Test-RequiresInternet + +USES= perl5 +USE_PERL5= configure + +.include diff --git a/misc/p5-OpenAI-API/distinfo b/misc/p5-OpenAI-API/distinfo new file mode 100644 index 000000000000..e7821e23ee25 --- /dev/null +++ b/misc/p5-OpenAI-API/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1677899877 +SHA256 (OpenAI-API-0.19.tar.gz) = 799df4a5cfc7acdf23789069a7958bc3a1a3e0df3a49e940d760e1bb9569c042 +SIZE (OpenAI-API-0.19.tar.gz) = 7802 diff --git a/misc/p5-OpenAI-API/pkg-descr b/misc/p5-OpenAI-API/pkg-descr new file mode 100644 index 000000000000..8d1f85701d79 --- /dev/null +++ b/misc/p5-OpenAI-API/pkg-descr @@ -0,0 +1,4 @@ +OpenAI::API is a Perl module that provides an interface to the +OpenAI API, which allows you to generate text, translate languages, +summarize text, and perform other tasks using the language models +developed by OpenAI. diff --git a/misc/p5-OpenAI-API/pkg-plist b/misc/p5-OpenAI-API/pkg-plist new file mode 100644 index 000000000000..2998eb0f3c76 --- /dev/null +++ b/misc/p5-OpenAI-API/pkg-plist @@ -0,0 +1,12 @@ +%%SITE_PERL%%/OpenAI/API.pm +%%SITE_PERL%%/OpenAI/API/Request/Chat.pm +%%SITE_PERL%%/OpenAI/API/Request/Completion.pm +%%SITE_PERL%%/OpenAI/API/Request/Edit.pm +%%SITE_PERL%%/OpenAI/API/Request/Embedding.pm +%%SITE_PERL%%/OpenAI/API/Request/Moderation.pm +%%PERL5_MAN3%%/OpenAI::API.3.gz +%%PERL5_MAN3%%/OpenAI::API::Request::Chat.3.gz +%%PERL5_MAN3%%/OpenAI::API::Request::Completion.3.gz +%%PERL5_MAN3%%/OpenAI::API::Request::Edit.3.gz +%%PERL5_MAN3%%/OpenAI::API::Request::Embedding.3.gz +%%PERL5_MAN3%%/OpenAI::API::Request::Moderation.3.gz