Re: git: 12594e1aee7b - main - math/mathex: new port, C++ library to parse/evaluate mathematical expressions

From: Daniel Engberg <daniel.engberg.lists_at_pyret.net>
Date: Fri, 21 Jun 2024 13:42:24 UTC
On 2024-06-21T14:19:12.000+02:00, Thierry Thomas <thierry@freebsd.org>
wrote:

> Le ven. 21 juin 24 à 14:13:00 +0200, Daniel Engberg <daniel.engberg.lists@pyret.net>
> 
>  écrivait :
> 
>>  A bit cleaner and likely sustainable solution would be to import
>>  the
>>  
>>   CMake build from Fedora/Macports which would likely remove all
>>  the
>>  
>>   manual workarounds for upstream's Makefile.
>>  
>>   https://src.fedoraproject.org/rpms/mathex/blob/rawhide/f/CMakeLists.txt
>>  
>>   https://github.com/macports/macports-ports/blob/master/math/mathex/files/CMakeLists.txt
> 
> Well, cmake is rather heavy, and it seems over-engineering to use it
> for
> 
> such a small library!
> 
> -- 
> 
> Th. Thomas.

The only consumer (not linked?) uses CMake too so I don't see that
much of a concern? 

Here's a poc with prefix(ed) examples,matching comment (there a typo)
and pkg-descr (slightly altered).

Plist is also fixed when EXAMPLES are disabled (needs to be patched
either way).

https://projects.pyret.net/files/freebsd-patches/mathex-cmake.patch

Best regards,

Daniel