# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 AUTOTOOLS_AUTORECONF=true inherit autotools-utils flag-o-matic multilib subversion toolchain-funcs ELMER_ROOT="elmerfem" MY_PN=${PN/elmer-/} DESCRIPTION="Finite element programs, libraries, and visualization tools - elmerpost" HOMEPAGE="http://www.csc.fi/english/pages/elmer" SRC_URI="" ESVN_REPO_URI="https://elmerfem.svn.sourceforge.net/svnroot/elmerfem/trunk/${MY_PN}" ESVN_PROJECT="${MY_PN}" LICENSE="GPL-2" SLOT="0" KEYWORDS="" IUSE="debug opengl" RDEPEND=" dev-lang/tcl dev-lang/tk opengl? ( virtual/opengl media-libs/ftgl ) sci-libs/matc" DEPEND="${RDEPEND} virtual/pkgconfig" S="${WORKDIR}/post" PATCHES=( "${FILESDIR}"/${PN}-6.0_p4651-oof.patch "${FILESDIR}"/${PN}-6.0_p4651-underlinking.patch "${FILESDIR}"/${PN}-6.0_p4651-tcltk8.6.patch "${FILESDIR}"/${PN}-6.0_p4651-bfr-overflow.patch "${FILESDIR}"/${PN}-6.0_p4651-impl-dec.patch ) src_prepare() { use opengl && append-cppflags $($(tc-getPKG_CONFIG) --cflags ftgl) autotools-utils_src_prepare } src_configure() { local myeconfargs=( $(use_with debug) --with-matc --with-x ) autotools-utils_src_configure } src_install() { autotools-utils_src_install ELMER_POST_DATADIR="/usr/share/elmerpost" }