git: 99189d3b33a4 - main - games/p5-Games-Dice: Update to 0.046

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 30 Jan 2023 13:07:35 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=99189d3b33a4d3e1ae74ad3ec354aaf15bf39d09

commit 99189d3b33a4d3e1ae74ad3ec354aaf15bf39d09
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-01-30 12:29:56 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-01-30 12:59:28 +0000

    games/p5-Games-Dice: Update to 0.046
    
    - Add LICENSE_FILE
    - Add NO_ARCH
    - Update pkg-descr
    - Take maintainership
    
    Changes:        https://metacpan.org/dist/Games-Dice/changes
---
 games/p5-Games-Dice/Makefile  |  9 +++++----
 games/p5-Games-Dice/distinfo  |  5 +++--
 games/p5-Games-Dice/pkg-descr | 32 +++++++++++++++++++-------------
 3 files changed, 27 insertions(+), 19 deletions(-)

diff --git a/games/p5-Games-Dice/Makefile b/games/p5-Games-Dice/Makefile
index b1df03173a1e..71f31638a2b8 100644
--- a/games/p5-Games-Dice/Makefile
+++ b/games/p5-Games-Dice/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	Games-Dice
-PORTVERSION=	0.045
+PORTVERSION=	0.046
 CATEGORIES=	games perl5
 MASTER_SITES=	CPAN
 PKGNAMEPREFIX=	p5-
@@ -9,12 +9,13 @@ COMMENT=	Perl module to simulate die rolls
 WWW=		https://metacpan.org/release/Games-Dice
 
 LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
 
-TEST_DEPENDS=	p5-Capture-Tiny>=0:devel/p5-Capture-Tiny \
-		p5-Test-Script>=1.06:devel/p5-Test-Script \
-		p5-Test-Simple>=0.96:devel/p5-Test-Simple
+TEST_DEPENDS=	p5-Test-MockRandom>=0:devel/p5-Test-MockRandom
 
 USES=		perl5
 USE_PERL5=	configure
 
+NO_ARCH=	yes
+
 .include <bsd.port.mk>
diff --git a/games/p5-Games-Dice/distinfo b/games/p5-Games-Dice/distinfo
index 1fc69e621496..a40891730e55 100644
--- a/games/p5-Games-Dice/distinfo
+++ b/games/p5-Games-Dice/distinfo
@@ -1,2 +1,3 @@
-SHA256 (Games-Dice-0.045.tar.gz) = ece0f9f7a0fdb1e72faae5cd05823cac588a3476b92646b067ba2a77b261f54c
-SIZE (Games-Dice-0.045.tar.gz) = 12085
+TIMESTAMP = 1674589670
+SHA256 (Games-Dice-0.046.tar.gz) = b79c8ced572157f3623a5fd8179f3babe63386163260955a41f95b089fec7eff
+SIZE (Games-Dice-0.046.tar.gz) = 13218
diff --git a/games/p5-Games-Dice/pkg-descr b/games/p5-Games-Dice/pkg-descr
index 9a0708ece748..0cac8fab6922 100644
--- a/games/p5-Games-Dice/pkg-descr
+++ b/games/p5-Games-Dice/pkg-descr
@@ -1,15 +1,21 @@
 Games::Dice simulates die rolls. It uses a function-oriented (not
-object-oriented) interface. No functions are exported by default.
+object-oriented) interface. No functions are exported by default. At present,
+there are two functions which are exportable: roll and roll_array. The latter is
+used internally by roll, but can also be exported by itself.
 
-The number and type of dice to roll is given in a style which should be
-familiar to players of popular role-playing games: adb[+-*/b]c. a is optional
-and defaults to 1; it gives the number of dice to roll. b indicates the number
-of sides to each die. % can be used instead of 100 for b; hence, rolling 2d%
-and 2d100 is equivalent. roll simulates a rolls of b-sided dice and adds
-together the results. The optional end, consisting of one of +-*/b and a
-number c, can modify the sum of the individual dice. +-*/ are similar in that
-they take the sum of the rolls and add or subtract c, or multiply or divide
-the sum by c. (x can also be used instead of *.) Using b in this slot is a
-little different: it's short for "best" and indicates "roll a number of dice,
-but add together only the best few". For example, 5d6b3 rolls five six- sided
-dice and adds together the three best rolls.
+The number and type of dice to roll is given in a style which should be familiar
+to players of popular role-playing games: adb[+-*/b]c. a is optional and
+defaults to 1; it gives the number of dice to roll. b indicates the number of
+sides to each die; the most common, cube-shaped die is thus a d6. % can be used
+instead of 100 for b; hence, rolling 2d% and 2d100 is equivalent. If F is used
+for b fudge dice are used, which either results in -1, 0 or 1. roll simulates a
+rolls of b-sided dice and adds together the results. The optional end,
+consisting of one of +-*/b and a number c, can modify the sum of the individual
+dice. +-*/ are similar in that they take the sum of the rolls and add or
+subtract c, or multiply or divide the sum by c. (x can also be used instead of
+*.) Hence, 1d6+2 gives a number in the range 3..8, and 2d4*10 gives a number in
+the range 20..80. (Using / truncates the result to an int after dividing.) Using
+b in this slot is a little different: it's short for "best" and indicates "roll
+a number of dice, but add together only the best few". For example, 5d6b3 rolls
+five six- sided dice and adds together the three best rolls. This is sometimes
+used, for example, in role-playing to give higher averages.