# Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="4" inherit eutils flag-o-matic DESCRIPTION="winexe remotely executes commands on WindowsNT/2000/XP/2003 systems" HOMEPAGE="http://sourceforge.net/projects/winexe" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="gnutls" DEPEND="dev-libs/cyrus-sasl gnutls? ( net-libs/gnutls ) dev-libs/popt" RDEPEND="${DEPEND}" S="${S}/source4" src_prepare () { epatch "${FILESDIR}/filesdir.patch" } src_configure () { ./autogen.sh || die "autogen failed" econf \ --enable-fhs \ $(use_enable gnutls) \ || die "econf failed" } src_compile() { emake basics bin/winexe \ || die "emake failed" } src_install() { dobin bin/winexe }