| 1 |
# Copyright 1999-2009 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.ebuild,v 1.1 2007/09/24 21:22:15 dev-zero Exp $
|
| 4 |
|
| 5 |
inherit flag-o-matic eutils
|
| 6 |
|
| 7 |
MY_P="ZThread-${PV}"
|
| 8 |
|
| 9 |
DESCRIPTION="A platform-independent multi-threading and synchronization library for C++"
|
| 10 |
HOMEPAGE="http://zthread.sourceforge.net/"
|
| 11 |
SRC_URI="mirror://sourceforge/zthread/${MY_P}.tar.gz"
|
| 12 |
LICENSE="MIT"
|
| 13 |
SLOT="0"
|
| 14 |
KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~sparc ~x86"
|
| 15 |
IUSE="debug doc kernel_linux"
|
| 16 |
|
| 17 |
DEPEND="doc? ( app-doc/doxygen )"
|
| 18 |
RDEPEND=""
|
| 19 |
|
| 20 |
S="${WORKDIR}"/${MY_P}
|
| 21 |
|
| 22 |
src_unpack() {
|
| 23 |
unpack ${A}
|
| 24 |
cd "${S}"
|
| 25 |
epatch "${FILESDIR}"/${P}-no-fpermissive.diff
|
| 26 |
}
|
| 27 |
|
| 28 |
src_compile() {
|
| 29 |
econf \
|
| 30 |
$(use_enable debug) \
|
| 31 |
$(use_enable kernel_linux atomic-linux) \
|
| 32 |
|| die "configure failed"
|
| 33 |
emake || die "make failed"
|
| 34 |
|
| 35 |
if use doc ; then
|
| 36 |
doxygen doc/zthread.doxygen || die "generating docs failed"
|
| 37 |
cp ./doc/documentation.html ./doc/html/index.html
|
| 38 |
cp ./doc/zthread.css ./doc/html/zthread.css
|
| 39 |
cp ./doc/bugs.js ./doc/html/bugs.js;
|
| 40 |
fi
|
| 41 |
}
|
| 42 |
|
| 43 |
src_install() {
|
| 44 |
# Uses it's own install-hooks and ignores DESTDIR
|
| 45 |
einstall || die "einstall failed"
|
| 46 |
dodoc AUTHORS ChangeLog README NEWS TODO
|
| 47 |
use doc && dohtml doc/html/*
|
| 48 |
}
|