aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Gasiba <tiago.gasiba@gmail.com>2024-08-14 00:12:04 +0000
committerDaniel Engberg <diizzy@FreeBSD.org>2024-08-14 00:19:05 +0000
commit7b157ac5264d8767e48759d362801c9ead26710a (patch)
tree640fcdbfa50262489275f845271f807b781a0663
parentc2c636c6ef242a0a6d3b32b9e08167772fbfbf76 (diff)
math/quich: New port: Terminal based advanced calculator
A calculator that supports various functions such as sqrt, abs, log sin, cos, tan, asin, acos, atan, rand, round, floor and ceil. It also allows adjustable output, variables etc https://github.com/Usbac/quich PR: 280340
-rw-r--r--math/Makefile1
-rw-r--r--math/quich/Makefile32
-rw-r--r--math/quich/distinfo5
-rw-r--r--math/quich/pkg-descr3
4 files changed, 41 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile
index 7949a311dc4d..9ccb99e5f216 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -1233,6 +1233,7 @@
SUBDIR += trlib
SUBDIR += ttmath
SUBDIR += tvmet
+ SUBDIR += quich
SUBDIR += ump
SUBDIR += units
SUBDIR += universal
diff --git a/math/quich/Makefile b/math/quich/Makefile
new file mode 100644
index 000000000000..3aa1cd750495
--- /dev/null
+++ b/math/quich/Makefile
@@ -0,0 +1,32 @@
+PORTNAME= quich
+DISTVERSIONPREFIX= v
+DISTVERSION= 4.0.0
+CATEGORIES= math
+
+PATCH_SITES= https://github.com/Usbac/quich/commit/
+PATCHFILES= 9ddb21a370fe403b6863995f1f2225529a5f0f81.patch:-p1
+
+MAINTAINER= tiago.gasiba@gmail.com
+COMMENT= Just an advanced terminal calculator
+WWW= https://github.com/Usbac/quich
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+LIB_DEPENDS= liblinenoise.so:devel/linenoise
+
+USES= cmake compiler:c++11-lib pkgconfig
+USE_GITHUB= yes
+GH_ACCOUNT= Usbac
+
+CMAKE_ON= CMAKE_SKIP_RPATH
+
+PLIST_FILES= bin/quich
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKDIR}/.build/quich ${STAGEDIR}${PREFIX}/bin/
+
+do-test:
+ cd ${WRKDIR}/.build && ./quich_test
+
+.include <bsd.port.mk>
diff --git a/math/quich/distinfo b/math/quich/distinfo
new file mode 100644
index 000000000000..3f2f4950f4a5
--- /dev/null
+++ b/math/quich/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1722776154
+SHA256 (Usbac-quich-v4.0.0_GH0.tar.gz) = d28d9a3552552bf692b126dacac6bcc2591531b6a44a24cb1285d2d506dadc85
+SIZE (Usbac-quich-v4.0.0_GH0.tar.gz) = 25650
+SHA256 (9ddb21a370fe403b6863995f1f2225529a5f0f81.patch) = bc32b7092593620c4a9b51fcb173172733bb52dacf9dee7e0161c48965d9b1e1
+SIZE (9ddb21a370fe403b6863995f1f2225529a5f0f81.patch) = 2626
diff --git a/math/quich/pkg-descr b/math/quich/pkg-descr
new file mode 100644
index 000000000000..a99f6447be0f
--- /dev/null
+++ b/math/quich/pkg-descr
@@ -0,0 +1,3 @@
+Quich is a compact, fast, powerful and useful calculator
+for your terminal with numerous features, supporting Linux,
+Mac and Windows, written in ANSI C.