# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils IUSE="" RESTRICT="nomirror" DESCRIPTION="xnecview is a program for visualizing the input and output of the nec antenna simulation software." HOMEPAGE="http://wwwhome.cs.utwente.nl/~ptdeboer/ham/xnecview/" SRC_URI="http://wwwhome.cs.utwente.nl/~ptdeboer/ham/xnecview/${PN}-${PV}.tgz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" DEPEND="media-libs/libpng =x11-libs/gtk+-1.2*" src_compile() { # the patch correct a bug with setlocale and the decimal separator # with non US locale. patch xnecview.c ${FILESDIR}/xnecview.c.diff || die "patch failed" make || die "make failed" } src_install() { dobin xnecview || die "install binaries failed" dodoc COPYING HISTORY README || die "install doc failed" } pkg_postinst() { ewarn "" ewarn "You can install any nec version you choose." ewarn "" ewarn "To install nec2++, a c++ version of nec2, do" ewarn "emerge nec2++" ewarn "" }