# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-libs/zthread/zthread-2.3.1-r1.ebuild,v 1.2 2007/01/04 14:45:14 flameeyes Exp $ WANT_AUTOCONF="latest" WANT_AUTOMAKE="latest" inherit eutils flag-o-matic autotools MY_P="ZThread-${PV}" S="${WORKDIR}/${MY_P}" DESCRIPTION="a platform-independent object-oriented threading architecture" HOMEPAGE="http://www.cs.buffalo.edu/~crahen/projects/zthread/" SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~sparc ~x86" IUSE="debug" DEPEND="virtual/libc" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/${P}-fix-underquoted-m4-defs.diff epatch ${FILESDIR}/${P}-fix-ac-arg-enable-debug.diff epatch ${FILESDIR}/${P}-respect-DESTDIR.diff AT_M4DIR="share" eautoreconf } src_compile() { local myconf use debug \ && myconf="--enable-debug=yes" \ || myconf="--enable-debug=no" append-flags -fpermissive econf ${myconf} || die "econf failed" emake || die "emake failed" } src_install() { make DESTDIR="${D}" install || die "make install failed" dodoc AUTHORS ChangeLog COPYING README* INSTALL NEWS TODO THANK.YOU }