# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils IUSE="" RESTRICT="nomirror" DESCRIPTION="xnec2c is a GTK+ graphical interactive version of nec2c." HOMEPAGE="http://5b4az.mattsnetwork.co.uk/pages/nec2.html" SRC_URI="http://5b4az.mattsnetwork.co.uk/pkg/nec2/xnec2c/${PN}-${PV}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" DEPEND=">=x11-libs/gtk+-2 sys-devel/gettext" src_compile() { econf || die "configure failed" emake || die "emake failed" } src_install() { # dobin src/xnec2c || die "install binary failed" einfo install DESTDIR="${D}" emake install || die "einstall failed" dodoc INSTALL COPYING AUTHORS README || die "install doc failed" dohtml -r doc/* || die "install doc failed" dodir /usr/share/doc/${PF}/examples || die "dodir failed" insinto /usr/share/doc/${PF}/examples cd ${S}/examples doins * || die "install examples failed" } pkg_postinst() { ewarn "" ewarn "For NEC2 full documentation look at http://www.si-list.org/swindex2.html" ewarn "and download the NEC2 manual part 1, 2 and 3" ewarn "" ewarn "Some examples of xnec2c input files are in /usr/share/doc/${PF}/examples" ewarn "" }