public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/alglib/, sci-libs/alglib/files/
@ 2018-09-15  2:31 Andreas Sturmlechner
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Sturmlechner @ 2018-09-15  2:31 UTC (permalink / raw
  To: gentoo-commits

commit:     8c8a721d03d422f634eb0442e92da6a2a9ef58ba
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 14 18:30:37 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Sep 15 02:30:29 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c8a721d

sci-libs/alglib: Drop 3.8.2-r1

Package-Manager: Portage-2.3.49, Repoman-2.3.10

 sci-libs/alglib/Manifest               |  1 -
 sci-libs/alglib/alglib-3.8.2-r1.ebuild | 27 ---------------------------
 sci-libs/alglib/files/CMakeLists.txt   | 32 --------------------------------
 3 files changed, 60 deletions(-)

diff --git a/sci-libs/alglib/Manifest b/sci-libs/alglib/Manifest
index 216674af28c..acfb3c58921 100644
--- a/sci-libs/alglib/Manifest
+++ b/sci-libs/alglib/Manifest
@@ -1,2 +1 @@
 DIST alglib-3.10.0.cpp.gpl.tgz 1991101 BLAKE2B 884b80becce676285b7bc1f26ed8917c4c82f53b41c0350dfc8bff6573e2e6f12183e82fc317b54a8021b1f931eb7d5b55944902d0816f7097fdc05632128bdc SHA512 f02b3db5ab8dee841f27186b6693997c4e6876e75310b0a31a04593dbcb41d300920404e32e7aecb39c8dd15e54cfee05b725caa27397a67b453f6e64cd1ef5e
-DIST alglib-3.8.2.cpp.tgz 1674260 BLAKE2B 85379da805abe27b86025bddafab775fbcb132b74db07abb204c6677b4fe75bd392d2bacb01b26510e1a6f1086b062902f598c9f13892b46e3dca938e73d1ea7 SHA512 3d7b6e3b5a29f25aee476bdd69e583d7504a2e06d390822b4aa2792eeb500e08c13477176be348a9dd560bad358e423465c9086f0c7c12f73dc88024364aed50

diff --git a/sci-libs/alglib/alglib-3.8.2-r1.ebuild b/sci-libs/alglib/alglib-3.8.2-r1.ebuild
deleted file mode 100644
index 6e725a2cd3d..00000000000
--- a/sci-libs/alglib/alglib-3.8.2-r1.ebuild
+++ /dev/null
@@ -1,27 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit cmake-utils
-
-DESCRIPTION="Numerical analysis and data processing library"
-HOMEPAGE="http://www.alglib.net/"
-SRC_URI="http://www.alglib.net/translator/re/${P}.cpp.tgz"
-
-SLOT="0/3.7"
-LICENSE="GPL-2+"
-KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
-IUSE="test"
-
-S="${WORKDIR}"/cpp/
-
-src_prepare() {
-	cp "${FILESDIR}"/CMakeLists.txt-${PV} CMakeLists.txt || die
-	cmake-utils_src_prepare
-}
-
-src_configure() {
-	local mycmakeargs=( $(cmake-utils_use_build test) )
-	cmake-utils_src_configure
-}

diff --git a/sci-libs/alglib/files/CMakeLists.txt b/sci-libs/alglib/files/CMakeLists.txt
deleted file mode 100644
index 6455423b0fe..00000000000
--- a/sci-libs/alglib/files/CMakeLists.txt
+++ /dev/null
@@ -1,32 +0,0 @@
-project(alglib CXX)
-cmake_minimum_required(VERSION 2.8)
-
-INCLUDE(GNUInstallDirs)
-INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src)
-SET(VERSION 3.7.0)
-SET(SOVERSION 3.7)
-
-FILE(GLOB ALGLIB_SRC_LIB "src/*.cpp")
-FILE(GLOB ALGLIB_HDR_LIB "src/*.h")
-
-ADD_LIBRARY(alglib SHARED ${ALGLIB_SRC_LIB})
-SET_TARGET_PROPERTIES(alglib PROPERTIES 
-  VERSION ${VERSION}
-  SOVERSION ${SOVERSION})
-
-INSTALL(TARGETS alglib DESTINATION ${CMAKE_INSTALL_LIBDIR}/)
-INSTALL(FILES ${ALGLIB_HDR_LIB} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
-
-#===========================================================
-ADD_EXECUTABLE(test_c tests/test_c.cpp)
-TARGET_LINK_LIBRARIES(test_c alglib)
-#INSTALL(TARGETS test_c DESTINATION ${CMAKE_INSTALL_BINDIR}/)
-#===========================================================
-ADD_EXECUTABLE(test_i tests/test_i.cpp)
-TARGET_LINK_LIBRARIES(test_i alglib)
-#INSTALL(TARGETS test_i DESTINATION ${CMAKE_INSTALL_BINDIR}/)
-#===========================================================
-
-enable_testing()
-add_test( test_c ${CMAKE_BUILD_DIR}/test_c)
-add_test( test_i ${CMAKE_BUILD_DIR}/test_i)


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sci-libs/alglib/, sci-libs/alglib/files/
@ 2025-09-30  4:53 Andreas Sturmlechner
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Sturmlechner @ 2025-09-30  4:53 UTC (permalink / raw
  To: gentoo-commits

commit:     11e9156df52334ff9ffa97bc8aac0457bcbf2112
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 29 16:53:46 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue Sep 30 04:53:08 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11e9156d

sci-libs/alglib: add 3.20.0, bump EAPI 7 -> 8, fix build w/ cmake-4

This bump is moving headers into an alglib subdir.

I did not find any Changelogs available so even though 4.05.0 is available,
last version <4 is as high as I am willing to go to keep this in ::gentoo.

CMakelists.txt improvements over 3.8.2:
- Use Fedora CMakeLists.txt as template, bump to 3.10 min req ver
- Make PROJECT_VERSION and SOVERSION configurable as cmake arguments
- Use BUILD_TESTING standard CTest switch

Closes: https://bugs.gentoo.org/957965
Closes: https://bugs.gentoo.org/957966
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 sci-libs/alglib/Manifest                    |  1 +
 sci-libs/alglib/alglib-3.20.0.ebuild        | 38 +++++++++++++++++++++++
 sci-libs/alglib/files/CMakeLists.txt-3.20.0 | 47 +++++++++++++++++++++++++++++
 3 files changed, 86 insertions(+)

diff --git a/sci-libs/alglib/Manifest b/sci-libs/alglib/Manifest
index 7b791354efa4..e8e789134217 100644
--- a/sci-libs/alglib/Manifest
+++ b/sci-libs/alglib/Manifest
@@ -1 +1,2 @@
 DIST alglib-3.17.0.cpp.gpl.tgz 3065026 BLAKE2B bc939568a6bfb5e2717995e31b9d7cb485885217ff8d15c2bea3185b1ef62536766f80e02d43999c016e24b10181bddd4ad4ff27611ab19ebcc778a5cb15d55e SHA512 0e4b943b03707950813aea707ae3569ce75a22216c9a4b256b646db16609995b3b63a958b0b8fbe3d7d623d5ac03efbe7c4b1589961f2ca9cdefbd7e1cc0c721
+DIST alglib-3.20.0.cpp.gpl.tgz 3325551 BLAKE2B bfc62cada202ed6becfd01a62cd6e9b46f500e0e4670e30422581880b825cdf3fcdc1b4b3197c0ce3a5a28c580eab83889b0c70769a38a78d9ed7e116e7cd013 SHA512 badd8789ab561d3345d7b3d75aa95732f5d0e1e44125ee4d8c2b3f89ef2ec44137206b9e869a89daeafd1e1f8efbd8240ad1cbde7ba8002748de9d8f525b970e

diff --git a/sci-libs/alglib/alglib-3.20.0.ebuild b/sci-libs/alglib/alglib-3.20.0.ebuild
new file mode 100644
index 000000000000..c5db3fb1f9a4
--- /dev/null
+++ b/sci-libs/alglib/alglib-3.20.0.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ALGLIB_SOVER=$(ver_cut 1-2)
+inherit cmake flag-o-matic
+
+DESCRIPTION="Numerical analysis and data processing library"
+HOMEPAGE="https://www.alglib.net/"
+SRC_URI="https://www.alglib.net/translator/re/${P}.cpp.gpl.tgz"
+S="${WORKDIR}"/${PN}-cpp
+
+LICENSE="GPL-2+"
+SLOT="0/${ALGLIB_SOVER}"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+src_prepare() {
+	cp "${FILESDIR}"/CMakeLists.txt-3.20.0 CMakeLists.txt || die
+	cmake_src_prepare
+}
+
+src_configure() {
+	# bug #862666
+	append-flags -fno-strict-aliasing
+	filter-lto
+
+	use x86 && append-cflags -ffloat-store
+
+	local mycmakeargs=(
+		-DALGLIB_VERSION=${PV}
+		-DALGLIB_SOVERSION=${ALGLIB_SOVER}
+		-DBUILD_TESTING=$(usex test)
+	)
+	cmake_src_configure
+}

diff --git a/sci-libs/alglib/files/CMakeLists.txt-3.20.0 b/sci-libs/alglib/files/CMakeLists.txt-3.20.0
new file mode 100644
index 000000000000..cc5ebb1f8993
--- /dev/null
+++ b/sci-libs/alglib/files/CMakeLists.txt-3.20.0
@@ -0,0 +1,47 @@
+cmake_minimum_required(VERSION 3.10)
+
+# Based on: https://src.fedoraproject.org/rpms/alglib/blob/rawhide/f/CMakeLists.txt
+
+set(ALGLIB_VERSION "" CACHE STRING "Package version")
+set(ALGLIB_SOVERSION "" CACHE STRING "Shared library target ABI version")
+
+project(alglib
+    VERSION ${ALGLIB_VERSION}
+    LANGUAGES CXX
+)
+
+include(GNUInstallDirs)
+include(CTest)
+
+file(GLOB_RECURSE HDR RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} src/*.h)
+file(GLOB_RECURSE SRC RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} src/*.cpp)
+
+add_library(alglib SHARED ${SRC})
+set_target_properties(alglib PROPERTIES
+    SOVERSION ${ALGLIB_SOVERSION}
+    VERSION ${PROJECT_VERSION}
+)
+target_include_directories(alglib PUBLIC
+    $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
+)
+
+install(TARGETS alglib)
+install(FILES ${HDR} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alglib)
+
+if (BUILD_TESTING)
+    foreach(test IN ITEMS
+        test_c
+        test_i
+        # test_x
+    )
+        add_executable(${test} tests/${test}.cpp)
+        target_compile_definitions(${test} PRIVATE
+            AE_USE_ALLOC_COUNTER
+            AE_DEBUG4POSIX
+        )
+        target_link_libraries(${test} PRIVATE alglib)
+        add_test(NAME ${test}
+            COMMAND ${test}
+        )
+    endforeach()
+endif()


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sci-libs/alglib/, sci-libs/alglib/files/
@ 2025-10-05 17:45 Andreas Sturmlechner
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Sturmlechner @ 2025-10-05 17:45 UTC (permalink / raw
  To: gentoo-commits

commit:     2fd36a34908a2550a6ce43da4c374b14051cb08f
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Oct  5 13:38:24 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Oct  5 17:44:05 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fd36a34

sci-libs/alglib: Raise cmake_minimum_required to 3.31

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 sci-libs/alglib/alglib-3.20.0.ebuild        | 2 ++
 sci-libs/alglib/files/CMakeLists.txt-3.20.0 | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/sci-libs/alglib/alglib-3.20.0.ebuild b/sci-libs/alglib/alglib-3.20.0.ebuild
index c5db3fb1f9a4..37ab04d69a7c 100644
--- a/sci-libs/alglib/alglib-3.20.0.ebuild
+++ b/sci-libs/alglib/alglib-3.20.0.ebuild
@@ -17,6 +17,8 @@ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
 IUSE="test"
 RESTRICT="!test? ( test )"
 
+BDEPEND=">=dev-build/cmake-3.31"
+
 src_prepare() {
 	cp "${FILESDIR}"/CMakeLists.txt-3.20.0 CMakeLists.txt || die
 	cmake_src_prepare

diff --git a/sci-libs/alglib/files/CMakeLists.txt-3.20.0 b/sci-libs/alglib/files/CMakeLists.txt-3.20.0
index cc5ebb1f8993..6435fd57b1f3 100644
--- a/sci-libs/alglib/files/CMakeLists.txt-3.20.0
+++ b/sci-libs/alglib/files/CMakeLists.txt-3.20.0
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.10)
+cmake_minimum_required(VERSION 3.31)
 
 # Based on: https://src.fedoraproject.org/rpms/alglib/blob/rawhide/f/CMakeLists.txt
 


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-10-05 17:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-30  4:53 [gentoo-commits] repo/gentoo:master commit in: sci-libs/alglib/, sci-libs/alglib/files/ Andreas Sturmlechner
  -- strict thread matches above, loose matches on Subject: below --
2025-10-05 17:45 Andreas Sturmlechner
2018-09-15  2:31 Andreas Sturmlechner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox