From nobody Sat Dec 30 03:44:47 2023 X-Original-To: dev-commits-ports-main@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 4T27RM6lwsz4cK2B; Sat, 30 Dec 2023 03:44:47 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T27RM5vSwz3PL0; Sat, 30 Dec 2023 03:44:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703907887; 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=hGe7YpU8/mQqPOa7KRlxhDC2c+sQzJVA7746QZXAqls=; b=UJyInlV4bH+oJFOYxq8aCaEqFvWTG+hiW2cSLxLfC7dEKb2ra0MDyf4rv8MfvX19bHkrK0 Z8CARNDq0kJ0UblArrOj9TuAyiHWCKENlJkTE1vET42tWBpIOJDj828mwr9XrEvQ8pWM7s KAqLG/PUKh3qnMqH9DbvnvrMSGuwYin2Cbft+V0l2ylwgOn4mCNa3wei9txinadKURzYwN 65qS/ApzkKMDIg9q3G5cpex6L25U4ySId/OiOVekojAqA3a6WojQ5Fy9UCR4UkbRfgI5gB HQkW0Yu8SHw89pXmm58WURVCsgJM0GLsIt6I1JiTR5JGMvNpAt/3eJcKTpDDiA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703907887; a=rsa-sha256; cv=none; b=wLQ4KKXGgaRinXpqGYwMtOdhDLZ+7Nobhf4V1edY9NzfKuTcOi86CwPPO//EGgyYQp0FCE +5JtDdcGOZSE121o83/IThs8Rl5G29bEWSXwKbkDAx70gTYT72rdCZjc21HgNa4jIoEE3I 6Y15i+ZE8Zw/greBr3CU78Eiusp9N2duNGc+lrqXC6ma2JYWXVid5ktfCsIw+Zo86iYlem EJi/2H5IG00TblOatpqkndcU+gV+Ob8U84ah/2vzALFjR7RPkCzr9w1LPzkNY7yI5SMG5s h3uniQTd/fNibKNF+Ak+auPhjUYPTdsThKTnCCrBHyO0kxHwec43gm2UJFT73A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703907887; 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=hGe7YpU8/mQqPOa7KRlxhDC2c+sQzJVA7746QZXAqls=; b=khrKlHTOyqiUVfjSAaXhRWo0MbDSHfyvczg+0psoA7BNe5+HMeZdOoPvnvFJP4fWDP+1H8 DpxlTHQI/RL2BMtRweADmtTmFPfqzDoGSPxppmhfkooex47L9v8VX79wWbrtm3UA27cLpC Sj8ciRnndsqsW+EADS6QPLvkRP7Fne38Ef/pGOmDyvlangq2LzUFAFtgJ2YmtqRlLAx6Ah NMQlGr7wQ7wYIzIidiNuP7uw9GKvSg4yiF69sgHpzRw+shepYvqwmjdpQSWDI0K0X2vR5n PaaCvjoKt013yMLf0XG/6D2PiDJnfOCbjlmPv+tQhmPLhbpidZcC3Pwa5mPjiw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4T27RM4yy4zZb1; Sat, 30 Dec 2023 03:44:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3BU3ilOw044256; Sat, 30 Dec 2023 03:44:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BU3ilXg044253; Sat, 30 Dec 2023 03:44:47 GMT (envelope-from git) Date: Sat, 30 Dec 2023 03:44:47 GMT Message-Id: <202312300344.3BU3ilXg044253@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 4c859788ed8a - main - math/tinyexpr: New port: Tiny expression parser/compiler/evaluation engine for math expressions List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4c859788ed8a181ff7c05bb01a014dfb173d238b Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=4c859788ed8a181ff7c05bb01a014dfb173d238b commit 4c859788ed8a181ff7c05bb01a014dfb173d238b Author: Yuri Victorovich AuthorDate: 2023-12-30 02:14:59 +0000 Commit: Yuri Victorovich CommitDate: 2023-12-30 03:44:45 +0000 math/tinyexpr: New port: Tiny expression parser/compiler/evaluation engine for math expressions --- math/Makefile | 1 + math/tinyexpr/Makefile | 28 ++++++++++++++++++++++++++++ math/tinyexpr/distinfo | 3 +++ math/tinyexpr/pkg-descr | 2 ++ 4 files changed, 34 insertions(+) diff --git a/math/Makefile b/math/Makefile index 744598647931..51bf24e648f2 100644 --- a/math/Makefile +++ b/math/Makefile @@ -1201,6 +1201,7 @@ SUBDIR += the-algorithms-c++ SUBDIR += timbl SUBDIR += tiny-bignum-c + SUBDIR += tinyexpr SUBDIR += tinymt SUBDIR += tlapack SUBDIR += tmv diff --git a/math/tinyexpr/Makefile b/math/tinyexpr/Makefile new file mode 100644 index 000000000000..25f9ba86e7a8 --- /dev/null +++ b/math/tinyexpr/Makefile @@ -0,0 +1,28 @@ +PORTNAME= tinyexpr +DISTVERSION= g20221120 +CATEGORIES= math + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Tiny expression parser/compiler/evaluation engine for math expressions +WWW= https://codeplea.com/tinyexpr + +LICENSE= MIT + +USE_LDCONFIG= yes + +USE_GITHUB= yes +GH_ACCOUNT= codeplea +GH_TAGNAME= 74804b8 + +PLIST_FILES= include/${PORTNAME}.h \ + lib/lib${PORTNAME}.so + +do-build: + @cd ${WRKSRC} && \ + ${CC} ${CFLAGS} -fPIC ${LDFLAGS} -Wl,-soname,lib${PORTNAME}.so -shared -lm -o lib${PORTNAME}.so ${PORTNAME}.c + +do-install: + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.h ${STAGEDIR}${PREFIX}/include + ${INSTALL_LIB} ${WRKSRC}/lib${PORTNAME}.so ${STAGEDIR}${PREFIX}/lib + +.include diff --git a/math/tinyexpr/distinfo b/math/tinyexpr/distinfo new file mode 100644 index 000000000000..d96ad9f62d10 --- /dev/null +++ b/math/tinyexpr/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1703899688 +SHA256 (codeplea-tinyexpr-g20221120-74804b8_GH0.tar.gz) = dbf1da2ac35fd71f381e5fbdd2d20955fd77e452138c55b6961412e8a18f0f09 +SIZE (codeplea-tinyexpr-g20221120-74804b8_GH0.tar.gz) = 38145 diff --git a/math/tinyexpr/pkg-descr b/math/tinyexpr/pkg-descr new file mode 100644 index 000000000000..652861d3eae3 --- /dev/null +++ b/math/tinyexpr/pkg-descr @@ -0,0 +1,2 @@ +TinyExpr is a very small parser and evaluation library for evaluating math +expressions from C. It's open-source, free, and is extremely easy to use.