# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Network profiles manager" HOMEPAGE="http://netswitch.tuxfamily.org/" SRC_URI="gtk2? ( http://netswitch.tuxfamily.org/files/gswitch-${PV}.tar.gz )" IUSE="gtk2" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86" RDEPEND=" net-libs/libswitch gtk2? ( >=x11-libs/gtk+-2.6 )" DEPEND="${RDEPEND}" src_unpack() { unpack ${A} cd ${S} } src_compile() { if use gtk2; then cd ${WORKDIR}/gswitch-${PV} ./autogen.sh --prefix=/usr || die "autogen failed" emake || die "make failed" fi } src_install() { if use gtk2; then cd ${WORKDIR}/gswitch-${PV} make PREFIX=/usr DESTDIR=${D} \ install || die "install failed" fi }