# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 AUTOTOOLS_AUTORECONF=true inherit autotools-utils toolchain-funcs ELMER_ROOT="elmerfem" MY_PN=${PN/elmer-/} DESCRIPTION="Finite element programs, libraries, and visualization tools - hutiter library" HOMEPAGE="http://www.csc.fi/english/pages/elmer" SRC_URI="http://elmerfem.svn.sourceforge.net/viewvc/${ELMER_ROOT}/release/${PV%_p*}/${MY_PN}/?view=tar&pathrev=4651 -> ${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="debug static-libs" RDEPEND="virtual/blas" DEPEND="${RDEPEND} virtual/pkgconfig" S="${WORKDIR}"/hutiter PATCHES=( "${FILESDIR}"/${P}-shared.patch ) src_configure() { local myeconfargs=( --enable-shared $(use_with debug) \ --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" ) autotools-utils_src_configure }