/[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 - (hide annotations) (download)
Tue Mar 15 16:30:30 2011 UTC (3 years, 5 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 flameeyes 1.8 # Copyright 1999-2011 Gentoo Foundation
2 halcy0n 1.1 # Distributed under the terms of the GNU General Public License v2
3 flameeyes 1.8 # $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 halcy0n 1.1
5 ssuominen 1.2 EAPI=2
6 flameeyes 1.8 inherit eutils autotools
7 halcy0n 1.1
8 ssuominen 1.2 MY_P=ZThread-${PV}
9 halcy0n 1.1
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 ssuominen 1.2
14 halcy0n 1.1 LICENSE="MIT"
15     SLOT="0"
16 pacho 1.7 KEYWORDS="alpha amd64 ~hppa ~mips ppc sparc x86"
17 ssuominen 1.2 IUSE="debug doc kernel_linux static-libs"
18 halcy0n 1.1
19     DEPEND="doc? ( app-doc/doxygen )"
20     RDEPEND=""
21    
22 ssuominen 1.2 S=${WORKDIR}/${MY_P}
23 halcy0n 1.1
24 ssuominen 1.2 src_prepare() {
25     rm -f include/zthread/{.Barrier.h.swp,Barrier.h.orig} || die
26 halcy0n 1.1 epatch "${FILESDIR}"/${P}-no-fpermissive.diff
27 flameeyes 1.8
28     AT_M4DIR="share" eautoreconf
29 halcy0n 1.1 }
30    
31 ssuominen 1.2 src_configure() {
32     local myconf
33     use debug && myconf="--enable-debug"
34    
35 halcy0n 1.1 econf \
36     $(use_enable kernel_linux atomic-linux) \
37 ssuominen 1.2 $(use_enable static-libs static) \
38     ${myconf}
39     }
40 halcy0n 1.1
41 ssuominen 1.2 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 halcy0n 1.1 fi
50     }
51    
52     src_install() {
53 ssuominen 1.2 einstall || die
54    
55     dodoc AUTHORS ChangeLog NEWS README TODO
56 halcy0n 1.1 use doc && dohtml doc/html/*
57 ssuominen 1.2
58     find "${D}" -name '*.la' -delete
59 halcy0n 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20