# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" inherit fortran versionator multilib MY_P="${PN}_$(replace_version_separator 2 '-')" DESCRIPTION="The CFD General Notation System (CGNS) is a standard for CFD data." HOMEPAGE="http://www.cgns.org/" SRC_URI="mirror://sourceforge/cgns/${MY_P}.tar.gz" LICENSE="ZLIB" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="fortran szip zlib" RDEPEND="zlib? ( sys-libs/zlib ) szip? ( sci-libs/szip )" DEPEND="${RDEPEND}" MY_S="${PN}_$(get_version_component_range 1-2)" S=${WORKDIR}/${MY_S} src_prepare() { epatch "${FILESDIR}"/${P}.patch } src_configure() { local myconf="--enable-gcc --enable-lfs --enable-shared=all --enable-64bit" econf \ ${myconf} \ $(use_with fortran) \ --without-hdf5 \ $(use_with zlib) \ $(use_with szip) } src_install() { emake DESTDIR="${D}" install || die "install failed" }