1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

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
This commit is contained in:
Po-Chuan Hsieh 2023-01-30 20:29:56 +08:00
parent a9dc962540
commit 99189d3b33
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
3 changed files with 27 additions and 19 deletions

View File

@ -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>

View File

@ -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

View File

@ -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.