/[gentoo-x86]/dev-libs/zthread/zthread-2.3.2-r1.ebuild
Gentoo

Contents of /dev-libs/zthread/zthread-2.3.2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Tue Mar 15 16:30:30 2011 UTC (3 years, 6 months ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +5 -3 lines
Rebuild autotools so that it won't fail to build with grep-2.7 (bug #356639).

(Portage version: 2.2.0_alpha27/cvs/Linux x86_64)

1 # Copyright 1999-2011 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.7 2010/05/26 18:28:10 pacho Exp $
4
5 EAPI=2
6 inherit eutils autotools
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 AT_M4DIR="share" eautoreconf
29 }
30
31 src_configure() {
32 local myconf
33 use debug && myconf="--enable-debug"
34
35 econf \
36 $(use_enable kernel_linux atomic-linux) \
37 $(use_enable static-libs static) \
38 ${myconf}
39 }
40
41 src_compile() {
42 emake || die
43
44 if use doc; then
45 doxygen doc/zthread.doxygen || die
46 cp doc/documentation.html doc/html/index.html || die
47 cp doc/zthread.css doc/html/zthread.css || die
48 cp doc/bugs.js doc/html/bugs.js || die
49 fi
50 }
51
52 src_install() {
53 einstall || die
54
55 dodoc AUTHORS ChangeLog NEWS README TODO
56 use doc && dohtml doc/html/*
57
58 find "${D}" -name '*.la' -delete
59 }

  ViewVC Help
Powered by ViewVC 1.1.20