# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit versionator MY_P="${PN}-$(replace_all_version_separators '-')" DESCRIPTION="The CFD General Notation System (CGNS) tools." HOMEPAGE="http://www.cgns.org/" SRC_URI="mirror://sourceforge/cgns/${MY_P}.tar.gz" LICENSE="ZLIB" SLOT="0" KEYWORDS="~x86" IUSE="X tcl tk" DEPEND="tcl? ( dev-lang/tcl ) tk? ( dev-lang/tk )" MY_S="${PN}" S=${WORKDIR}/${MY_S} src_compile() { econf \ $(use_with X) \ $(use_with tcl) \ $(use_with tk) \ || die "econf failed" emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "install failed" }