commit:     8fa89b6ebad782f2b0c15292f509a7c5154ef622
Author:     Andrey Grozin <grozin <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 29 12:11:39 2025 +0000
Commit:     Andrey Grozin <grozin <AT> gentoo <DOT> org>
CommitDate: Tue Apr 29 12:11:39 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8fa89b6e

sci-libs/cln: bump to 1.3.7

Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>

 sci-libs/cln/Manifest         |  1 +
 sci-libs/cln/cln-1.3.7.ebuild | 60 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 61 insertions(+)

diff --git a/sci-libs/cln/Manifest b/sci-libs/cln/Manifest
index 67d39b02d571..869a63419119 100644
--- a/sci-libs/cln/Manifest
+++ b/sci-libs/cln/Manifest
@@ -1 +1,2 @@
 DIST cln-1.3.6.tar.bz2 1330815 BLAKE2B 
89ddd0079ac746b262dac01ae0fc1ceb250956c530883d93430e62866e09fdd964c4f96edb21260f9aa40f739450996e1bf21503a30cc02fffaba08a1bd45264
 SHA512 
a32a1449c5f0edac1444e58f500ef1a72ffab8dad65125082eff0995cc9855b45f38b89c7f754e3d4487756a8cd3f7db1e534865b8d0384fd28246f444ed7d14
+DIST cln-1.3.7.tar.bz2 1337235 BLAKE2B 
92a3b18ca7d9b87c1e51840ec3f58ca2ae28f012ab3a92707970698900a5efbbe1c2aca107983eff49d8d8892a5a0ec97db8dbdef9543789fb6084d13fe06848
 SHA512 
39abfae41504030cce16d0ed0547eafaa9a819f1225289d262cdd8e50d9af5bdb695d6e5a7f4b3577af29bedaf2e31700655b07a624b4232aecf8d795f697a1b

diff --git a/sci-libs/cln/cln-1.3.7.ebuild b/sci-libs/cln/cln-1.3.7.ebuild
new file mode 100644
index 000000000000..9efc54887a82
--- /dev/null
+++ b/sci-libs/cln/cln-1.3.7.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic
+
+DESCRIPTION="Class library (C++) for numbers"
+HOMEPAGE="https://www.ginac.de/CLN/";
+SRC_URI="https://www.ginac.de/CLN/${P}.tar.bz2";
+
+LICENSE="GPL-2"
+SLOT="1"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 
~amd64-linux ~x86-linux"
+IUSE="doc examples"
+
+RDEPEND="dev-libs/gmp:0="
+DEPEND="${RDEPEND}
+       doc? ( virtual/latex-base )"
+
+pkg_setup() {
+       use sparc && append-cppflags -DNO_ASM
+       use hppa && append-cppflags -DNO_ASM
+       use arm && append-cppflags -DNO_ASM
+}
+
+src_prepare() {
+       default
+       # avoid building examples
+       # do it in Makefile.in to avoid time consuming eautoreconf
+       sed -i \
+               -e '/^SUBDIRS.*=/s/examples doc benchmarks/doc/' \
+               Makefile.in || die
+}
+
+src_configure() {
+       econf --disable-static
+}
+
+src_compile() {
+       default
+       if use doc; then
+               pushd doc > /dev/null
+               export VARTEXFONTS="${T}/fonts"
+               emake html pdf
+               DOCS=( doc/cln.pdf )
+               HTML_DOCS=( doc/cln.html )
+       fi
+}
+
+src_install() {
+       default
+       if use examples; then
+               docompress -x /usr/share/doc/${PF}/examples
+               docinto examples
+               dodoc examples/*.cc
+       fi
+
+       find "${ED}" -name '*.la' -delete || die
+}

Reply via email to