1 |
commit: 4d80064d59ae61450eec11a32f3882a3835395bf |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Apr 24 08:59:35 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 24 08:59:35 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d80064d |
7 |
|
8 |
sci-libs/metis: [QA] Do not install static library |
9 |
|
10 |
* as per policy |
11 |
https://projects.gentoo.org/qa/policy-guide/installed-files.html?highlight=static#pg0302# |
12 |
* for more context: |
13 |
https://flameeyes.blog/2011/08/29/useless-flag-static-libs/ |
14 |
https://archives.gentoo.org/gentoo-dev/message/2dada80c2b9c85b0e83e6328428bf8ab |
15 |
|
16 |
Closes: https://github.com/gentoo/gentoo/pull/15490 |
17 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
18 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
19 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
20 |
|
21 |
.../metis/files/metis-5.1.0-remove-GKlib-O3.patch | 11 ++++ |
22 |
sci-libs/metis/metis-4.0.3-r2.ebuild | 39 +++++++++++++ |
23 |
sci-libs/metis/metis-5.1.0-r4.ebuild | 64 ++++++++++++++++++++++ |
24 |
3 files changed, 114 insertions(+) |
25 |
|
26 |
diff --git a/sci-libs/metis/files/metis-5.1.0-remove-GKlib-O3.patch b/sci-libs/metis/files/metis-5.1.0-remove-GKlib-O3.patch |
27 |
new file mode 100644 |
28 |
index 00000000000..507395867fc |
29 |
--- /dev/null |
30 |
+++ b/sci-libs/metis/files/metis-5.1.0-remove-GKlib-O3.patch |
31 |
@@ -0,0 +1,11 @@ |
32 |
+--- a/GKlib/GKlibSystem.cmake |
33 |
++++ b/GKlib/GKlibSystem.cmake |
34 |
+@@ -20,7 +20,7 @@ |
35 |
+ elseif(MINGW) |
36 |
+ set(GKlib_COPTS "-DUSE_GKREGEX") |
37 |
+ else() |
38 |
+- set(GKlib_COPTS "-O3") |
39 |
++ set(GKlib_COPTS "") |
40 |
+ set(GKlib_COPTIONS "-DLINUX -D_FILE_OFFSET_BITS=64") |
41 |
+ endif(MSVC) |
42 |
+ if(CYGWIN) |
43 |
|
44 |
diff --git a/sci-libs/metis/metis-4.0.3-r2.ebuild b/sci-libs/metis/metis-4.0.3-r2.ebuild |
45 |
new file mode 100644 |
46 |
index 00000000000..ca26fa871dc |
47 |
--- /dev/null |
48 |
+++ b/sci-libs/metis/metis-4.0.3-r2.ebuild |
49 |
@@ -0,0 +1,39 @@ |
50 |
+# Copyright 1999-2020 Gentoo Authors |
51 |
+# Distributed under the terms of the GNU General Public License v2 |
52 |
+ |
53 |
+EAPI=7 |
54 |
+ |
55 |
+inherit autotools fortran-2 |
56 |
+ |
57 |
+DESCRIPTION="A package for unstructured serial graph partitioning" |
58 |
+HOMEPAGE="http://www-users.cs.umn.edu/~karypis/metis/metis/" |
59 |
+SRC_URI="http://glaros.dtc.umn.edu/gkhome/fetch/sw/${PN}/OLD/${P}.tar.gz" |
60 |
+ |
61 |
+LICENSE="all-rights-reserved" |
62 |
+SLOT="0" |
63 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
64 |
+IUSE="doc" |
65 |
+RESTRICT="mirror bindist" |
66 |
+ |
67 |
+RDEPEND="!sci-libs/parmetis" |
68 |
+ |
69 |
+PATCHES=( "${FILESDIR}"/${PN}-4.0.1-autotools.patch ) |
70 |
+ |
71 |
+src_prepare() { |
72 |
+ default |
73 |
+ sed -i -e "s/4.0.1/${PV}/" configure.ac || die |
74 |
+ |
75 |
+ eautoreconf |
76 |
+} |
77 |
+ |
78 |
+src_configure() { |
79 |
+ econf --disable-static |
80 |
+} |
81 |
+ |
82 |
+src_install() { |
83 |
+ default |
84 |
+ use doc && dodoc Doc/manual.ps |
85 |
+ |
86 |
+ # no static archives |
87 |
+ find "${D}" -name '*.la' -delete || die |
88 |
+} |
89 |
|
90 |
diff --git a/sci-libs/metis/metis-5.1.0-r4.ebuild b/sci-libs/metis/metis-5.1.0-r4.ebuild |
91 |
new file mode 100644 |
92 |
index 00000000000..5f62daa4aff |
93 |
--- /dev/null |
94 |
+++ b/sci-libs/metis/metis-5.1.0-r4.ebuild |
95 |
@@ -0,0 +1,64 @@ |
96 |
+# Copyright 1999-2020 Gentoo Authors |
97 |
+# Distributed under the terms of the GNU General Public License v2 |
98 |
+ |
99 |
+EAPI=7 |
100 |
+ |
101 |
+inherit cmake fortran-2 |
102 |
+ |
103 |
+DESCRIPTION="A package for unstructured serial graph partitioning" |
104 |
+HOMEPAGE="http://www-users.cs.umn.edu/~karypis/metis/metis/" |
105 |
+SRC_URI="http://glaros.dtc.umn.edu/gkhome/fetch/sw/${PN}/${P}.tar.gz" |
106 |
+ |
107 |
+LICENSE="Apache-2.0" |
108 |
+SLOT="0" |
109 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
110 |
+IUSE="doc openmp" |
111 |
+ |
112 |
+RDEPEND="!sci-libs/parmetis" |
113 |
+ |
114 |
+PATCHES=( |
115 |
+ "${FILESDIR}"/${P}-datatype.patch |
116 |
+ "${FILESDIR}"/${P}-shared-GKlib.patch |
117 |
+ "${FILESDIR}"/${P}-multilib.patch |
118 |
+ "${FILESDIR}"/${P}-remove-GKlib-O3.patch |
119 |
+) |
120 |
+ |
121 |
+src_configure() { |
122 |
+ local mycmakeargs=( |
123 |
+ -DGKLIB_PATH="${S}"/GKlib |
124 |
+ -DSHARED=yes |
125 |
+ -DOPENMP=$(usex openmp) |
126 |
+ ) |
127 |
+ cmake_src_configure |
128 |
+} |
129 |
+ |
130 |
+src_test() { |
131 |
+ cd graphs || die |
132 |
+ local PATH="${BUILD_DIR}"/programs/:${PATH} |
133 |
+ |
134 |
+ ndmetis mdual.graph || die |
135 |
+ mpmetis metis.mesh 2 || die |
136 |
+ gpmetis test.mgraph 4 || die |
137 |
+ gpmetis copter2.graph 4 || die |
138 |
+ graphchk 4elt.graph || die |
139 |
+} |
140 |
+ |
141 |
+src_install() { |
142 |
+ cmake_src_install |
143 |
+ dodoc manual/manual.pdf |
144 |
+ |
145 |
+ cat >> "${T}"/metis.pc <<- EOF || die |
146 |
+ prefix=${EPREFIX}/usr |
147 |
+ exec_prefix=\${prefix} |
148 |
+ libdir=\${exec_prefix}/$(get_libdir) |
149 |
+ includedir=\${prefix}/include |
150 |
+ |
151 |
+ Name: METIS |
152 |
+ Description: Software for partioning unstructured graphes and meshes |
153 |
+ Version: ${PV} |
154 |
+ Cflags: -I\${includedir}/metis |
155 |
+ Libs: -L\${libdir} -lmetis |
156 |
+ EOF |
157 |
+ insinto /usr/$(get_libdir)/pkgconfig |
158 |
+ doins "${T}"/metis.pc |
159 |
+} |