1 |
commit: 98f0eec28d0c0751ae67afe4f5e2c8cceca21c42 |
2 |
Author: Jakov Smolić <jsmolic <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 5 09:08:38 2021 +0000 |
4 |
Commit: Jakov Smolić <jsmolic <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 5 09:16:31 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98f0eec2 |
7 |
|
8 |
sci-libs/lmfit: add 9.0 |
9 |
|
10 |
Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org> |
11 |
|
12 |
sci-libs/lmfit/Manifest | 1 + |
13 |
sci-libs/lmfit/files/lmfit-9.0-cmake.patch | 50 ++++++++++++++++++++++++++++++ |
14 |
sci-libs/lmfit/lmfit-9.0.ebuild | 20 ++++++++++++ |
15 |
3 files changed, 71 insertions(+) |
16 |
|
17 |
diff --git a/sci-libs/lmfit/Manifest b/sci-libs/lmfit/Manifest |
18 |
index ba6266162ad..72792614058 100644 |
19 |
--- a/sci-libs/lmfit/Manifest |
20 |
+++ b/sci-libs/lmfit/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST lmfit-8.2.2.tgz 31970 BLAKE2B 67eebc0e58d3d78057afcd84f35adcfea783c8501a5f8934dd07c38eb2419b1c43bedd3401a830a993005913138bdf8d1dc73c2142983b9f881f0db9bec06b93 SHA512 5835dce914027429cb36765543cf6b872e4ef1acd8feaeca281f9edf286fda89db78fbc0713dcfea4e4f2fe55a1b05317e6428980060bc3acce579ef1fa0c271 |
23 |
+DIST lmfit-9.0.tar.gz 36686 BLAKE2B 34d77a9101dcea1387df09e58cf8b69e51b1961ba8f1f73ac070abcc4c6ddbf1a1cd1f4bf2568942442f0c4c3815288959259c16e505ad1a91a4db2a2753bed6 SHA512 523d18c75498f5586c55e6dfcab8d1005aaef61d60e8d482814ced4f90bcd14d72c53ee71ed1991651d38845cce67e3da756fab9500431d6f435fa5ad998c2b1 |
24 |
|
25 |
diff --git a/sci-libs/lmfit/files/lmfit-9.0-cmake.patch b/sci-libs/lmfit/files/lmfit-9.0-cmake.patch |
26 |
new file mode 100644 |
27 |
index 00000000000..0c3270052cb |
28 |
--- /dev/null |
29 |
+++ b/sci-libs/lmfit/files/lmfit-9.0-cmake.patch |
30 |
@@ -0,0 +1,50 @@ |
31 |
+--- a/CMakeLists.txt |
32 |
++++ b/CMakeLists.txt |
33 |
+@@ -52,9 +52,10 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) |
34 |
+ set(destination ${CMAKE_INSTALL_PREFIX}) |
35 |
+ configure_file("lmfit.pc.in" "lmfit.pc" @ONLY) |
36 |
+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/lmfit.pc" |
37 |
+- DESTINATION "${destination}/lib/pkgconfig/") |
38 |
++ DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig/") |
39 |
+ |
40 |
+ include(CTest) |
41 |
++include(GNUInstallDirs) |
42 |
+ |
43 |
+ add_subdirectory(lib) |
44 |
+ add_subdirectory(demo) |
45 |
+--- a/lib/CMakeLists.txt |
46 |
++++ b/lib/CMakeLists.txt |
47 |
+@@ -19,13 +19,13 @@ link_libm(${lib}) |
48 |
+ |
49 |
+ install( |
50 |
+ TARGETS ${lib} |
51 |
+- LIBRARY DESTINATION ${destination}/lib |
52 |
+- RUNTIME DESTINATION ${destination}/lib |
53 |
+- ARCHIVE DESTINATION ${destination}/lib |
54 |
++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/lib |
55 |
++ RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}/lib |
56 |
++ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/lib |
57 |
+ COMPONENT Libraries) |
58 |
+ install( |
59 |
+ FILES ${inc_files} |
60 |
+- DESTINATION ${destination}/include |
61 |
++ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/include |
62 |
+ COMPONENT Headers) |
63 |
+ |
64 |
+ if(WIN32) |
65 |
+--- a/man/CMakeLists.txt |
66 |
++++ b/man/CMakeLists.txt |
67 |
+@@ -15,11 +15,11 @@ function(one_page pname section) |
68 |
+ ) |
69 |
+ install( |
70 |
+ FILES ${CMAKE_CURRENT_BINARY_DIR}/${pname}.${section} |
71 |
+- DESTINATION "${CMAKE_INSTALL_PREFIX}/share/man/man${section}" |
72 |
++ DESTINATION "${CMAKE_INSTALL_MANDIR}/man${section}" |
73 |
+ ) |
74 |
+ install( |
75 |
+ FILES ${CMAKE_CURRENT_BINARY_DIR}/${pname}.html |
76 |
+- DESTINATION "${CMAKE_INSTALL_PREFIX}/share/doc/lmfit/html" |
77 |
++ DESTINATION "${CMAKE_INSTALL_DOCDIR}/html" |
78 |
+ ) |
79 |
+ endfunction() |
80 |
+ |
81 |
|
82 |
diff --git a/sci-libs/lmfit/lmfit-9.0.ebuild b/sci-libs/lmfit/lmfit-9.0.ebuild |
83 |
new file mode 100644 |
84 |
index 00000000000..919ba7d7e77 |
85 |
--- /dev/null |
86 |
+++ b/sci-libs/lmfit/lmfit-9.0.ebuild |
87 |
@@ -0,0 +1,20 @@ |
88 |
+# Copyright 1999-2021 Gentoo Authors |
89 |
+# Distributed under the terms of the GNU General Public License v2 |
90 |
+ |
91 |
+EAPI=8 |
92 |
+ |
93 |
+inherit cmake |
94 |
+ |
95 |
+MY_P="${PN}-v${PV}" |
96 |
+DESCRIPTION="library for Levenberg-Marquardt least-squares minimization and curve fitting" |
97 |
+HOMEPAGE="https://jugit.fz-juelich.de/mlz/lmfit" |
98 |
+SRC_URI="https://jugit.fz-juelich.de/mlz/lmfit/-/archive/v${PV}/${MY_P}.tar.gz -> ${P}.tar.gz" |
99 |
+S="${WORKDIR}/${MY_P}" |
100 |
+ |
101 |
+LICENSE="BSD-2" |
102 |
+SLOT="0" |
103 |
+KEYWORDS="~amd64 ~arm ~x86" |
104 |
+ |
105 |
+PATCHES=( |
106 |
+ "${FILESDIR}"/${P}-cmake.patch |
107 |
+) |