# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Ham radio logging program" HOMEPAGE="http://www.qsl.net/pg4i/linux/xlog.html" SRC_URI="http://www.qsl.net/pg4i/download/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="hamlib nls" DEPEND="virtual/glibc virtual/x11 sys-devel/libtool >=app-doc/doxygen-1.3.5-r1 >=dev-util/pkgconfig-0.12.0 >=gnome-base/libgnomeprint-2.4.2 >=x11-libs/gtk+-2.4.0-r1 hamlib? ( app-ham/hamlib )" RDEPEND="virtual/glibc virtual/x11 >=gnome-base/libgnomeprint-2.4.2 >=x11-libs/gtk+-2.4.0-r1 hamlib? ( app-ham/hamlib )" src_compile() { econf $(use_enable hamlib) \ $(use_enable nls) \ || die "configure failed" emake || die "emake failed" } src_install() { einstall || die } pkg_postinst() { if [ ! -n "$(use hamlib)" ] ; then echo ewarn "Your USE flags do not contain \"hamlib\"." ewarn "Therefore, xlog has been built without" ewarn "hamlib support. If this is not what you" ewarn "want, emerge \"app-ham/hamlib\" and add" ewarn "\"hamlib\" to your /etc/make.conf USE flags." echo fi }