blob: bf2d414c888c192b3d2481b9eba026b35a4762d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/wefts/wefts-0.99c-r1.ebuild,v 1.1 2005/05/28 12:34:30 flameeyes Exp $
inherit eutils
MY_P="lib${P}"
DESCRIPTION="A C++ high-level yet efficent multithreading library, portable across pthread-enabled platforms."
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
HOMEPAGE="http://wefts.sourceforge.net/"
DEPEND="doc? ( app-doc/doxygen )
sys-devel/autoconf
sys-devel/automake"
RDEPEND=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~ppc ~x86 ~amd64"
IUSE="doc debug"
S=${WORKDIR}/${MY_P}
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${PN}-errno.patch
epatch ${FILESDIR}/${PN}-m_ret.patch
epatch ${FILESDIR}/${PN}-order.patch
cp ${FILESDIR}/testsuite.h ${S}/testsuite
./autogen.sh || die "autogen failed"
libtoolize --copy --force
}
src_compile() {
hasq maketest ${FEATURES} && \
myconf="${myconf} --enable-suite"
econf \
$(use_enable doc) \
$(use_enable debug) \
${myconf} \
|| die "econf failed"
emake || die "emake failed"
}
src_test() {
einfo "Please ignore failures on test #5, it's platform-dependant."
cd ${S}/testsuite
./testsuite || die "Some tests failed."
}
src_install () {
make DESTDIR=${D} install || die
if use doc; then
dohtml -r ${S}/doc/html/*
fi
}
|