From: "Nicolas Bock" <nicolasbock@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/metis/
Date: Fri, 24 Mar 2017 12:05:16 +0000 (UTC) [thread overview]
Message-ID: <1490357108.e99c14e46d97c43d73bcb4d289fc00e080ab2b27.nicolasbock@gentoo> (raw)
commit: e99c14e46d97c43d73bcb4d289fc00e080ab2b27
Author: Nicolas Bock <nicolasbock <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 24 12:04:40 2017 +0000
Commit: Nicolas Bock <nicolasbock <AT> gentoo <DOT> org>
CommitDate: Fri Mar 24 12:05:08 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e99c14e4
sci-libs/metis: Fix static library build
The `static-libs` USE flag was not used and static libraries could not be
built.
Package-Manager: Portage-2.3.3, Repoman-2.3.1
sci-libs/metis/metis-5.1.0-r3.ebuild | 72 ++++++++++++++++++++++++++++++++++++
1 file changed, 72 insertions(+)
diff --git a/sci-libs/metis/metis-5.1.0-r3.ebuild b/sci-libs/metis/metis-5.1.0-r3.ebuild
new file mode 100644
index 00000000000..c6b287f2051
--- /dev/null
+++ b/sci-libs/metis/metis-5.1.0-r3.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils fortran-2
+
+DESCRIPTION="A package for unstructured serial graph partitioning"
+HOMEPAGE="http://www-users.cs.umn.edu/~karypis/metis/metis/"
+SRC_URI="http://glaros.dtc.umn.edu/gkhome/fetch/sw/${PN}/${P}.tar.gz"
+
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
+LICENSE="free-noncomm"
+IUSE="doc openmp static-libs"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ !sci-libs/parmetis"
+
+DOCS=( manual/manual.pdf )
+
+PATCHES=(
+ "${FILESDIR}"/${P}-datatype.patch
+ "${FILESDIR}"/${P}-shared-GKlib.patch
+ "${FILESDIR}"/${P}-multilib.patch
+)
+
+src_prepare() {
+ sed \
+ -e 's:-O3::g' \
+ -i GKlib/GKlibSystem.cmake || die
+
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DGKLIB_PATH="${S}"/GKlib
+ -DSHARED="$(usex static-libs no yes)"
+ -DOPENMP="$(usex openmp)"
+ )
+ cmake-utils_src_configure
+}
+
+src_test() {
+ cd graphs || die
+ PATH="${BUILD_DIR}"/programs/:${PATH} LD_LIBRARY_PATH="${BUILD_DIR}"/lib ndmetis mdual.graph || die
+ PATH="${BUILD_DIR}"/programs/:${PATH} LD_LIBRARY_PATH="${BUILD_DIR}"/lib mpmetis metis.mesh 2 || die
+ PATH="${BUILD_DIR}"/programs/:${PATH} LD_LIBRARY_PATH="${BUILD_DIR}"/lib gpmetis test.mgraph 4 || die
+ PATH="${BUILD_DIR}"/programs/:${PATH} LD_LIBRARY_PATH="${BUILD_DIR}"/lib gpmetis copter2.graph 4 || die
+ PATH="${BUILD_DIR}"/programs/:${PATH} LD_LIBRARY_PATH="${BUILD_DIR}"/lib graphchk 4elt.graph || die
+}
+
+src_install() {
+ cat >> "${T}"/metis.pc <<- EOF
+ prefix=${EPREFIX}/usr
+ exec_prefix=\${prefix}
+ libdir=\${exec_prefix}/$(get_libdir)
+ includedir=\${prefix}/include
+
+ Name: METIS
+ Description: Software for partioning unstructured graphes and meshes
+ Version: ${PV}
+ Cflags: -I\${includedir}/metis
+ Libs: -L\${libdir} -lmetis
+ EOF
+
+ insinto /usr/$(get_libdir)/pkgconfig
+ doins "${T}"/metis.pc
+ cmake-utils_src_install
+}
next reply other threads:[~2017-03-24 12:05 UTC|newest]
Thread overview: 53+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-24 12:05 Nicolas Bock [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-03-10 13:19 [gentoo-commits] repo/gentoo:master commit in: sci-libs/metis/ Sam James
2024-03-10 13:07 Arthur Zamarin
2024-03-10 12:13 Arthur Zamarin
2024-03-10 12:13 Arthur Zamarin
2024-03-10 12:13 Arthur Zamarin
2023-12-06 17:57 Ionen Wolkens
2023-12-01 3:30 Sam James
2023-08-05 11:40 Arthur Zamarin
2023-07-29 20:39 Arthur Zamarin
2023-07-17 6:12 Sam James
2023-07-17 6:12 Sam James
2023-07-14 18:02 Arthur Zamarin
2023-06-12 6:01 Arthur Zamarin
2023-06-03 9:50 WANG Xuerui
2023-05-03 10:55 Jakov Smolić
2023-05-03 8:49 Andrew Ammerlaan
2023-05-02 17:36 Arthur Zamarin
2022-12-01 3:21 WANG Xuerui
2022-10-09 16:10 Sam James
2022-09-19 6:42 Michał Górny
2021-10-06 6:22 Jakov Smolić
2021-10-06 6:06 Agostino Sarubbo
2021-10-05 6:48 Agostino Sarubbo
2021-10-04 19:19 Sam James
2021-10-04 19:19 Sam James
2021-10-04 19:17 Sam James
2021-10-04 19:16 Sam James
2021-10-04 17:44 Sam James
2021-07-20 7:41 Andrew Ammerlaan
2021-07-16 11:43 Marek Szuba
2021-07-16 11:43 Marek Szuba
2021-07-16 11:43 Marek Szuba
2021-07-14 16:14 Marek Szuba
2020-11-07 17:57 Sam James
2020-07-21 10:03 Andreas Sturmlechner
2020-07-21 10:03 Andreas Sturmlechner
2020-07-19 16:03 Sam James
2020-07-07 6:58 Sergei Trofimovich
2020-06-22 6:57 Agostino Sarubbo
2020-06-21 17:08 Agostino Sarubbo
2020-06-21 17:03 Agostino Sarubbo
2020-01-11 16:33 Ulrich Müller
2019-05-21 20:30 Aaron Bauman
2017-07-12 18:40 Alexis Ballier
2017-07-11 8:41 Alexis Ballier
2017-07-01 9:52 Sergei Trofimovich
2017-07-01 9:52 Sergei Trofimovich
2017-07-01 9:52 Sergei Trofimovich
2017-04-22 16:03 Justin Lecher
2017-04-22 16:03 Justin Lecher
2016-08-11 17:18 David Seifert
2016-06-07 16:47 Tobias Klausmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1490357108.e99c14e46d97c43d73bcb4d289fc00e080ab2b27.nicolasbock@gentoo \
--to=nicolasbock@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox