Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/pastix/
Date: Mon, 22 Feb 2016 08:10:13
Message-Id: 1456127047.4988e3b9590e17e3dce88801040ca37a76ab5294.jlec@gentoo
1 commit: 4988e3b9590e17e3dce88801040ca37a76ab5294
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 22 07:44:07 2016 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 22 07:44:07 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=4988e3b9
7
8 sci-libs/pastix Moved to tree
9
10 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
11
12 sci-libs/pastix/metadata.xml | 23 -------
13 sci-libs/pastix/pastix-5.2.2_p9.ebuild | 113 ---------------------------------
14 2 files changed, 136 deletions(-)
15
16 diff --git a/sci-libs/pastix/metadata.xml b/sci-libs/pastix/metadata.xml
17 deleted file mode 100644
18 index 439c512..0000000
19 --- a/sci-libs/pastix/metadata.xml
20 +++ /dev/null
21 @@ -1,23 +0,0 @@
22 -<?xml version="1.0" encoding="UTF-8"?>
23 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
24 -<pkgmetadata>
25 -<maintainer type="project">
26 - <email>sci@g.o</email>
27 - <name>Gentoo Science Project</name>
28 - </maintainer>
29 -<longdescription lang="en">
30 - PaStiX (Parallel Sparse matriX package) is a scientific library that
31 - provides a high performance parallel solver for very large sparse
32 - linear systems based on direct methods. Numerical algorithms are
33 - implemented in single or double precision (real or complex) using
34 - LLt, LDLt and LU with static pivoting (for non symmetric matrices
35 - having a symmetric pattern). This solver provides also an adaptive
36 - blockwise iLU(k) factorization that can be used as a parallel
37 - preconditioner using approximated supernodes to build a coarser
38 - block structure of the incomplete factors.
39 -</longdescription>
40 - <use>
41 - <flag name="int64">Build the 64 bits integer library</flag>
42 - <flag name="starpu">Build and link with <pkg>dev-libs/starpu</pkg></flag>
43 - </use>
44 -</pkgmetadata>
45
46 diff --git a/sci-libs/pastix/pastix-5.2.2_p9.ebuild b/sci-libs/pastix/pastix-5.2.2_p9.ebuild
47 deleted file mode 100644
48 index 4ac7a35..0000000
49 --- a/sci-libs/pastix/pastix-5.2.2_p9.ebuild
50 +++ /dev/null
51 @@ -1,113 +0,0 @@
52 -# Copyright 1999-2014 Gentoo Foundation
53 -# Distributed under the terms of the GNU General Public License v2
54 -# $Id$
55 -
56 -EAPI=5
57 -
58 -inherit eutils fortran-2 toolchain-funcs multilib
59 -
60 -# TODO:
61 -# testing: emake examples?
62 -# better doc instalation and building
63 -# pypastix (separate package?)
64 -# multilib with eselect?
65 -# static libs building without pic
66 -# metis?
67 -
68 -# commit id: change every version
69 -CID=351ef60
70 -# package id: change every version, see the link on inriaforge
71 -PID=33558
72 -# leave empty if this is not a post release bug fix
73 -PPV=bugfix9_
74 -MYPN=pastix_release
75 -
76 -DESCRIPTION="Parallel solver for very large sparse linear systems"
77 -HOMEPAGE="http://pastix.gforge.inria.fr"
78 -SRC_URI="https://gforge.inria.fr/frs/download.php/${PID}/${MYPN}_${PPV}${CID}.tar.bz2"
79 -
80 -LICENSE="CeCILL-C"
81 -SLOT="0"
82 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
83 -IUSE="doc int64 mpi smp starpu static-libs"
84 -
85 -RDEPEND="
86 - sci-libs/scotch:0=[int64?,mpi?]
87 - sys-apps/hwloc:0=
88 - virtual/blas
89 - mpi? ( virtual/mpi )
90 - starpu? ( dev-libs/starpu:0= )"
91 -DEPEND="${RDEPEND}
92 - virtual/pkgconfig"
93 -
94 -S="${WORKDIR}/${MYPN}_${CID}/src"
95 -
96 -src_prepare() {
97 - sed -e 's/^\(HOSTARCH\s*=\).*/\1 ${HOST}/' \
98 - -e "s:^\(CCPROG\s*=\).*:\1 $(tc-getCC):" \
99 - -e "s:^\(CFPROG\s*=\).*:\1 $(tc-getFC):" \
100 - -e "s:^\(CF90PROG\s*=\).*:\1 $(tc-getFC):" \
101 - -e "s:^\(MPCCPROG\s*=\).*:\1 mpicc -cc=$(tc-getCC):" \
102 - -e "s:^\(MPCXXPROG\s*=\).*:\1 mpic++ -cxx=$(tc-getCXX):" \
103 - -e "s:^\(MCFPROG\s*=\).*:\1 mpif90 -f90=$(tc-getFC):" \
104 - -e "s:^\(ARPROG\s*=\).*:\1 $(tc-getAR):" \
105 - -e "s:^\(CCFOPT\s*=\).*:\1 ${FFLAGS}:" \
106 - -e "s:^\(CCFDEB\s*=\).*:\1 ${FFLAGS}:" \
107 - -e 's:^\(EXTRALIB\s*=\).*:\1 -lm -lrt:' \
108 - -e "s:^#\s*\(ROOT\s*=\).*:\1 \$(DESTDIR)${EPREFIX%/}/usr:" \
109 - -e 's:^#\s*\(INCLUDEDIR\s*=\).*:\1 $(ROOT)/include:' \
110 - -e 's:^#\s*\(BINDIR\s*=\).*:\1 $(ROOT)/bin:' \
111 - -e "s:^#\s*\(LIBDIR\s*=\).*:\1 \$(ROOT)/$(get_libdir):" \
112 - -e 's:^#\s*\(SHARED\s*=\).*:\1 1:' \
113 - -e 's:^#\s*\(SOEXT\s*=\).*:\1 .so:' \
114 - -e '/fPIC/s/^#//g' \
115 - -e "s:^#\s*\(SHARED_FLAGS\s*=.*\):\1 ${LDFLAGS}:" \
116 - -e "s:pkg-config:$(tc-getPKG_CONFIG):g" \
117 - -e "s:^\(BLASLIB\s*=\).*:\1 $($(tc-getPKG_CONFIG) --libs blas):" \
118 - -e "s:^\s*\(HWLOC_HOME\s*?=\).*:\1 ${EPREFIX}/usr:" \
119 - -e "s:-I\$(HWLOC_INC):$($(tc-getPKG_CONFIG) --cflags hwloc):" \
120 - -e "s:-L\$(HWLOC_LIB) -lhwloc:$($(tc-getPKG_CONFIG) --libs hwloc):" \
121 - -e "s:^\s*\(SCOTCH_HOME\s*?=\).*:\1 ${EPREFIX}/usr:" \
122 - -e "s:^\s*\(SCOTCH_INC\s*?=.*\):\1/scotch:" \
123 - -e "s:^\s*\(SCOTCH_LIB\s*?=.*\)lib:\1$(get_libdir):" \
124 - config/LINUX-GNU.in > config.in
125 - sed -i -e 's/__SO_NAME__,$@/__SO_NAME__,$(notdir $@)/g' Makefile || die
126 -}
127 -
128 -src_configure() {
129 - use amd64 && sed -i \
130 - -e 's/^\(VERSIONBIT\s*=\).*/\1 _64bit/' config.in
131 -
132 - use int64 && sed -i \
133 - -e '/VERSIONINT.*_int64/s/#//' \
134 - -e '/CCTYPES.*INTSSIZE64/s/#//' config.in
135 -
136 - use mpi || sed -i \
137 - -e '/VERSIONMPI.*_nompi/s/#//' \
138 - -e '/CCTYPES.*NOMPI/s/#//' \
139 - -e '/MPCCPROG\s*= $(CCPROG)/s/#//' \
140 - -e '/MCFPROG\s*= $(CFPROG)/s/#//' \
141 - -e 's/-DDISTRIBUTED//' \
142 - -e 's/-lptscotch/-lscotch/g' \
143 - config.in
144 -
145 - use smp || sed -i \
146 - -e '/VERSIONSMP.*_nosmp/s/#//' \
147 - -e '/CCTYPES.*NOSMP/s/#//' config.in
148 -
149 - use starpu && sed -i -e '/libstarpu/s/#//g' config.in
150 -}
151 -
152 -src_compile() {
153 - emake all drivers
154 -}
155 -
156 -src_install() {
157 - default
158 - sed -i -e "s:${D}::g" "${ED}"/usr/bin/pastix-conf || die
159 - # quick and dirty (static libs should really be built without pic)
160 - use static-libs || rm "${ED}"/usr/$(get_libdir)/*.a
161 - cd ..
162 - dodoc README.txt
163 - use doc && dodoc doc/refcard/refcard.pdf
164 -}