# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="DDCControl" HOMEPAGE="http://ddccontrol.sourceforge.net/" SRC_URI="mirror://sourceforge/ddccontrol/ddccontrol-${PV}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="gtk doc" DEPEND="dev-libs/libxml2 gtk? ( >=x11-libs/gtk+-2.4 ) sys-apps/pciutils >=app-misc/ddccontrol-db-20050329 doc? ( >=app-text/docbook-xsl-stylesheets-1.65.1 >=dev-libs/libxslt-1.1.6 app-text/htmltidy )" src_compile() { local myconf="" if use !gtk then myconf="${myconf} --disable-gnome" fi if use doc then myconf="${myconf} --enable-doc" fi econf ${myconf} || die "econf failed" emake || die "emake failed" } src_install() { make DESTDIR=${D} install || die }