# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils toolchain-funcs IUSE="" RESTRICT="" DESCRIPTION="xnecview - A program for visualizing NEC2 input and output files" 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="~amd64 ~x86" DEPEND=">=media-libs/libpng-1.5 >=x11-libs/gtk+-2.0" RDEPEND="${DEPEND}" src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}/xnecview-1.36_libpng-1.5.diff" sed -i -e "s:gcc:$(tc-getCC):" Makefile sed -i -e "s:-O2 -g -Wall:${CFLAGS}:" Makefile } src_install() { dobin xnecview || die "install binaries failed" dodoc HISTORY README || die "install doc failed" doman xnecview.1x }