| 1 |
# Copyright 1999-2010 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/zthread/zthread-2.3.2-r1.ebuild,v 1.1 2009/04/19 20:00:34 halcy0n Exp $ |
| 4 |
|
| 5 |
EAPI=2 |
| 6 |
inherit eutils flag-o-matic |
| 7 |
|
| 8 |
MY_P=ZThread-${PV} |
| 9 |
|
| 10 |
DESCRIPTION="A platform-independent multi-threading and synchronization library for C++" |
| 11 |
HOMEPAGE="http://zthread.sourceforge.net/" |
| 12 |
SRC_URI="mirror://sourceforge/zthread/${MY_P}.tar.gz" |
| 13 |
|
| 14 |
LICENSE="MIT" |
| 15 |
SLOT="0" |
| 16 |
KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~sparc ~x86" |
| 17 |
IUSE="debug doc kernel_linux static-libs" |
| 18 |
|
| 19 |
DEPEND="doc? ( app-doc/doxygen )" |
| 20 |
RDEPEND="" |
| 21 |
|
| 22 |
S=${WORKDIR}/${MY_P} |
| 23 |
|
| 24 |
src_prepare() { |
| 25 |
rm -f include/zthread/{.Barrier.h.swp,Barrier.h.orig} || die |
| 26 |
epatch "${FILESDIR}"/${P}-no-fpermissive.diff |
| 27 |
} |
| 28 |
|
| 29 |
src_configure() { |
| 30 |
local myconf |
| 31 |
use debug && myconf="--enable-debug" |
| 32 |
|
| 33 |
econf \ |
| 34 |
$(use_enable kernel_linux atomic-linux) \ |
| 35 |
$(use_enable static-libs static) \ |
| 36 |
${myconf} |
| 37 |
} |
| 38 |
|
| 39 |
src_compile() { |
| 40 |
emake || die |
| 41 |
|
| 42 |
if use doc; then |
| 43 |
doxygen doc/zthread.doxygen || die |
| 44 |
cp doc/documentation.html doc/html/index.html || die |
| 45 |
cp doc/zthread.css doc/html/zthread.css || die |
| 46 |
cp doc/bugs.js doc/html/bugs.js || die |
| 47 |
fi |
| 48 |
} |
| 49 |
|
| 50 |
src_install() { |
| 51 |
einstall || die |
| 52 |
|
| 53 |
dodoc AUTHORS ChangeLog NEWS README TODO |
| 54 |
use doc && dohtml doc/html/* |
| 55 |
|
| 56 |
find "${D}" -name '*.la' -delete |
| 57 |
} |