# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils MY_P=${PN/t/T}-${PV} DESCRIPTION="Transmission is a free, lightweight BitTorrent client." HOMEPAGE="http://transmission.m0k.org" SRC_URI="http://download.m0k.org/transmission/files/${MY_P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="gtk ssl" DEPEND=" gtk? ( >=x11-libs/gtk+-2.6 ) ssl? ( dev-libs/openssl )" S="${WORKDIR}/${MY_P}" src_compile() { local myconf if !(use ssl) ; then myconf="${myconf} --disable-openssl" fi if !(use gtk) ; then myconf="${myconf} --disable-gtk" fi econf \ ${myconf} \ || die "configure failed" emake } src_install() { dobin cli/transmissioncli dodoc AUTHORS dodoc LICENSE dodoc NEWS dodoc README if use gtk ; then dobin gtk/transmission-gtk insinto /usr/share/applications/ doins "${FILESDIR}"/transmission.desktop insinto /usr/share/pixmaps/ doins "${FILESDIR}"/transmission.png fi }