From nobody Fri Jun 21 12:13:00 2024 X-Original-To: dev-commits-ports-all@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 4W5GTX4MkSz5NYvX for ; Fri, 21 Jun 2024 12:13:04 +0000 (UTC) (envelope-from daniel.engberg.lists@pyret.net) Received: from smtp-8faf.mail.infomaniak.ch (smtp-8faf.mail.infomaniak.ch [83.166.143.175]) (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 (2048 bits) client-digest SHA256) (Client CN "relay.mail.infomaniak.ch", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W5GTX0R8Dz4chQ for ; Fri, 21 Jun 2024 12:13:04 +0000 (UTC) (envelope-from daniel.engberg.lists@pyret.net) Authentication-Results: mx1.freebsd.org; none Received: from smtp-3-0001.mail.infomaniak.ch (smtp-3-0001.mail.infomaniak.ch [10.4.36.108]) by smtp-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4W5GTT1nRnzYV; Fri, 21 Jun 2024 14:13:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pyret.net; s=20231006; t=1718971981; bh=TkQy8ndZhlkhBpiWZvt6ui2HvcsDzxAvF9UnZzkVAXs=; h=Date:Subject:From:Reply-To:To:Cc:References:In-Reply-To:From; b=hqngErspYlgxDrBrKU/CT1EQl6K/RYw+4mt/wXucgZmg/QXDSLrXnAwHwkYb9EPR4 GylHpOrafMCPIB+ZCtVR+F+7DGfWuZFkYQiOjgdzg2R55rpgmnUJT6+tySZMr6oNS8 fWP7x4G76TR/wGaQHdcMoJ3ymUdHit16jJ8iwevsR4coOVxaNSP9nfb+qWiqjfBYvh PpGMe3BvxvwpjENBk7q4ES15XZOmAw/xU0vk734Eo6uvBcQ54eUOCrlH0NQMBTqOi/ vTWpdSIf7bmlgEnISmt5elMHyvhoyTdnz1hSS2DYX+30oMSyPHwBsleeyV9SMtvgeH b43X6mT4Yg1yA== Received: from unknown by smtp-3-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4W5GTS58JYzBfd; Fri, 21 Jun 2024 14:13:00 +0200 (CEST) Message-ID: <74dfc79ede606f9424af2b0f564b01f3@mail.infomaniak.com> Date: Fri, 21 Jun 2024 14:13:00 +0200 Subject: Re: git: 12594e1aee7b - main - math/mathex: new port, C++ library to parse/evaluate mathematical expressions From: Daniel Engberg Reply-To: Daniel Engberg To: Thierry Thomas Cc: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="_=_swift_1718971980_b010cda8dad68453e55541d7565fcca0_=_" X-WS-User-Origin: eyJpdiI6Im1pdlJNR2FZcVoyaEZhWWNTRlQ1alE9PSIsInZhbHVlIjoiMGV5dDRBNVNRVjRqNHQ5NmQ2Wk1Vdz09IiwibWFjIjoiZDEzODI3NDc5ZmRkN2E1MDk2MjNjNTNhNGE3MDg1MTgwY2M4NzIyODc0NzU1MGZiYzVmNzQ4NTZlNjkzMmI4MCIsInRhZyI6IiJ9 X-WS-User-Mbox: eyJpdiI6InlkclZTRWptcFp1RGdtNUJpM2tGYXc9PSIsInZhbHVlIjoiTnpuL21QWUhMM1gvUzhpYXhxaUtpdz09IiwibWFjIjoiYjUzMWQ3MWQwZjliZTViMWVjNmMyMjQ3ZDJkMDZhMTExMTEyZWI3Y2NlNDRjMGExNmJiZThiMmY1OWZhOWI0MCIsInRhZyI6IiJ9 X-WS-Location: eJxzKUpMKykGAAfpAmU- X-Mailer: Infomaniak Workspace (1.3.703) References: <202406211115.45LBFt3m025401@gitrepo.freebsd.org> In-Reply-To: <202406211115.45LBFt3m025401@gitrepo.freebsd.org> X-Infomaniak-Routing: alpha X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:29222, ipnet:83.166.128.0/19, country:CH] X-Rspamd-Queue-Id: 4W5GTX0R8Dz4chQ --_=_swift_1718971980_b010cda8dad68453e55541d7565fcca0_=_ Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2024-06-21T13:15:55.000+02:00, Thierry Thomas wr= ote: >=C2=A0The=C2=A0branch=C2=A0main=C2=A0has=C2=A0been=C2=A0updated= =C2=A0by=C2=A0thierry: >=C2=A0 >=C2=A0URL:=C2=A0https://cgit.FreeBSD.or= g/ports/commit/?id=3D12594e1aee7b17507b85b8a0ee762a678b3ff79e >=C2=A0 >= =C2=A0commit=C2=A012594e1aee7b17507b85b8a0ee762a678b3ff79e >=C2=A0 >= =C2=A0Author:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Thierry=C2=A0Thomas=C2=A0 >=C2=A0 >=C2=A0AuthorDate:=C2=A02024-06-21=C2=A009:22:25= =C2=A0+0000 >=C2=A0 >=C2=A0Commit:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Thierry= =C2=A0Thomas=C2=A0 >=C2=A0 >=C2=A0CommitDate:= =C2=A02024-06-21=C2=A011:15:52=C2=A0+0000 >=C2=A0 >=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0math/mathex:=C2=A0new=C2=A0port,=C2=A0C++=C2=A0library=C2= =A0to=C2=A0parse/evaluate=C2=A0mathematical=C2=A0expressions >=C2=A0 >= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 >=C2=A0 >=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0Remark:=C2=A0upstream=C2=A0seems=C2=A0inactive,=C2=A0but=C2=A0MathEx= =C2=A0is=C2=A0still=C2=A0used=C2=A0by=C2=A0Gmsh. >=C2=A0 >=C2=A0--- >= =C2=A0 >=C2=A0=C2=A0math/Makefile=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0|=C2=A0=C2=A01=C2=A0+ >=C2=A0 >=C2=A0=C2=A0math/mathex/Make= file=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0|=C2=A044=C2=A0++++++++++++++++++++++++++++++++++++++++ >= =C2=A0 >=C2=A0=C2=A0math/mathex/distinfo=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0|=C2=A0=C2=A03=C2=A0+++ >= =C2=A0 >=C2=A0=C2=A0math/mathex/files/patch-makefile=C2=A0|=C2=A022=C2= =A0++++++++++++++++++++ >=C2=A0 >=C2=A0=C2=A0math/mathex/pkg-descr= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0|= =C2=A0=C2=A04=C2=A0++++ >=C2=A0 >=C2=A0=C2=A05=C2=A0files=C2=A0changed,= =C2=A074=C2=A0insertions(+) >=C2=A0 >=C2=A0diff=C2=A0--git=C2=A0a/math/= Makefile=C2=A0b/math/Makefile >=C2=A0 >=C2=A0index=C2=A044e78e22da9a..d= e329683fee5=C2=A0100644 >=C2=A0 >=C2=A0---=C2=A0a/math/Makefile >= =C2=A0 >=C2=A0+++=C2=A0b/math/Makefile >=C2=A0 >=C2=A0@@=C2=A0-487,6= =C2=A0+487,7=C2=A0@@ >=C2=A0 >=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0SUBDI= R=C2=A0+=3D=C2=A0m4rie >=C2=A0 >=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0SUB= DIR=C2=A0+=3D=C2=A0mate-calc >=C2=A0 >=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0SUBDIR=C2=A0+=3D=C2=A0math77 >=C2=A0 >=C2=A0+=C2=A0=C2=A0=C2= =A0=C2=A0SUBDIR=C2=A0+=3D=C2=A0mathex >=C2=A0 >=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0SUBDIR=C2=A0+=3D=C2=A0mathgl >=C2=A0 >=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0SUBDIR=C2=A0+=3D=C2=A0mathicsscript >=C2=A0 >= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0SUBDIR=C2=A0+=3D=C2=A0mathmod >=C2= =A0 >=C2=A0diff=C2=A0--git=C2=A0a/math/mathex/Makefile=C2=A0b/math/mathex= /Makefile >=C2=A0 >=C2=A0new=C2=A0file=C2=A0mode=C2=A0100644 >=C2= =A0 >=C2=A0index=C2=A0000000000000..3de5bbbd8e5a >=C2=A0 >=C2=A0---= =C2=A0/dev/null >=C2=A0 >=C2=A0+++=C2=A0b/math/mathex/Makefile >= =C2=A0 >=C2=A0@@=C2=A0-0,0=C2=A0+1,44=C2=A0@@ >=C2=A0 >=C2=A0+PORTNAM= E=3D=C2=A0=C2=A0=C2=A0=C2=A0mathex >=C2=A0 >=C2=A0+DISTVERSION=3D=C2= =A0=C2=A0=C2=A0=C2=A00.3-b >=C2=A0 >=C2=A0+CATEGORIES=3D=C2=A0=C2=A0= =C2=A0=C2=A0math=C2=A0science=C2=A0devel >=C2=A0 >=C2=A0+MASTER_SITES= =3D=C2=A0=C2=A0=C2=A0=C2=A0SF/sscilib/mathex >=C2=A0 >=C2=A0+ >=C2= =A0 >=C2=A0+MAINTAINER=3D=C2=A0=C2=A0=C2=A0=C2=A0thierry@FreeBSD.org >= =C2=A0 >=C2=A0+COMMENT=3D=C2=A0=C2=A0=C2=A0=C2=A0C++=C2=A0library=C2= =A0fo=C2=A0parse/evaluate=C2=A0mathematical=C2=A0expression >=C2=A0 >= =C2=A0+WWW=3D=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0https://sscili= b.sourceforge.net/ >=C2=A0 >=C2=A0+ >=C2=A0 >=C2=A0+LICENSE=3D= =C2=A0=C2=A0=C2=A0=C2=A0LGPL21 >=C2=A0 >=C2=A0+LICENSE_FILE=3D=C2=A0= =C2=A0=C2=A0=C2=A0${WRKSRC}/license.txt >=C2=A0 >=C2=A0+ >=C2=A0 >= =C2=A0+USES=3D=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0dos2unix= =C2=A0zip >=C2=A0 >=C2=A0+DOS2UNIX_FILES=3D=C2=A0=C2=A0=C2=A0=C2=A0make= file >=C2=A0 >=C2=A0+ >=C2=A0 >=C2=A0+WRKSRC=3D=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0${WRKDIR}/${PORTNAME} >=C2=A0 >=C2= =A0+MAKEFILE=3D=C2=A0=C2=A0=C2=A0=C2=A0makefile >=C2=A0 >=C2=A0+ALL_TAR= GET=3D=C2=A0=C2=A0=C2=A0=C2=A0${PORTNAME} >=C2=A0 >=C2=A0+USE_LDCONFIG= =3D=C2=A0=C2=A0=C2=A0=C2=A0yes >=C2=A0 >=C2=A0+ >=C2=A0 >=C2=A0+PLI= ST_FILES=3D=C2=A0=C2=A0=C2=A0=C2=A0${PREFIX}/include/mathex.h=C2=A0=C2= =A0=C2=A0=C2=A0\ >=C2=A0 >=C2=A0+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0${PREFIX}/lib/lib${PORTNAME}.so=C2=A0=C2=A0=C2=A0=C2=A0\ >= =C2=A0 >=C2=A0+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0${PREFIX}/= lib/lib${PORTNAME}.so.0 >=C2=A0 >=C2=A0+PLIST_FILES+=3D=C2=A0=C2=A0= =C2=A0=C2=A0${PROGS:C|^|${PREFIX}/bin/|} >=C2=A0 >=C2=A0+ >=C2=A0 >= =C2=A0+PROGS=3D=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0curvetest= =C2=A0inttest=C2=A0tabletest=C2=A0userfunctest >=C2=A0 >=C2=A0+ >= =C2=A0 >=C2=A0+OPTIONS_DEFINE=3D=C2=A0=C2=A0=C2=A0=C2=A0EXAMPLES >= =C2=A0 >=C2=A0+ >=C2=A0 >=C2=A0+post-build: >=C2=A0 >=C2=A0+= =C2=A0=C2=A0=C2=A0=C2=A0(cd=C2=A0${WRKSRC}=C2=A0&&=C2=A0=C2=A0=C2=A0=C2= =A0\ >=C2=A0 >=C2=A0+=C2=A0=C2=A0=C2=A0=C2=A0${CXX}=C2=A0${LDFLAGS}= =C2=A0-shared=C2=A0-o=C2=A0lib${PORTNAME}.so.0=C2=A0-Wl,-soname,lib${PORTNA= ME}.so.0=C2=A0${PORTNAME}.o) >=C2=A0 >=C2=A0+ >=C2=A0 >=C2=A0+do-in= stall: >=C2=A0 >=C2=A0+=C2=A0=C2=A0=C2=A0=C2=A0${INSTALL_DATA}=C2=A0${W= RKSRC}/mathex.h=C2=A0${STAGEDIR}${PREFIX}/include/ >=C2=A0 >=C2=A0+= =C2=A0=C2=A0=C2=A0=C2=A0${INSTALL_LIB}=C2=A0${WRKSRC}/lib${PORTNAME}.so.0= =C2=A0${STAGEDIR}${PREFIX}/lib/ >=C2=A0 >=C2=A0+=C2=A0=C2=A0=C2=A0= =C2=A0${LN}=C2=A0-s=C2=A0lib${PORTNAME}.so.0=C2=A0${STAGEDIR}${PREFIX}/lib/= lib${PORTNAME}.so >=C2=A0 >=C2=A0+ >=C2=A0 >=C2=A0+do-install-EXAMP= LES-on: >=C2=A0 >=C2=A0+.for=C2=A0p=C2=A0in=C2=A0${PROGS} >=C2=A0 >= =C2=A0+=C2=A0=C2=A0=C2=A0=C2=A0${INSTALL_PROGRAM}=C2=A0${WRKSRC}/${p}=C2= =A0${STAGEDIR}${PREFIX}/bin/ >=C2=A0 >=C2=A0+.endfor >=C2=A0 >= =C2=A0+ >=C2=A0 >=C2=A0+.include=C2=A0=C2=A0[http://bsd.po= rt.mk>]; >=C2=A0 >=C2=A0diff=C2=A0--git=C2=A0a/math/mathex/distinfo= =C2=A0b/math/mathex/distinfo >=C2=A0 >=C2=A0new=C2=A0file=C2=A0mode= =C2=A0100644 >=C2=A0 >=C2=A0index=C2=A0000000000000..0d63b2aaf216 >= =C2=A0 >=C2=A0---=C2=A0/dev/null >=C2=A0 >=C2=A0+++=C2=A0b/math/mathe= x/distinfo >=C2=A0 >=C2=A0@@=C2=A0-0,0=C2=A0+1,3=C2=A0@@ >=C2=A0 >= =C2=A0+TIMESTAMP=C2=A0=3D=C2=A01718957652 >=C2=A0 >=C2=A0+SHA256=C2= =A0(mathex-0.3-b.zip=C2=A0[http://mathex-0.3-b.zip])=C2=A0=3D=C2=A08b3ac4e7= 620e7ffe04deaae9562a37e1e1a375cf589eec06ee3e7a04ea5c9fcc >=C2=A0 >= =C2=A0+SIZE=C2=A0(mathex-0.3-b.zip=C2=A0[http://mathex-0.3-b.zip])=C2=A0=3D= =C2=A031441 >=C2=A0 >=C2=A0diff=C2=A0--git=C2=A0a/math/mathex/files/pat= ch-makefile=C2=A0b/math/mathex/files/patch-makefile >=C2=A0 >=C2=A0new= =C2=A0file=C2=A0mode=C2=A0100644 >=C2=A0 >=C2=A0index=C2=A0000000000000= ..714e89ccb09a >=C2=A0 >=C2=A0---=C2=A0/dev/null >=C2=A0 >=C2=A0+++= =C2=A0b/math/mathex/files/patch-makefile >=C2=A0 >=C2=A0@@=C2=A0-0,0= =C2=A0+1,22=C2=A0@@ >=C2=A0 >=C2=A0+---=C2=A0makefile.orig=C2=A0=C2= =A0=C2=A0=C2=A02024-06-21=C2=A008:45:06=C2=A0UTC >=C2=A0 >=C2=A0++++= =C2=A0makefile >=C2=A0 >=C2=A0+@@=C2=A0-78,9=C2=A0+78,9=C2=A0@@ >= =C2=A0 >=C2=A0+=C2=A0############################## >=C2=A0 >=C2= =A0+=C2=A0#=C2=A0=C2=A0current=C2=A0compiler=C2=A0settings=C2=A0# >=C2= =A0 >=C2=A0+=C2=A0############################## >=C2=A0 >=C2=A0+-CC= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D=C2=A0g++ >=C2=A0 >= =C2=A0+-CFLAGS=C2=A0=3D=C2=A0-Wall=C2=A0-ggdb=C2=A0-c=C2=A0-o >=C2=A0 >= =C2=A0+-LFLAGS=C2=A0=C2=A0=C2=A0=C2=A0=3D=C2=A0-ggdb=C2=A0-o >=C2=A0 >= =C2=A0++CC=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D=C2=A0${CXX}= >=C2=A0 >=C2=A0++CFLAGS=C2=A0+=3D=C2=A0-fPIC=C2=A0-c=C2=A0-o >=C2= =A0 >=C2=A0++LFLAGS=C2=A0=C2=A0=C2=A0=C2=A0=3D=C2=A0${LDFLAGS}=C2=A0-o = >=C2=A0 >=C2=A0+=C2=A0#=C2=A0for=C2=A0g++=C2=A0link=C2=A0=C2=A0as=C2= =A0C++.=C2=A0Thus,=C2=A0is=C2=A0not=C2=A0need=C2=A0to=C2=A0specify=C2=A0std= c++ >=C2=A0 >=C2=A0+=C2=A0#=C2=A0LIBS=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=3D=C2=A0-lm=C2=A0=C2=A0-lstdc++ >=C2=A0 >=C2=A0+=C2=A0LIBS=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D=C2=A0-lm >=C2=A0 >=C2=A0+@@=C2= =A0-162,4=C2=A0+162,4=C2=A0@@=C2=A0clear: >=C2=A0 >=C2=A0+=C2=A0clear:= >=C2=A0 >=C2=A0+=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0rm=C2=A0$(OBJECTS) >= =C2=A0 >=C2=A0+=C2=A0 >=C2=A0 >=C2=A0+-#=C2=A0end=C2=A0of=C2=A0makefi= le >=C2=A0 >=C2=A0+\=C2=A0No=C2=A0newline=C2=A0at=C2=A0end=C2=A0of= =C2=A0file >=C2=A0 >=C2=A0++#=C2=A0end=C2=A0of=C2=A0makefile >=C2= =A0 >=C2=A0diff=C2=A0--git=C2=A0a/math/mathex/pkg-descr=C2=A0b/math/mathe= x/pkg-descr >=C2=A0 >=C2=A0new=C2=A0file=C2=A0mode=C2=A0100644 >= =C2=A0 >=C2=A0index=C2=A0000000000000..5b11c45a3736 >=C2=A0 >=C2= =A0---=C2=A0/dev/null >=C2=A0 >=C2=A0+++=C2=A0b/math/mathex/pkg-descr= >=C2=A0 >=C2=A0@@=C2=A0-0,0=C2=A0+1,4=C2=A0@@ >=C2=A0 >=C2=A0+Math= Ex=C2=A0is=C2=A0a=C2=A0C++=C2=A0library=C2=A0to=C2=A0parse/evaluate=C2= =A0mathematical=C2=A0expression. >=C2=A0 >=C2=A0+ >=C2=A0 >=C2= =A0+It=C2=A0is=C2=A0part=C2=A0of=C2=A0the=C2=A0SSCILIB=C2=A0(Small=C2=A0Sci= entific=C2=A0Library),=C2=A0a=C2=A0collection=C2=A0of=C2=A0small >=C2= =A0 >=C2=A0+library=C2=A0package=C2=A0to=C2=A0help=C2=A0development=C2= =A0of=C2=A0scientific=C2=A0applications. A bit cleaner and likely sust= ainable solution would be to import the CMake build from Fedora/Macports = which would likely remove all the manual workarounds for upstream's Makef= ile. https://src.fedoraproject.org/rpms/mathex/blob/rawhide/f/CMakeLis= ts.txt https://github.com/macports/macports-ports/blob/master/math/mat= hex/files/CMakeLists.txt Best regards, Daniel --_=_swift_1718971980_b010cda8dad68453e55541d7565fcca0_=_ Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
On 2024-06-21T13:15:55.000+02:00, Thierry Thomas <thier= ry@FreeBSD.org> wrote:


