# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header$ EAPI=1 DESCRIPTION="A one-wire weather station for Dallas Semiconductor" HOMEPAGE="http://oww.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="Artistic" SLOT="0" IUSE="gtk nls usb" KEYWORDS="~amd64 ~x86" RDEPEND="net-misc/curl" DEPEND="${RDEPEND} dev-util/pkgconfig gtk? ( x11-libs/gtk+:2 ) usb? ( >=dev-libs/libusb-0.1.5 )" src_unpack() { unpack ${A} cd "${S}" sed -e "s:doc/oww:doc/${P}/:" -i Makefile.in || \ die "Failed to fix doc install path" } src_compile() { econf \ --enable-interactive \ $(use_enable gtk gui) \ $(use_enable nls) \ $(use_with usb) \ || die "Failed during configure" emake || die "Failed during make." } src_install () { emake DESTDIR="${D}" install || die "Failed during install." }