From nobody Mon Jan 30 13:07:35 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 4P57kv53T7z3cZ2l; Mon, 30 Jan 2023 13:07:35 +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 4P57kv4SkLz3JQK; Mon, 30 Jan 2023 13:07:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675084055; 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=jOZnPioqJYn9/kcq+vqz+O0S69N4XKP0Mhd8hMIiiQs=; b=Y/8YuE2rN/IgKWmaRHp/vNHp4N3tEnq40a+tmz9HvstsCNHe0fBwOcI+JY2CaBdiQy7CWQ sZNEUR8QOGLSVkxXhuhPLmpL9p0jm5lyCUgyRnmMGIm2TnDNggUc46gkYrmKyJX4j25XkL 6l9gn4/nA4uzSnmz+nPtCb4k+vPPGyVgQ2kvUaZp+KRs3h8DTo3PnlayguT9KpNrm9ROoR fGRVi6t+S+18avNbYX/rlCKg+zmVXzenkP28j9Y6ubD7FoxbzQLZY89WICFn1BqKEiXk+p 0pljV6ESlzoRfCbpTqO9YjaxuIjtK7Gl54isXyZVkvQ4lNnKRUsz7CnrY2mRXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675084055; 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=jOZnPioqJYn9/kcq+vqz+O0S69N4XKP0Mhd8hMIiiQs=; b=aJauZre/NaGkxWRnwZRowEhjQRrNxiV9QjWoar06YWKDpx12ZB023zLpypLutmqfy5wMiR VPucsC6noaTau6vqX0C8bTx1om27s0Atjuua9aUO6ZRqUJTEWvUPTmFRg+t8lqnssMSn8d 7+SetgbIYHteiKemTIyEsTDjgLfnb2fRWlO9obIuSmaoBQDjAvtluBRYXavBYcMrhx2C/E DPsXNIHODD/ZkEWREp3i32DABCcMP4N4OSHmulm9gH3tqEXOuYU4usk6lLkm1r3rLAOVBa 653pwUf5WxdbrDwG7v2KpqgKypl/oJBBwqtllXCGYCwuOadb2ytYA1+jREDEZA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675084055; a=rsa-sha256; cv=none; b=iXb44VQL7ZKKJ8qZCP/WdhaWTlDa3SvYN1TXaVUN58Q0eVuYpSIcHcYpsLHbQrjT/KtTNm CGyhvAikZAjwXn+o+XhJCWig5yZsLX5w3DS6d7+INkxNOTyVeCnPgpqAJ+8CEKUi27hmSZ EzFvBY7Vo4AffIvyQD6uMFC4DFBwpiTnSFkaL+t/5GBegUexIkeJD7u6Ufan5TJNcsFJLF yXiupzOzyyApd4tf/BLOnSGISeP8PAOb6eW3bQfr+yK2jL20D+iuW7U1GXE2hi3oVKV1e4 EsbtKYZkZ5IZWWOrVnuN2kO7V2dSIAABCV74TNVH+rH2wLlQC5UohmQ+LD7qsA== 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 4P57kv3ZqTz18Jt; Mon, 30 Jan 2023 13:07:35 +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 30UD7ZB8055277; Mon, 30 Jan 2023 13:07:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30UD7Z8a055276; Mon, 30 Jan 2023 13:07:35 GMT (envelope-from git) Date: Mon, 30 Jan 2023 13:07:35 GMT Message-Id: <202301301307.30UD7Z8a055276@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: 99189d3b33a4 - main - games/p5-Games-Dice: Update to 0.046 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: 99189d3b33a4d3e1ae74ad3ec354aaf15bf39d09 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=99189d3b33a4d3e1ae74ad3ec354aaf15bf39d09 commit 99189d3b33a4d3e1ae74ad3ec354aaf15bf39d09 Author: Po-Chuan Hsieh AuthorDate: 2023-01-30 12:29:56 +0000 Commit: Po-Chuan Hsieh 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 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.