From nobody Mon Dec 22 15:01:29 2025 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 4dZhDT301Dz6LJGw for ; Mon, 22 Dec 2025 15:01:29 +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 "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dZhDT2Lckz3V1d for ; Mon, 22 Dec 2025 15:01:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766415689; 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=ZLfmYdGS+7m5zFVCn557jwY1z+mqCdR9HaIr6ZrJBGI=; b=EHx8+mlkrgwZ85uGh+t7n3Vs0HxfHKdhv/iJB8goApnN4QTnWwPRYC1Qb6zXcaFwFw8X5s Y48xlDW8KnROQoJE8lJVHfcS1iA3VtoAOf2wHw4Yh+VQ/1mAV95lWIok4+ho+GSutGRCsc QO+VFkEjM8rDYZ/MLyGs3Fz06t3yL20Rd4qpyjhIQenEyv3ZeAQaRFmTumptDC6TDR0PoY LCA9DgMxXfAgzURP4RKFFecoaMJcRRDeSNDh18EdXjvkBnUDLUd05ii4lwnL4KONNwxaYq I6AxTuJyrKUqL2F2wfiGjBi4nofNGWcFLZsx4ZYPqEUy+/rUxovfDtI3wWsNIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766415689; 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=ZLfmYdGS+7m5zFVCn557jwY1z+mqCdR9HaIr6ZrJBGI=; b=c+K66J38RoLMYcht2hyU4EgvSsED3nw9+ym+5KKV+ZDhAx246V8iehT4cg/MSHMSC1KNAQ ZyDvLemlSrHk2nUc/ZgpENNwJE8CgosQh6W4Jj1mvcgfBSU9iKfXbLei+PzGSBZn7Cn7bF AwXKnzxdrE3PwFbScpOpudKeY+iJ5gkkrMHVgK7GBAQFFSs3hIlauCb3rSZXNESPgcCQjH OyqoW4ibx0KLLntxFPVvsLNnHUYtoOi+jQ8g8PS3BMSRJ7Oxwg91sU8ZRI9mEl9/LCiZKP UNUnCPnbPHa7BBgR7luSJrTiK5e66aHgDJ+S2GBdXT3dUUY7FSaYjtWrm2OdEw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1766415689; a=rsa-sha256; cv=none; b=Xj0FvxrBHRBY32pBRfmKBvNXdweE4+LzKvOuiVnK4Is5ViVJsj88yGJrSHPpR3pXRK15f2 ZxPg4OhehkxIbed0xcW92P79PGh59Fu1vOBOdxkaDdUl2vui7nkpk02jeqDOyoyYO722z1 VkvwYr/DxQOkZnkO+DvmU8XI5k4deF+thPq54at35yxAiF4OZy+urvEmX5q3n9qxzXAYeL tBRoK3qbuN6lhSIlI23CAqY40fbyJGU+vwz5BPdPLUa4N8gwT9zvfHrejywiGr5OfIzyU8 j4D2+IWtCguryL/VMOcbCHdW40m+stpNmkOjLibCooKTuX952CJQu2Zag6uVbg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dZhDT1wz0zXK5 for ; Mon, 22 Dec 2025 15:01:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 42883 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 22 Dec 2025 15:01:29 +0000 To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Adam Weinberger Subject: git: dda6ecf07749 - main - math/calc: Update to 2.16.0.2 and add a "tiny" flavor 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: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: adamw X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: dda6ecf07749e413483238a8cbe0628ec235645c Auto-Submitted: auto-generated Date: Mon, 22 Dec 2025 15:01:29 +0000 Message-Id: <69495d49.42883.8ca55b1@gitrepo.freebsd.org> The branch main has been updated by adamw: URL: https://cgit.FreeBSD.org/ports/commit/?id=dda6ecf07749e413483238a8cbe0628ec235645c commit dda6ecf07749e413483238a8cbe0628ec235645c Author: Adam Weinberger AuthorDate: 2025-12-22 14:46:37 +0000 Commit: Adam Weinberger CommitDate: 2025-12-22 15:01:24 +0000 math/calc: Update to 2.16.0.2 and add a "tiny" flavor The "tiny" flavor reduces the footprint < 20K by statically-linking the executable and installing nothing else (no help files, no advanced loadable modules, etc.). This makes it a great option for most bit/networking/back-of-the-envelope calculations in constrained environments. Changes: https://github.com/lcn2/calc/releases/tag/v2.16.0.2 --- math/calc/Makefile | 32 ++++++++++++++++++++++++-------- math/calc/distinfo | 6 +++--- math/calc/pkg-descr | 6 ++++++ math/calc/pkg-plist | 2 ++ 4 files changed, 35 insertions(+), 11 deletions(-) diff --git a/math/calc/Makefile b/math/calc/Makefile index 4a631e2f1db2..1511cc4d38c3 100644 --- a/math/calc/Makefile +++ b/math/calc/Makefile @@ -1,5 +1,5 @@ PORTNAME= calc -PORTVERSION= 2.16.0.0 +PORTVERSION= 2.16.0.2 DISTVERSIONPREFIX= v CATEGORIES= math @@ -10,25 +10,35 @@ WWW= https://github.com/lcn2/calc LICENSE= LGPL21 LICENSE_FILE= ${WRKSRC}/COPYING-LGPL +FLAVORS= default tiny + USES= gmake tar:bzip2 readline USE_GITHUB= yes GH_ACCOUNT= lcn2 -CONFLICTS_INSTALL= schilyutils # bin/calc - -MAKE_JOBS_UNSAFE= yes -PLIST_SUB+= VERSION=${PORTVERSION} VERSION_R=${PORTVERSION:R} - MAKE_ARGS= DATADIR="${DATADIR}" +MAKE_JOBS_UNSAFE= yes TEST_TARGET= check +CONFLICTS_INSTALL= calc calc-tiny schilyutils +PLIST_SUB+= VERSION=${PORTVERSION} VERSION_R=${PORTVERSION:R} + OPTIONS_DEFINE= FULL HELP OPTIONS_DEFAULT=FULL HELP OPTIONS_SUB= yes FULL_DESC= Install all funcs/scripts/headers (OFF: just basic calculator) HELP_DESC= Install calc help files -# We use Makefile.freebsd because Makefile.local is in .gitignore +.if ${FLAVOR:U} == tiny +OPTIONS_EXCLUDE=FULL HELP +PKGNAMESUFFIX= -tiny +MAKE_ENV+= BLD_TYPE=calc-static-only +PLIST_FILES= bin/calc +PLIST= # Use only PLIST_FILES +.endif + +.include +# We use Makefile.freebsd because Makefile.local is in our .gitignore post-extract: ${SED} -e 's|%%CC%%|${CC}|; s|%%CFLAGS%%|${CFLAGS}|; s|%%SH%%|${SH}|' \ ${FILESDIR}/Makefile.freebsd > ${WRKSRC}/Makefile.local @@ -37,7 +47,13 @@ post-extract: ${FIND} ${WRKSRC} -name 'Makefile*' \ | ${XARGS} ${REINPLACE_CMD} -i '' -E -e '/SHELL:?=/s|bash|${SH}|' +.if ${FLAVOR:U} == default post-install: cd ${STAGEDIR}${PREFIX} && ${STRIP_CMD} bin/calc lib/lib*.so -.include +.else +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/calc ${STAGEDIR}${PREFIX}/bin +.endif + +.include diff --git a/math/calc/distinfo b/math/calc/distinfo index fdf4d15dcc89..df10f00aa517 100644 --- a/math/calc/distinfo +++ b/math/calc/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1755224365 -SHA256 (lcn2-calc-v2.16.0.0_GH0.tar.gz) = 096acf2162afa0eee50ac818a5e70399e3a3299eb9e4b088e455dedc023cae23 -SIZE (lcn2-calc-v2.16.0.0_GH0.tar.gz) = 1309374 +TIMESTAMP = 1766411172 +SHA256 (lcn2-calc-v2.16.0.2_GH0.tar.gz) = 2beedbf40eedea431b765b37e39e1a7e2aa35bfde4136694800e4149074b1b53 +SIZE (lcn2-calc-v2.16.0.2_GH0.tar.gz) = 1324642 diff --git a/math/calc/pkg-descr b/math/calc/pkg-descr index bb60c95a3e54..929f2ca92eb5 100644 --- a/math/calc/pkg-descr +++ b/math/calc/pkg-descr @@ -6,3 +6,9 @@ Otherwise, it enters interactive mode. There are a great number of pre-defined functions. The calculator can calculate transcendental functions, and accept and display numbers in real or exponential format. The calculator also knows about complex numbers. + +There is a "tiny" flavor (pkg install calc-tiny) that excludes both +the help files and loadable modules. It provides a basic calculator +(still with MANY built-in functions) in under 20K (on amb64). Note +that the tiny flavor installs a static executable only, so libcalc.so +is not available (as of the time of writing, no other ports use it). diff --git a/math/calc/pkg-plist b/math/calc/pkg-plist index 5d858521bb4c..6bca8e7e75ed 100644 --- a/math/calc/pkg-plist +++ b/math/calc/pkg-plist @@ -64,12 +64,14 @@ lib/libcustcalc.so.%%VERSION%% %%HELP%%%%DATADIR%%/custhelp/argv %%HELP%%%%DATADIR%%/custhelp/devnull %%HELP%%%%DATADIR%%/custhelp/help +%%HELP%%%%DATADIR%%/custhelp/pfe %%HELP%%%%DATADIR%%/custhelp/pmodm127 %%HELP%%%%DATADIR%%/custhelp/pzasusb8 %%HELP%%%%DATADIR%%/custhelp/register %%HELP%%%%DATADIR%%/custhelp/sysinfo %%FULL%%%%DATADIR%%/custom/argv.cal %%FULL%%%%DATADIR%%/custom/halflen.cal +%%FULL%%%%DATADIR%%/custom/pfe.cal %%FULL%%%%DATADIR%%/custom/pmodm127.cal %%FULL%%%%DATADIR%%/custom/pzasusb8.cal %%FULL%%%%DATADIR%%/custom/register.cal