inherit eutils DESCRIPTION="Tcl SASL interface" HOMEPAGE="http://beepcore-tcl.sourceforge.net/tclsasl.html" SRC_URI="http://tkabber.jabber.ru/files/dependencies/tclsasl.tgz" LICENSE="" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="threads" DEPEND=">=dev-libs/cyrus-sasl-2.0.0 dev-lang/tcl" S=${WORKDIR}/${P} src_compile() { opts="-with-cyrus-sasl=/usr/" myconf="$(use_enable amd64 64bit)" opts="${opts} $(use_enable threads)" econf ${opts} ${myconf}|| die "econf failed" emake || die "emake failed" } src_install() { make DESTDIR=${D} install-binaries || die dodoc doc/tclsasl.html }