# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit versionator 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="~x86" IUSE="fortran hdf5 zlib szip" DEPEND="hdf5? ( sci-libs/hdf5 ) zlib? ( sys-libs/zlib ) szip? ( sci-libs/szip )" MY_S="${PN}_$(get_version_component_range 1-2)" S=${WORKDIR}/${MY_S} src_compile() { econf \ --enable-shared \ $(use_with fortran) \ $(use_with hdf5) \ $(use_with zlib) \ $(use_with szip) \ || die "econf failed" emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "install failed" }