Date: Sat, 4 Mar 2023 03:33:06 GMT From: Wen Heping <wen@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 8447f6cc7bd7 - main - misc/p5-OpenAI-API: Add new port Message-ID: <202303040333.3243X6tN021796@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by wen: URL: https://cgit.FreeBSD.org/ports/commit/?id=8447f6cc7bd7fea75a907405f48df72adae13bf5 commit 8447f6cc7bd7fea75a907405f48df72adae13bf5 Author: Wen Heping <wen@FreeBSD.org> AuthorDate: 2023-03-04 03:31:40 +0000 Commit: Wen Heping <wen@FreeBSD.org> 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 <bsd.port.mk> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303040333.3243X6tN021796>