From nobody Mon Apr 18 00:00:15 2022 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 BB53E11CDC47; Mon, 18 Apr 2022 00:00:17 +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 4KhRrw21pSz4YCS; Mon, 18 Apr 2022 00:00:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650240016; 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=8yqgROqYT7bb4S6NAlet9q9BMqzYw7ZxH6/nSjqlS/g=; b=flWlkT+Tol2pSr9tYM4+tyb82yEZlBuqfKoi0wtvWqaJDBMRQgKOPfEe+3evi0L5aTrV8M SEuLhaq8OqV5sDl8thno64woV8bpVcs7n6UaR/vB+66EWqgCjR8XAdUfM0y9X5kzwrf5HZ aBs9GWeHU3aWzr3Tsq8Zeq6CiPJLzo65O/HfJX1vlXJsN+2tNHr/IM51/dwHrSnLtvq2lM 3hGnDTfPC6M4SYperd/vgiVVJRaFCM3Z3eqQs0LCrBjfHD6T6PzEkeCfO52Pw7V+yoDpGY SIJDufk78ukVhnA0JxVCWwcRSPhEdv8r5WUQzBLUHTk+is5H3fVlv3/NnEZyLg== 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 097AA27B52; Mon, 18 Apr 2022 00:00:16 +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 23I00F3U034776; Mon, 18 Apr 2022 00:00:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23I00FJP034769; Mon, 18 Apr 2022 00:00:15 GMT (envelope-from git) Date: Mon, 18 Apr 2022 00:00:15 GMT Message-Id: <202204180000.23I00FJP034769@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 6e8260b5e39d - main - devel/p5-Parse-Distname: Add p5-Parse-Distname 0.05 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: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6e8260b5e39d3fcce26458f71b1f29e830771cce Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650240016; 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=8yqgROqYT7bb4S6NAlet9q9BMqzYw7ZxH6/nSjqlS/g=; b=jCfIuUUuORy31eDBCyfyMlh8GULGayyexQewLZVkBUtRAHHsc+yWWrHYzguIdrOxgDNcDf SyyNuC2WSTb93qq5vQXgnjTYlBg3WoDeeLM9fVlaCglnlkEuKZymOWTqKmU0qiOAjLfJeZ Q1uoLsgoL4jirW6GkyhmszoNW5ruOHca+g5Nz45RBd9gW8OdhoaWVdzVvXPsaPSVJHMAWS VW/NEsbfCVm3MvoCRnlxmmD6JHlLS4a9jk/vZFTNQpN4Q/PH85nqbE432h+0pgdjd1ssE4 Qy2zRiUGZC6NlA3HoQoomj14cI1sMrHHKdKtle92/tqo7wWIh94UikpwLiUVxA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650240016; a=rsa-sha256; cv=none; b=wJ+EWz1QTQxgvYKwZ3LvOFXaZEJE5efRIP9GYH24MxD82XPpYy2/JMsEYgVImgQU2O1ZcO zfmQvDEmfSRWiGaewIpTzUCrtVZP3JrpbKqMFunpfXbezLDH6DaVEVeZXzjZ/mdGYke9Iy o0OY9lNoNeH2MYb/MLbe+0TvPfmUS6pWiONckQx2dmXaKp1k0i+P/hKr9/8OtxRsrNa29A igwHXV+HuN8bRk3Rucut7TXSYtIZaBaxc+hJGU2Y7FRcrbcRqRY99uzr1HAfJfFAhTX8gY DvWuPw0YPonKfUWUP2/UPRkTIFwu1bbadw+T6eDSSogEKMXJ6fz6o7vYBIeolg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=6e8260b5e39d3fcce26458f71b1f29e830771cce commit 6e8260b5e39d3fcce26458f71b1f29e830771cce Author: Po-Chuan Hsieh AuthorDate: 2022-04-17 23:39:05 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-04-17 23:39:05 +0000 devel/p5-Parse-Distname: Add p5-Parse-Distname 0.05 Parse::Distname is yet another distribution name parser. It works almost the same as CPAN::DistnameInfo, but Parse::Distname takes a different approach. It tries to extract a version part of a distribution and treat the rest as a distribution name, contrary to CPAN::DistnameInfo which tries to define a name part and treat the rest as a version. Because of this difference, when Parse::Distname parses a weird distribution name such as "AUTHOR/v1.0.tar.gz", it says the name is empty and the version is "v1.0", while CPAN::DistnameInfo says the name is "v" and the version is "1.0". See test files in this distribution if you need more details. As of this writing, Parse::Distname returns a different result for about 200+ distributions among about 320000 BackPan distributions. WWW: https://metacpan.org/dist/Parse-Distname --- devel/Makefile | 1 + devel/p5-Parse-Distname/Makefile | 25 +++++++++++++++++++++++++ devel/p5-Parse-Distname/distinfo | 3 +++ devel/p5-Parse-Distname/pkg-descr | 14 ++++++++++++++ devel/p5-Parse-Distname/pkg-plist | 2 ++ 5 files changed, 45 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 7ad4bb66e351..7fd90a3152b0 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -3080,6 +3080,7 @@ SUBDIR += p5-Paranoid-Log-Syslog SUBDIR += p5-Parse-CPAN-Packages SUBDIR += p5-Parse-CPAN-Packages-Fast + SUBDIR += p5-Parse-Distname SUBDIR += p5-Parse-ErrorString-Perl SUBDIR += p5-Parse-ExuberantCTags SUBDIR += p5-Parse-LocalDistribution diff --git a/devel/p5-Parse-Distname/Makefile b/devel/p5-Parse-Distname/Makefile new file mode 100644 index 000000000000..01e49038e23c --- /dev/null +++ b/devel/p5-Parse-Distname/Makefile @@ -0,0 +1,25 @@ +# Created by: Po-Chuan Hsieh + +PORTNAME= Parse-Distname +PORTVERSION= 0.05 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Parse a distribution name + +LICENSE= ART10 GPLv1+ +LICENSE_COMB= dual +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= p5-ExtUtils-MakeMaker-CPANfile>=0:devel/p5-ExtUtils-MakeMaker-CPANfile +TEST_DEPENDS= p5-Test-Differences>=0,1:devel/p5-Test-Differences \ + p5-Test-UseAllModules>=0.17:devel/p5-Test-UseAllModules + +USES= perl5 +USE_PERL5= configure + +NO_ARCH= yes + +.include diff --git a/devel/p5-Parse-Distname/distinfo b/devel/p5-Parse-Distname/distinfo new file mode 100644 index 000000000000..d4a36fa9bfc3 --- /dev/null +++ b/devel/p5-Parse-Distname/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1650228646 +SHA256 (Parse-Distname-0.05.tar.gz) = a5fa93bec2dab76d883da12d4f344b73bf8beb0cc4b66c24376f3e0f387aef07 +SIZE (Parse-Distname-0.05.tar.gz) = 34192 diff --git a/devel/p5-Parse-Distname/pkg-descr b/devel/p5-Parse-Distname/pkg-descr new file mode 100644 index 000000000000..b374d9d60b61 --- /dev/null +++ b/devel/p5-Parse-Distname/pkg-descr @@ -0,0 +1,14 @@ +Parse::Distname is yet another distribution name parser. It works almost the +same as CPAN::DistnameInfo, but Parse::Distname takes a different approach. It +tries to extract a version part of a distribution and treat the rest as a +distribution name, contrary to CPAN::DistnameInfo which tries to define a name +part and treat the rest as a version. + +Because of this difference, when Parse::Distname parses a weird distribution +name such as "AUTHOR/v1.0.tar.gz", it says the name is empty and the version is +"v1.0", while CPAN::DistnameInfo says the name is "v" and the version is "1.0". +See test files in this distribution if you need more details. As of this +writing, Parse::Distname returns a different result for about 200+ distributions +among about 320000 BackPan distributions. + +WWW: https://metacpan.org/dist/Parse-Distname diff --git a/devel/p5-Parse-Distname/pkg-plist b/devel/p5-Parse-Distname/pkg-plist new file mode 100644 index 000000000000..de79eba90b46 --- /dev/null +++ b/devel/p5-Parse-Distname/pkg-plist @@ -0,0 +1,2 @@ +%%SITE_PERL%%/Parse/Distname.pm +%%PERL5_MAN3%%/Parse::Distname.3.gz