[Bug 284557] [NEW PORT] math/pcalc: Programmer's command line calculator

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 04 Feb 2025 21:01:30 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284557

Paco Pascal <me@pacopascal.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #257216|0                           |1
        is obsolete|                            |

--- Comment #2 from Paco Pascal <me@pacopascal.com> ---
Created attachment 257239
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=257239&action=edit
patch-math_pcalc.diff

By installing AUTHORS and COPYING, I was mimicking what other ports do. My
system has 41 packages that installed AUTHORS and 32 that installed either
LICENSE or COPYING. I'm indifferent to installing them.

As for overriding do-install, that seemed cleaner than patching pcalc's
Makefile for such a simple installation and is consistent with other ports. I
think using ${INSTALL_PROGRAM} via do-install was cleaner than patching
Makefile and running ${STRIPCMD} in post-install. 

I'm unsure how to handle the PORTDOCS in the plist, if at all. Generating
pkg-plist produces,

    bin/pcalc
    %%PORTDOCS%%%%DOCSDIR%%/EXAMPLE
    %%PORTDOCS%%%%DOCSDIR%%/README.md
    %%PORTDOCS%%%%DOCSDIR%%/SYNTAX.md

which causes `make check-plist` to fail.

// Paco

-- 
You are receiving this mail because:
You are the assignee for the bug.