The branch main has bee= n updated by thierry:


commit 125= 94e1aee7b17507b85b8a0ee762a678b3ff79e
Author: Thierry Tho= mas <th= ierry@FreeBSD.org>
AuthorDate: 2024-06-21 09:22:25 +00= 00
Commit: Thierry Thomas <thierry@FreeBSD.org>
=
CommitDate: 2024-06-21 11:15:52 +0000

= math/mathex: new port, C++ library to parse/evaluate mathematical expressi= ons

Remark: upstream seems inactive, b= ut MathEx is still used by Gmsh.
---
math/Make= file | 1 +
math/mathex/Makefile = | 44 ++++++++++++++++++++++++++++++++++++++++
math/mathe= x/distinfo | 3 +++
math/mathex/files/patch-make= file | 22 ++++++++++++++++++++
math/mathex/pkg-descr = | 4 ++++
5 files changed, 74 insertions(+)

diff --git a/math/Makefile b/math/Makefile
i= ndex 44e78e22da9a..de329683fee5 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -487,6 +487,7 @@
=
SUBDIR +=3D m4rie
SUBDIR +=3D mate-calc
SUBDIR +=3D math77
+ SUBDIR +=3D mathex
SUBDIR +=3D mathgl
SUBDIR +=3D mathicsscri= pt
SUBDIR +=3D mathmod
diff --git a/math/m= athex/Makefile b/math/mathex/Makefile
new file mode 100644
index 000000000000..3de5bbbd8e5a
--- /dev/null
+++ b/math/mathex/Makefile
@@ -0,0 +1,44 @@
+PORTNAME=3D=09mathex
+DISTVERSION=3D=090.3-b
+CATEGORIES=3D=09math science devel
+MASTER_SITES=3D= =09SF/sscilib/mathex
+
+MAINTAINER=3D=09thierry@FreeBSD.o= rg
+COMMENT=3D=09C++ library fo parse/evaluate mathematic= al expression
+WWW=3D=09=09https://sscilib.sourceforge.net/
+
+LICENSE=3D=09LGPL21
+LICENSE_FILE=3D= =09${WRKSRC}/license.txt
+
+USES=3D=09=09dos2un= ix zip
+DOS2UNIX_FILES=3D=09makefile
+
+WRKSRC=3D=09=09${WRKDIR}/${PORTNAME}
+MAKEFILE=3D=09ma= kefile
+ALL_TARGET=3D=09${PORTNAME}
+USE_LDCONF= IG=3D=09yes
+
+PLIST_FILES=3D=09${PREFIX}/inclu= de/mathex.h=09\
+=09=09${PREFIX}/lib/lib${PORTNAME}.so=09\
+=09=09${PREFIX}/lib/lib${PORTNAME}.so.0
+PLIST_F= ILES+=3D=09${PROGS:C|^|${PREFIX}/bin/|}
+
+PROG= S=3D=09=09curvetest inttest tabletest userfunctest
+
+OPTIONS_DEFINE=3D=09EXAMPLES
+
+post-bui= ld:
+=09(cd ${WRKSRC} &&=09\
+=09${CXX}= ${LDFLAGS} -shared -o lib${PORTNAME}.so.0 -Wl,-soname,lib${PORTNAME}.so.0 = ${PORTNAME}.o)
+
+do-install:
+= =09${INSTALL_DATA} ${WRKSRC}/mathex.h ${STAGEDIR}${PREFIX}/include/
+=09${INSTALL_LIB} ${WRKSRC}/lib${PORTNAME}.so.0 ${STAGEDIR}${PREFIX= }/lib/
+=09${LN} -s lib${PORTNAME}.so.0 ${STAGEDIR}${PREFIX}/= lib/lib${PORTNAME}.so
+
+do-install-EXAMPLES-on= :
+.for p in ${PROGS}
+=09${INSTALL_PROGRAM} ${= WRKSRC}/${p} ${STAGEDIR}${PREFIX}/bin/
+.endfor
+
diff --git a/math/mathex/distinfo= b/math/mathex/distinfo
new file mode 100644
in= dex 000000000000..0d63b2aaf216
--- /dev/null
++= + b/math/mathex/distinfo
@@ -0,0 +1,3 @@
+TIMES= TAMP =3D 1718957652
+SHA256 (mathex-0.3-b.zip) =3D 8b3ac4e7620e7ffe04deaae956= 2a37e1e1a375cf589eec06ee3e7a04ea5c9fcc
+SIZE (mathex-0.3-b.zip) =3D 31441
=
diff --git a/math/mathex/files/patch-makefile b/math/mathex/file= s/patch-makefile
new file mode 100644
index 000= 000000000..714e89ccb09a
--- /dev/null
+++ b/mat= h/mathex/files/patch-makefile
@@ -0,0 +1,22 @@
= +--- makefile.orig=092024-06-21 08:45:06 UTC
++++ makefile
+@@ -78,9 +78,9 @@
+ ############################= ##
+ # current compiler settings #
+ #########= #####################
+-CC =3D g++
+-CFL= AGS =3D -Wall -ggdb -c -o
+-LFLAGS =3D -ggdb -o
<= div>++CC =3D ${CXX}
++CFLAGS +=3D -fPIC -c -o
++LFLAGS =3D ${LDFLAGS} -o
+ # for g++ link as C++.= Thus, is not need to specify stdc++
+ # LIBS =3D -lm -= lstdc++
+ LIBS =3D -lm
+@@ -162,4 +162,4 @= @ clear:
+ clear:
+ =09rm $(OBJECTS)
<= div>+
+-# end of makefile
+\ No newline at end= of file
++# end of makefile
diff --git a/math/= mathex/pkg-descr b/math/mathex/pkg-descr
new file mode 100644=
index 000000000000..5b11c45a3736
--- /dev/null=
+++ b/math/mathex/pkg-descr
@@ -0,0 +1,4 @@
+MathEx is a C++ library to parse/evaluate mathematical express= ion.
+
+It is part of the SSCILIB (Small Scient= ific Library), a collection of small
+library package to help= development of scientific applications.
=
A bit cleaner and likely sustainable solution would be to import the C= Make build from Fedora/Macports which would likely remove all the manual wo= rkarounds for upstream's Makefile.