Skip to content

Commit

Permalink
math/quich: New port: Terminal based advanced calculator
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tjemg authored and Daniel Engberg committed Aug 14, 2024
1 parent c2c636c commit 7b157ac
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions math/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1233,6 +1233,7 @@
SUBDIR += trlib
SUBDIR += ttmath
SUBDIR += tvmet
SUBDIR += quich
SUBDIR += ump
SUBDIR += units
SUBDIR += universal
Expand Down
32 changes: 32 additions & 0 deletions math/quich/Makefile
Original file line number Diff line number Diff line change
@@ -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= [email protected]
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>
5 changes: 5 additions & 0 deletions math/quich/distinfo
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions math/quich/pkg-descr
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 7b157ac

Please sign in to comment.