blob: 22ccb37a1fa36180693064f025cf0fed3fdff0a6 (
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
|
# Copyright 1999-2009 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.3 2009/09/23 16:51:16 patrick 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=""
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
}
|