There's a handful of software I have to manually install because they are not in ports. Although my interest is in src instead of ports, I'm willing to spend time porting the software that's missing if progress can be made.
The simplest port I want is pcalc which I've attached a patch for and filed a report for here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284557 I don't care how it gets into ports, I just want it there. If someone wants to add or remove a single space character just to take my name off the commit, it doesn't matter to me as long as its committed. // Paco
From 2f3b6d6ee9cfc01dec95acc04698538e5abfda29 Mon Sep 17 00:00:00 2001 From: Paco Pascal <[email protected]> Date: Tue, 4 Feb 2025 17:28:14 -0500 Subject: [PATCH] new port: math/pcalc --- math/pcalc/Makefile | 30 ++++++++++++++++++++++++++++++ math/pcalc/distinfo | 3 +++ math/pcalc/files/patch-Makefile | 24 ++++++++++++++++++++++++ math/pcalc/pkg-descr | 10 ++++++++++ 4 files changed, 67 insertions(+) create mode 100644 math/pcalc/Makefile create mode 100644 math/pcalc/distinfo create mode 100644 math/pcalc/files/patch-Makefile create mode 100644 math/pcalc/pkg-descr diff --git a/math/pcalc/Makefile b/math/pcalc/Makefile new file mode 100644 index 000000000000..70f00754a42c --- /dev/null +++ b/math/pcalc/Makefile @@ -0,0 +1,30 @@ +PORTNAME= pcalc +DISTVERSIONPREFIX= v +DISTVERSION= 5 +CATEGORIES= math + +MAINTAINER= [email protected] +COMMENT= Command line util for doing hex/dec/oct/bin math quickly +WWW= https://vapier.github.io/pcalc/ + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + +USES= bison gmake +USE_GITHUB= yes +GH_ACCOUNT= vapier + +PORTDOCS= EXAMPLE README.md SYNTAX.md +OPTIONS_DEFINE= DOCS + +PLIST_FILES= bin/pcalc +TEST_TARGET= check + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/pcalc + +do-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC} && ${INSTALL_MAN} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/) + +.include <bsd.port.mk> diff --git a/math/pcalc/distinfo b/math/pcalc/distinfo new file mode 100644 index 000000000000..a5aedb753cd1 --- /dev/null +++ b/math/pcalc/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1738694896 +SHA256 (vapier-pcalc-v5_GH0.tar.gz) = 6a557bdb315ae4552e58efd80b94b372e4e10199e80148fe796dc325750302c8 +SIZE (vapier-pcalc-v5_GH0.tar.gz) = 26563 diff --git a/math/pcalc/files/patch-Makefile b/math/pcalc/files/patch-Makefile new file mode 100644 index 000000000000..1cf450c6cc57 --- /dev/null +++ b/math/pcalc/files/patch-Makefile @@ -0,0 +1,24 @@ +--- Makefile.orig 2022-02-23 04:42:33 UTC ++++ Makefile +@@ -23,6 +23,8 @@ pcalc: LDFLAGS += $(CFLAGS) + pcalc: $(OBJS) + pcalc: LDFLAGS += $(CFLAGS) + ++$(OBJS): pcalc.c ++ + pcalc.c: pcalc.y + $(YACC) -o $@ $< + +@@ -39,10 +41,10 @@ INSTALL = install + $(MAKE) -C ptest check + + INSTALL = install +-BINDIR = /usr/bin ++BINDIR = /usr/local/bin + DESTDIR = + install: +- $(INSTALL) -m 755 -D pcalc $(DESTDIR)$(BINDIR)/pcalc ++ $(INSTALL) -m 755 -D $(DESTDIR)$(BINDIR) pcalc $(DESTDIR)$(BINDIR)/pcalc + + dist pack: distclean + rm -rf pcalc-$(VERSION) diff --git a/math/pcalc/pkg-descr b/math/pcalc/pkg-descr new file mode 100644 index 000000000000..305818142288 --- /dev/null +++ b/math/pcalc/pkg-descr @@ -0,0 +1,10 @@ +A programmer's command line calculator for doing hex/dec/oct/bin math +quickly. + +Features: + - Full math parser, parentheses, add, sub, mult, div, exponential + - Automatic conversion between HEX DEC OCT BIN numbers + - Mixing different bases in one expression + - Definable variables + - Math constants (E PI ...) + - Built in math functions (sin/cos/sqrt ...) -- 2.48.1
publickey - [email protected] - 0xFC77B9BF.asc
Description: application/pgp-keys
signature.asc
Description: OpenPGP digital signature
